Página 1 de 1

Buttons on Print Preview Form

Publicado: Sab Abr 17, 2010 9:58 pm
por g.s.rogers
Is this form modifiable? For instance, can I determine which buttons appear
on the button bar in the preview window?
TIA,
Gary

Buttons on Print Preview Form

Publicado: Mié Abr 21, 2010 1:49 pm
por jfgimenez
Gary,
> Is this form modifiable? For instance, can I determine which buttons
> appear on the button bar in the preview window?
You may modify the class TPreviewControl. The easyest way to hide a button
is by overwrite this class in your own program. F.e.:
//---------------------------------------------------------- --------------------
CLASS TPreviewControl FROM XPreviewControl
METHOD Create( oParent )
ENDCLASS
//---------------------------------------------------------- --------------------
METHOD Create( oParent ) CLASS TPreviewControl
Super:Create( oParent )
::oToolBar:aItems[ 7 ]:Disable() // Disable the "print" button
RETURN Self
//---------------------------------------------------------- --------------------
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info

Buttons on Print Preview Form

Publicado: Mié Abr 21, 2010 1:49 pm
por jfgimenez
Gary,
> Is this form modifiable? For instance, can I determine which buttons
> appear on the button bar in the preview window?
You may modify the class TPreviewControl. The easyest way to hide a button
is by overwrite this class in your own program. F.e.:
//---------------------------------------------------------- --------------------
CLASS TPreviewControl FROM XPreviewControl
METHOD Create( oParent )
ENDCLASS
//---------------------------------------------------------- --------------------
METHOD Create( oParent ) CLASS TPreviewControl
Super:Create( oParent )
::oToolBar:aItems[ 7 ]:Disable() // Disable the "print" button
RETURN Self
//---------------------------------------------------------- --------------------
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info