constructor


pfcmain.pbl   >   pfc_u_progressbar   >   constructor   

Full name pfc_u_progressbar.constructor
Access public
Extend of
Return value
Prototype event constructor()

Name Datatype
No Data

Name Datatype
No Data

event constructor;//////////////////////////////////////////////////////////////////////////////
//
//	Event:  Constructor
//
//	Arguments:
//	None
//
//	Returns:  None
//
//	Description:
// Progress Bar Control.
//	Initialize the object properties.
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	6.0   Initial version - Brian J. Grimm
//
//////////////////////////////////////////////////////////////////////////////
//
//	Copyright © 1996-1997 Sybase, Inc. and its subsidiaries.  All rights reserved.
//	Any distribution of the PowerBuilder Foundation Classes (PFC)
//	source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////
// initalize the display text
dw_progress.object.pct[1] = ""

// expand dw to dimensions of on screen object
dw_progress.height = this.height
dw_progress.width = this.width

// make the dw header band height of on screen object
dw_progress.object.datawindow.header.height = this.height

// make the progress rectangle the height and width of on screen object 
dw_progress.object.progress_rect.height = this.height
dw_progress.object.progress_rect.width = this.width

// center percentage text on screen object
dw_progress.object.pct.y = integer((integer(dw_progress.object.datawindow.header.height) / 2 ) - &
												(integer(dw_progress.object.pct.height) / 2))
dw_progress.object.pct.width = this.width


end event

     
Name Owner
No Data

     
Name Owner
systemfunctions.integer systemfunctions

     
Full name
pfc_u_progressbar
pfc_u_progressbar.dw_progress

     
Name Scope
No Data