Document wxWindow::PopupMenu() effect on focus

This may be not obvious, so mention it explicitly.
This commit is contained in:
Vadim Zeitlin
2020-04-18 20:35:22 +02:00
parent db3ff4e2f8
commit e803408058

View File

@@ -3054,6 +3054,9 @@ public:
The position where the menu will appear can be specified either as a The position where the menu will appear can be specified either as a
wxPoint @a pos or by two integers (@a x and @a y). wxPoint @a pos or by two integers (@a x and @a y).
Note that this function switches focus to this window before showing
the menu.
@remarks Just before the menu is popped up, wxMenu::UpdateUI is called to @remarks Just before the menu is popped up, wxMenu::UpdateUI is called to
ensure that the menu items are in the correct state. ensure that the menu items are in the correct state.
The menu does not get deleted by the window. The menu does not get deleted by the window.