of_SetResize


pfcmain.pbl   >   pfc_u_dw   >   of_SetResize   

Full name pfc_u_dw.of_SetResize
Access public
Extend of integer
Return value integer
Prototype public function integer of_SetResize(boolean)

Name Datatype
No Data

Name Datatype
No Data

public function integer of_SetResize (boolean ab_switch);//////////////////////////////////////////////////////////////////////////////
//	Public Function:  of_SetResize
//	Arguments:		boolean
//   					true  - Start (create) the service
//   					false - Stop (destroy ) the service
//	Returns:			Integer - 1 if Successful operation, 0 = No action taken and -1 if an error occured
//	Description:	Starts or stops the DW Resize Services. 
//////////////////////////////////////////////////////////////////////////////
//	Rev. 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.
//////////////////////////////////////////////////////////////////////////////
// Check arguments
if IsNull(ab_switch) then return FAILURE

if ab_Switch then
	if IsNull(inv_Resize) or not IsValid (inv_Resize) then
		inv_Resize = Create n_cst_dwsrv_resize
		inv_Resize.of_SetRequestor ( this )
		inv_Resize.of_SetOrigSize (this.Width, this.Height)
		return SUCCESS
	end if
else 
	if IsValid (inv_Resize) then
		Destroy inv_Resize
		return SUCCESS
	end if	
end if

return NO_ACTION
end function

     
Name Owner
pfc_u_dw.destructor pfc_u_dw
pfc_u_tabpg_dwproperty_services.pfc_propertyapplyimmediate pfc_u_tabpg_dwproperty_services

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
pfc_n_cst_dwsrv_resize.of_setorigsize pfc_n_cst_dwsrv_resize
pfc_n_cst_dwsrv_resize.of_setrequestor pfc_n_cst_dwsrv_resize

     
Full name
pfc_u_dw

     
Name Scope
No Data