Add default value for GetPopupMenuSelectionFromUser() position argument.
Let the menu be popped up at the system-determined position, just as it can already be done with PopupMenu() itself. Closes #12530. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65692 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1147,7 +1147,8 @@ public:
|
||||
|
||||
// simply return the id of the selected item or wxID_NONE without
|
||||
// generating any events
|
||||
int GetPopupMenuSelectionFromUser(wxMenu& menu, const wxPoint& pos)
|
||||
int GetPopupMenuSelectionFromUser(wxMenu& menu,
|
||||
const wxPoint& pos = wxDefaultPosition)
|
||||
{ return DoGetPopupMenuSelectionFromUser(menu, pos.x, pos.y); }
|
||||
int GetPopupMenuSelectionFromUser(wxMenu& menu, int x, int y)
|
||||
{ return DoGetPopupMenuSelectionFromUser(menu, x, y); }
|
||||
|
Reference in New Issue
Block a user