contents up previous next

wxwizardpagesimple

wxwizardpagesimple is the simplest possible wxwizardpage implementation: it just returns the pointers given to its constructor from getnext() and getprev() functions.

this makes it very easy to use the objects of this class in the wizards where the pages order is known statically - on the other hand, if this is not the case you must derive your own class from wxwizardpage instead.

derived from

wxwizardpage
wxpanel
wxwindow
wxevthandler
wxobject

include files

<wx/wizard.h>

see also

wxwizard, wxwizard sample

members

wxwizardpagesimple::wxwizardpagesimple
wxwizardpagesimple::setprev
wxwizardpagesimple::setnext
wxwizardpagesimple::chain


wxwizardpagesimple::wxwizardpagesimple

wxwizardpagesimple(wxwizard* parent = null, wxwizardpage* prev = null, wxwizardpage* next = null, const wxbitmap& bitmap = wxnullbitmap)

constructor takes the previous and next pages. they may be modified later by setprev() or setnext().


wxwizardpagesimple::setprev

void setprev(wxwizardpage* prev)

sets the previous page.


wxwizardpagesimple::setnext

void setnext(wxwizardpage* next)

sets the next page.


wxwizardpagesimple::chain

static void chain(wxwizardpagesimple* first, wxwizardpagesimple* second)

a convenience function to make the pages follow each other.

example:

    wxradioboxpage *page3 = new wxradioboxpage(wizard);
    wxvalidationpage *page4 = new wxvalidationpage(wizard);

    wxwizardpagesimple::chain(page3, page4);