added and documented wxWindow::MoveBefore/AfterInTabOrder()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28132 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -513,9 +513,17 @@ public:
|
||||
// set this child as temporary default
|
||||
virtual void SetTmpDefaultItem(wxWindow * WXUNUSED(win)) { }
|
||||
|
||||
// Navigates in the specified direction by sending a wxNavigationKeyEvent
|
||||
// navigates in the specified direction by sending a wxNavigationKeyEvent
|
||||
virtual bool Navigate(int flags = wxNavigationKeyEvent::IsForward);
|
||||
|
||||
// move this window just before/after the specified one in tab order
|
||||
// (the other window must be our sibling!)
|
||||
void MoveBeforeInTabOrder(wxWindow *win)
|
||||
{ DoMoveInTabOrder(win, MoveBefore); }
|
||||
void MoveAfterInTabOrder(wxWindow *win)
|
||||
{ DoMoveInTabOrder(win, MoveAfter); }
|
||||
|
||||
|
||||
// parent/children relations
|
||||
// -------------------------
|
||||
|
||||
@@ -1031,6 +1039,13 @@ protected:
|
||||
virtual bool TryValidator(wxEvent& event);
|
||||
virtual bool TryParent(wxEvent& event);
|
||||
|
||||
// common part of MoveBefore/AfterInTabOrder()
|
||||
enum MoveKind
|
||||
{
|
||||
MoveBefore, // insert before the given window
|
||||
MoveAfter // insert after the given window
|
||||
};
|
||||
virtual void DoMoveInTabOrder(wxWindow *win, MoveKind move);
|
||||
|
||||
#if wxUSE_CONSTRAINTS
|
||||
// satisfy the constraints for the windows but don't set the window sizes
|
||||
|
Reference in New Issue
Block a user