Contents Up Previous Next

wxPreviewControlBar: wxPanel

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.

See also wxPreviewFrame, wxPreviewCanvas, wxPrintPreview.

wxPreviewControlBar::buttonFlags
wxPreviewControlBar::buttonFont
wxPreviewControlBar::closeButton
wxPreviewControlBar::nextPageButton
wxPreviewControlBar::previousPageButton
wxPreviewControlBar::printPreview
wxPreviewControlBar::zoomControl
wxPreviewControlBar::wxPreviewControlbar
wxPreviewControlBar::~wxPreviewControlBar
wxPreviewControlBar::CreateButtons
wxPreviewControlBar::GetPrintPreview
wxPreviewControlBar::GetZoomControl
wxPreviewControlBar::OnPaint
wxPreviewControlBar::SetZoomControl


wxPreviewControlBar::buttonFlags

long buttonFlags

Protected data member, containing the button flags (see the constructor for details).


wxPreviewControlBar::buttonFont

static wxFont * buttonFont

Protected data member, pointing to the font used for the buttons.


wxPreviewControlBar::closeButton

wxButton * closeButton

Protected data member, pointing to the close button.


wxPreviewControlBar::nextPageButton

wxButton * nextPageButton

Protected data member, pointing to the next page button.


wxPreviewControlBar::previousPageButton

wxButton * previousPageButton

Protected data member, pointing to the previous page button.


wxPreviewControlBar::printPreview

wxPrintPreview * printPreview

Protected data member, pointing to the associated print preview object.


wxPreviewControlBar::zoomControl

wxChoice * zoomControl

Protected data member, pointing to the zoom control.


wxPreviewControlBar::wxPreviewControlbar

void wxPreviewControlBar(wxPrintPreview *preview, long buttons, wxWindow *parent, int x = -1, int y = -1, int width = -1, int height = -1,
long style = 0, char *name = "panel")

Constructor.

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

wxPREVIEW_PRINT Create a print button.
wxPREVIEW_NEXT Create a next page button.
wxPREVIEW_PREVIOUS Create a previous page button.
wxPREVIEW_ZOOM Create a zoom control.
wxPREVIEW_DEFAULT Equivalent to a combination of wxPREVIEW_PREVIOUS, wxPREVIEW_NEXT and wxPREVIEW_ZOOM.


wxPreviewControlBar::~wxPreviewControlBar

void ~wxPreviewControlBar(void)

Destructor.


wxPreviewControlBar::CreateButtons

void CreateButtons(void)

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


wxPreviewControlBar::GetPrintPreview

wxPrintPreview * GetPrintPreview(void)

Gets the print preview object associated with the control bar.


wxPreviewControlBar::GetZoomControl

int GetZoomControl(void)

Gets the current zoom setting in percent.


wxPreviewControlBar::OnPaint

void OnPaint(void)

Draws a black border on the bottom of the control.


wxPreviewControlBar::SetZoomControl

void SetZoomControl(int percent)

Sets the zoom control.