of_register


pfcdwsrv.pbl   >   pfc_n_cst_dwsrv_resize   >   of_register   

Full name pfc_n_cst_dwsrv_resize.of_register
Access public
Extend of integer
Return value integer
Prototype public function integer of_register(dwobject,integer,integer,integer,integer)

Name Datatype
No Data

Name Datatype
ls_objname string

public function integer of_register (dwobject adwo_control, integer ai_movex, integer ai_movey, integer ai_scalewidth, integer ai_scaleheight);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		of_Register
//
//	Access:  		public
//
//	Arguments:		
//	 adwo_control		The object being registered.
//  ai_movex			The percentage to move the object along the x axis.
//  ai_movey			The percentage to move the object along the y axis.
//  ai_scalewidth 	The percentage to scale the object along the x axis.
//  ai_scaleheight	The percentage to scale the object along the y axis.
//
//	Returns:  		integer
//						1 if it succeeds and -1 if an error occurs.
//
//	Description:  	Register a control which needs to either be moved or resized
//						when the parent object is resized.
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	6.0   Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
//	Copyright © 1996-1999 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.
//
//////////////////////////////////////////////////////////////////////////////

string ls_objname

//Check parameters
If IsNull(adwo_control) Then
	Return -1
End If

ls_objname = adwo_control.Name
Return of_Register(ls_objname, ai_movex, ai_movey, ai_scalewidth, ai_scaleheight)
end function

     
Name Owner
No Data

     
Name Owner
systemfunctions.isnull systemfunctions
pfc_n_cst_dwsrv_resize.of_register pfc_n_cst_dwsrv_resize

     
Full name
No Data

     
Name Scope
No Data