+void wxPropertySheetDialog::OnActivate(wxActivateEvent& event)
+{
+#if defined(__SMARTPHONE__)
+ // Attempt to focus the choice control: not yet working, but might
+ // be a step in the right direction. OnActivate overrides the default
+ // handler in toplevel.cpp that sets the focus for the first child of
+ // of the dialog (the choicebook).
+ if (event.GetActive())
+ {
+ wxChoicebook* choiceBook = wxDynamicCast(GetBookCtrl(), wxChoicebook);
+ if (choiceBook)
+ choiceBook->SetFocus();
+ }
+ else
+#endif
+ event.Skip();
+}
+
+#endif // wxUSE_BOOKCTRL