pfc_ruler


pfcmain.pbl   >   pfc_n_ds   >   pfc_ruler   

Full name pfc_n_ds.pfc_ruler
Access public
Extend of boolean
Return value boolean
Prototype event boolean pfc_ruler()

Name Datatype
No Data

Name Datatype
lb_rc boolean

event pfc_ruler;//////////////////////////////////////////////////////////////////////////////
//
//	Event:  pfc_ruler
//
//	Arguments:  none
//
//	Returns:  boolean
//	true = Printpreview rulers are displayed
//	false = Printpreview rulers are not displayed
//
//	Description:	Toggles the ruler display in printpreview mode
//
//////////////////////////////////////////////////////////////////////////////
//	
//	Revision History
//
//	Version
//	6.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.
//
//////////////////////////////////////////////////////////////////////////////

boolean	lb_rc

if IsValid (inv_printpreview) then
	if inv_printpreview.of_GetEnabled() then
		lb_rc = inv_printpreview.of_GetRuler()
		lb_rc = not lb_rc
		inv_printpreview.of_SetRuler (lb_rc)
	end if
end if

return lb_rc
end event

     
Name Owner
No Data

     
Name Owner
systemfunctions.isvalid systemfunctions
pfc_n_cst_dssrv_printpreview.of_getenabled pfc_n_cst_dssrv_printpreview
pfc_n_cst_dssrv_printpreview.of_getruler pfc_n_cst_dssrv_printpreview
pfc_n_cst_dssrv_printpreview.of_setruler pfc_n_cst_dssrv_printpreview

     
Full name
No Data

     
Name Scope
No Data