wxbookctrl overview
classes: wxnotebook, wxlistbook, wxchoicebook,
wxtreebook, wxtoolbook
introduction
best book
introduction
a book control is a convenient way of displaying multiple pages of information,
displayed one page at a time. wxwidgets has five variants of this control:
see notebook sample for an example of wxbookctrl usage.
best book
wxbookctrl is mapped to the class best suited for a given platform.
currently it provides wxchoicebook for smartphones equipped with
wince, and wxnotebook for all other platforms. the mapping consists of:
wxbookctrl
|
wxchoicebook or wxnotebook
|
wxbookctrlevent
|
wxchoicebookevent or wxnotebookevent
|
wxevt_command_bookctrl_page_changed
|
wxevt_command_choicebook_page_changed or wxevt_command_notebook_page_changed
|
wxevt_command_bookctrl_page_changing
|
wxevt_command_choicebook_page_changing or wxevt_command_notebook_page_changing
|
evt_bookctrl_page_changed(id, fn)
|
evt_choicebook_page_changed(id, fn) or evt_notebook_page_changed(id, fn)
|
evt_bookctrl_page_changing(id, fn)
|
evt_choicebook_page_changing(id, fn) or evt_notebook_page_changing(id, fn)
|
for orientation of the book controller, use following flags in style:
wxbk_top
|
controller above pages
|
wxbk_bottom
|
controller below pages
|
wxbk_left
|
controller on the left
|
wxbk_right
|
controller on the right
|
wxbk_default
|
native controller placement
|
|