|
pfc_apply
|
|
Full name
|
pfc_w_zoom.pfc_apply
|
Access
|
public
|
Extend of
|
|
Return value
|
|
Prototype
|
event pfc_apply()
|
Name
|
Datatype
|
lnv_string
|
n_cst_string
|
event pfc_apply;call super::pfc_apply;//////////////////////////////////////////////////////////////////////////////
//
// Event: pfc_apply
//
// Description: Apply zoom factor to requesting DataWindow
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 Initial version
// 6.0 Added support for datastores
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
n_cst_string lnv_string
lnv_string.of_GlobalReplace (em_zoom.text, "%", "")
if IsNumber (em_zoom.text) then
inv_zoomattrib.ii_zoom = Integer (em_zoom.text)
else
return
end if
if ib_dwrequestor then
inv_zoomattrib.idw_obj.object.datawindow.print.preview.zoom = inv_zoomattrib.ii_zoom
else
inv_zoomattrib.ids_obj.object.datawindow.print.preview.zoom = inv_zoomattrib.ii_zoom
end if
ii_rc = inv_zoomattrib.ii_zoom
cb_apply.enabled = false
end event