]> git.saurik.com Git - wxWidgets.git/commitdiff
Default position for PopupMenu
authorRobin Dunn <robin@alldunn.com>
Wed, 9 Jun 2004 17:05:20 +0000 (17:05 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 9 Jun 2004 17:05:20 +0000 (17:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_window.i

index 1248073fb7478d37270c3c766bee68832f73319f..687bc7088da253814b9a403e3dea648892024a6d 100644 (file)
@@ -1436,12 +1436,13 @@ of how to call UpdateWindowUI from an idle function::
 
 
     DocStr(PopupMenu,
-           "Pops up the given menu at the specified coordinates, relative to this
-window, and returns control when the user has dismissed the menu. If a
-menu item is selected, the corresponding menu event is generated and
-will be processed as usual.", "");
-    %name(PopupMenuXY) bool PopupMenu(wxMenu *menu, int x, int y);
-    bool PopupMenu(wxMenu *menu, const wxPoint& pos);
+           "Pops up the given menu at the specified coordinates, relative to this window,
+and returns control when the user has dismissed the menu. If a menu item is
+selected, the corresponding menu event is generated and will be processed as
+usual.  If the default position is given then the current position of the
+mouse cursor will be used.", "");
+    %name(PopupMenuXY) bool PopupMenu(wxMenu *menu, int x=-1, int y=-1);
+    bool PopupMenu(wxMenu *menu, const wxPoint& pos=wxDefaultPosition);