X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a183ec70940e5ecddd4d5a0ea13ccdd43cc015b5..f73785b104876e6c61ea82576df7730716796fa0:/interface/wx/window.h diff --git a/interface/wx/window.h b/interface/wx/window.h index 180aef5b63..ac715f76f7 100644 --- a/interface/wx/window.h +++ b/interface/wx/window.h @@ -2375,6 +2375,10 @@ public: The parameter @a menu is the menu to show. The parameter @a pos (or the parameters @a x and @a y) is the position at which to show the menu in client coordinates. + It is recommended to not explicitly specify coordinates when + calling this method in response to mouse click, because some of + the ports (namely, wxGTK) can do a better job of positioning + the menu in that case. @return The selected menu item id or @c wxID_NONE if none selected or an @@ -2382,7 +2386,8 @@ public: @since 2.9.0 */ - int GetPopupMenuSelectionFromUser(wxMenu& menu, const wxPoint& pos); + int GetPopupMenuSelectionFromUser(wxMenu& menu, + const wxPoint& pos = wxDefaultPosition); /** @overload