of_setpossize


pfcwnsrv.pbl   >   pfc_n_cst_winsrv_preference   >   of_setpossize   

Full name pfc_n_cst_winsrv_preference.of_setpossize
Access public
Extend of integer
Return value integer
Prototype public function integer of_setpossize()

Name Datatype
No Data

Name Datatype
No Data

public function integer of_setpossize ();//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		of_SetPosSize
//
//	Access:  		public
//
//	Arguments:		None
//
//	Returns:  		integer
//						 1 if it succeeds.
//						 0 if the WindowState is not Normal!.
//						-1 if an error occurs.
//						
//	Description:  	Store in the service the current Position and Size of Requestor.
//						This is needed so the service knows the Normal size of the 
//						Requestor even when the Requestor is closed as Maximized/Minimized.
//
//			*Note:	This function should be called from the resize and move events.
//						This function should only be called when the WindowState is
//						of type Normal!.
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	5.0   Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

If IsNull(iw_requestor) Or Not IsValid (iw_requestor) Then 
	Return -1
End If

//Confirm that the WindowState is of type Normal!
If iw_requestor.WindowState = Normal! Then
	ii_normalstate_x = iw_requestor.X
	ii_normalstate_y = iw_requestor.Y
	ii_normalstate_width = iw_requestor.Width
	ii_normalstate_height = iw_requestor.Height
	Return 1
End If

Return 0

end function

     
Name Owner
pfc_n_cst_winsrv_preference.of_save pfc_n_cst_winsrv_preference
pfc_w_master.move pfc_w_master
pfc_w_master.resize pfc_w_master

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions

     
Full name
pfc_w_master

     
Name Scope
No Data