Added wxMenuBase::FindItemByPosition

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2003-06-14 19:44:54 +00:00
parent 9505511c59
commit bd582574c2
3 changed files with 10 additions and 0 deletions

View File

@ -81,6 +81,7 @@ All GUI ports:
- Added BLOB support to wxDB (John Skiff)
- Wizard now validates when pressing Back or Next
- Implemented wxNotebook::DoGetBestSize so Fit now works
- Added FindItemByPosition to wxMenu
Unix:

View File

@ -349,6 +349,12 @@ before matching.
\pythonnote{The name of this method in wxPython is {\tt FindItemById}
and it does not support the second parameter.}
\membersection{wxMenu::FindItemByPosition}\label{wxmenufinditembyposition}
\constfunc{wxMenuItem*}{FindItemByPosition}{\param{size_t }{position}}
Returns the wxMenuItem given a position in the menu.
\membersection{wxMenu::GetHelpString}\label{wxmenugethelpstring}
\constfunc{wxString}{GetHelpString}{\param{int}{ id}}

View File

@ -242,6 +242,9 @@ public:
virtual int FindItem(const wxString& item) const;
wxMenuItem* FindItem(int itemid, wxMenu **menu = NULL) const;
// find by position
wxMenuItem* FindItemByPosition(size_t position) const;
// get/set items attributes
void Enable(int itemid, bool enable);
bool IsEnabled(int itemid) const;