$szTitle = "wxpreviewcontrolbar"; include "./_header.inc"; ?>
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
wxpanel
wxwindow
wxevthandler
wxobject
include files
<wx/print.h>
see also
wxpreviewframe, wxpreviewcanvas, wxprintpreview
members
wxpreviewcontrolbar::wxpreviewcontrolbar
wxpreviewcontrolbar::~wxpreviewcontrolbar
wxpreviewcontrolbar::createbuttons
wxpreviewcontrolbar::getprintpreview
wxpreviewcontrolbar::getzoomcontrol
wxpreviewcontrolbar::setzoomcontrol
wxpreviewcontrolbar(wxprintpreview* preview, long buttons, wxwindow* parent, const wxpoint& pos = wxdefaultposition, const wxsize& size = wxdefaultsize, long style = 0, const wxstring& 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()
destructor.
void createbuttons()
creates buttons, according to value of the button style flags.
wxprintpreview * getprintpreview()
gets the print preview object associated with the control bar.
int getzoomcontrol()
gets the current zoom setting in percent.
void setzoomcontrol(int percent)
sets the zoom control.
include "./_footer.inc"; ?>