pfc_propertyapply | |
|
pfcutil.pbl > pfc_u_tabpg_dwproperty_srvprintpreview > pfc_propertyapply |
Full name | pfc_u_tabpg_dwproperty_srvprintpreview.pfc_propertyapply |
---|---|
Access | public |
Extend of | |
Return value | |
Prototype | event pfc_propertyapply() |
Name | Datatype |
---|---|
No Data |
Name | Datatype |
---|---|
lb_current | boolean |
lb_desired | boolean |
li_rc | integer |
li_zoomcurrent | integer |
li_zoomdesired | integer |
event pfc_propertyapply;call super::pfc_propertyapply;//////////////////////////////////////////////////////////////////////////////
//
// Function: pfc_PropertyApply
//
// Access: Public
//
// Arguments: None
//
// Returns: Integer
// 1 if it succeeds.
// -1 if an error occurs.
//
// Description:
// Apply the requested changes.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
integer li_rc
integer li_zoomcurrent, li_zoomdesired
boolean lb_current, lb_desired
// Validate references.
If IsNull(idw_requestor) or Not IsValid(idw_requestor) Then
Return -1
End If
If IsNull(idw_requestor.inv_printpreview) or Not IsValid(idw_requestor.inv_printpreview) Then
Return -1
End If
// -- Enabled. --
lb_current = idw_requestor.inv_printpreview.of_GetEnabled()
lb_desired = cbx_enabled.Checked
// If the desired value differs from the current value.
If lb_current<> lb_desired Then
li_rc = idw_requestor.inv_printpreview.of_SetEnabled(lb_desired)
End If
// Determine if Ruler is enabled.
lb_current = idw_requestor.inv_printpreview.of_GetRuler()
lb_desired = cbx_ruler.Checked
// If the desired value differs from the current value.
If lb_current<> lb_desired Then
li_rc = idw_requestor.inv_printpreview.of_SetRuler(lb_desired)
End If
// Determine the current zoom level.
li_zoomcurrent = idw_requestor.inv_printpreview.of_GetZoom()
li_zoomdesired = Integer(em_zoom.Text)
// If the desired value differs from the current value.
If li_zoomcurrent<> li_zoomdesired Then
li_rc = idw_requestor.inv_printpreview.of_SetZoom(li_zoomdesired)
End If
Return 1
end event
Name | Owner |
---|---|
No Data |
Name | Owner |
---|---|
systemfunctions.integer | systemfunctions |
systemfunctions.isnull | systemfunctions |
systemfunctions.isvalid | systemfunctions |
pfc_n_cst_dwsrv_printpreview.of_getenabled | pfc_n_cst_dwsrv_printpreview |
pfc_n_cst_dwsrv_printpreview.of_setenabled | pfc_n_cst_dwsrv_printpreview |
pfc_n_cst_dwsrv_printpreview.of_setzoom | pfc_n_cst_dwsrv_printpreview |
pfc_n_cst_dwsrv_printpreview.of_getzoom | pfc_n_cst_dwsrv_printpreview |
pfc_n_cst_dwsrv_printpreview.of_getruler | pfc_n_cst_dwsrv_printpreview |
pfc_n_cst_dwsrv_printpreview.of_setruler | pfc_n_cst_dwsrv_printpreview |
pfc_u_tabpg_dwproperty_base.pfc_propertyapply | pfc_u_tabpg_dwproperty_base |
Full name |
---|
pfc_u_tabpg_dwproperty_srvprintpreview |
Name | Scope |
---|---|
No Data |