X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9b756edd0d0c3da8dcf5de87dd98bca9e62c3fa3..323d36e452c48f1e48ffe48312004d5e224634ca:/interface/wx/window.h diff --git a/interface/wx/window.h b/interface/wx/window.h index 6a2cc7216c..ac715f76f7 100644 --- a/interface/wx/window.h +++ b/interface/wx/window.h @@ -235,8 +235,6 @@ enum wxWindowVariant Process scroll events. See wxScrollWinEvent. @event{EVT_SET_CURSOR(func)} Process a @c wxEVT_SET_CURSOR event. See wxSetCursorEvent. - @event{EVT_SHOW(func)} - Process a @c wxEVT_SHOW event. See wxShowEvent. @event{EVT_SIZE(func)} Process a @c wxEVT_SIZE event. See wxSizeEvent. @event{EVT_SYS_COLOUR_CHANGED(func)} @@ -2235,6 +2233,11 @@ public: for a top level window if you want to bring it to top, although this is not needed if Show() is called immediately after the frame creation. + Notice that the default state of newly created top level windows is hidden + (to allow you to create their contents without flicker) unlike for + all the other, not derived from wxTopLevelWindow, windows that + are by default created in the shown state. + @param show If @true displays the window. Otherwise, hides it. @@ -2372,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 @@ -2379,7 +2386,8 @@ public: @since 2.9.0 */ - int GetPopupMenuSelectionFromUser(wxMenu& menu, const wxPoint& pos); + int GetPopupMenuSelectionFromUser(wxMenu& menu, + const wxPoint& pos = wxDefaultPosition); /** @overload