of_setresize


pfcmain.pbl   >   pfc_w_master   >   of_setresize   

Full name pfc_w_master.of_setresize
Access public
Override of integer
Return value integer
Prototype public function integer of_setresize(boolean)

Name Datatype
ab_switch boolean

Name Datatype
li_rc integer

public function integer of_setresize (boolean ab_switch);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_SetResize
//
//	Access:  public
//
//	Arguments:		
//	ab_switch   starts/stops the window resize service
//
//	Returns:  integer
//	 1 = success
//	 0 = no action necessary
//	-1 = error
//
//	Description:
//	Starts or stops the window resize service
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

integer	li_rc

// Check arguments
if IsNull (ab_switch) then
	return -1
end if

if ab_Switch then
	if IsNull(inv_resize) Or not IsValid (inv_resize) then
		inv_resize = create n_cst_resize
		inv_resize.of_SetOrigSize (this.WorkSpaceWidth(), this.WorkSpaceHeight())
		li_rc = 1
	end if
else
	if IsValid (inv_resize) then
		destroy inv_resize
		li_rc = 1
	end if
end If

return li_rc

end function

     
Name Owner
pfc_w_selection.open pfc_w_selection
pfc_w_restorerow.open pfc_w_restorerow
pfc_w_master.close pfc_w_master
pfc_w_sqlspy.pfc_preopen pfc_w_sqlspy
pfc_w_debuglog.pfc_preopen pfc_w_debuglog

     
Name Owner
window.workspaceheight window
window.workspacewidth window
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
pfc_n_cst_resize.of_SetOrigSize pfc_n_cst_resize

     
Full name
No Data

     
Name Scope
No Data