- // some pages show 2 controls, in this case override this one as well
- virtual wxControl *GetWidget2() const { return NULL; }
+ // return the control shown by this page, if it supports text entry interface
+ virtual wxTextEntryBase *GetTextEntry() const { return NULL; }
+
+ // lazy creation of the content
+ virtual void CreateContent() = 0;
+
+ // some pages show additional controls, in this case override this one to
+ // return all of them (including the one returned by GetWidget())
+ virtual Widgets GetWidgets() const
+ {
+ Widgets widgets;
+ widgets.push_back(GetWidget());
+ return widgets;
+ }