wxRuby Documentation Home

Wx::PreviewControlBar

This is the default implementation of the preview control bar, a panel
with buttons and a zoom control. You can derive a new class from this and
override some or all member functions to change the behaviour and appearance;
or you can leave it as it is.

Derived from

Panel

Window

EvtHandler

Object

See also

PreviewFrame, PreviewCanvas, PrintPreview

Methods

PreviewControlBar#preview_controlbar

PreviewControlBar.new(%(arg-type)PrintPreview% preview, Integer buttons, Window parent, Point pos = DEFAULT_POSITION, Size size = DEFAULT_SIZE, Integer style = 0, String name = “panel”)

Constructor.

The buttons parameter may be a combination of the following, using the bitwise `or’ operator.

PREVIEW_PRINT Create a print button.
PREVIEW_NEXT Create a next page button.
PREVIEW_PREVIOUS Create a previous page button.
PREVIEW_ZOOM Create a zoom control.
PREVIEW_DEFAULT Equivalent to a combination of PREVIEW_PREVIOUS, PREVIEW_NEXT andPREVIEW_ZOOM.
destructor()

Destructor.

PreviewControlBar#create_buttons

create_buttons()

Creates buttons, according to value of the button style flags.

PreviewControlBar#get_print_preview

PrintPreview get_print_preview()

Gets the print preview object associated with the control bar.

PreviewControlBar#get_zoom_control

Integer get_zoom_control()

Gets the current zoom setting in percent.

PreviewControlBar#set_zoom_control

set_zoom_control(%(arg-type)Integer% percent)

Sets the zoom control.

[This page automatically generated from the Textile source at 2023-06-13 21:31:41 +0000]