- // default item access: we have a permanent default item which is the one
- // set by the user code but we may also have a temporary default item which
- // would be chosen if the user pressed "Enter" now but the default action
- // reverts to the "permanent" default as soon as this temporary default
- // item lsoes focus
-
- // get the default item, temporary or permanent
- wxWindow *GetDefaultItem() const
- { return m_winTmpDefault ? m_winTmpDefault : m_winDefault; }
-
- // set the permanent default item, return its old value
- wxWindow *SetDefaultItem(wxWindow *win)
- { wxWindow *winOld = m_winDefault; m_winDefault = win; return winOld; }
-
- // set a temporary default item, SetTmpDefaultItem(NULL) should be called
- // soon after a call to SetTmpDefaultItem(window)
- void SetTmpDefaultItem(wxWindow *win) { m_winTmpDefault = win; }
-