|
pfc_propertypopulate
|
|
Full name
|
pfc_u_tabpg_dwproperty_srvprintpreview.pfc_propertypopulate
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
event integer pfc_propertypopulate()
|
Name
|
Datatype
|
li_rc
|
integer
|
event pfc_propertypopulate;call super::pfc_propertypopulate;//////////////////////////////////////////////////////////////////////////////
//
// Function: pfc_properypopulate
//
// Access: Public
//
// Arguments: None
//
// Returns: Integer
// 1 if it succeeds.
// -1 if an error occurs.
//
// Description:
// Populate the screen edit controls with the current service values.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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
// 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
// Determine if PrintPreview is enabled.
cbx_enabled.Checked = idw_requestor.inv_printpreview.of_GetEnabled()
// Determine if Ruler is enabled.
cbx_ruler.Checked = idw_requestor.inv_printpreview.of_GetRuler()
// Determine the current zoom level.
em_zoom.Text = string(idw_requestor.inv_printpreview.of_GetZoom())
Return 1
end event