From 970e987e89859b596cbbff2360fc4d9ffa2a10e4 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Wed, 21 May 2008 07:34:47 +0000 Subject: [PATCH] Mention dropdown menu git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/toolbar.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/interface/toolbar.h b/interface/toolbar.h index 72e8ecebb5..860e8f00e5 100644 --- a/interface/toolbar.h +++ b/interface/toolbar.h @@ -249,7 +249,9 @@ public: for a checkable tool (such tool stays pressed after it had been toggled) or ::wxITEM_RADIO for a checkable tool which makes part of a radio group of tools each of which is automatically unchecked - whenever another button in the group is checked. + whenever another button in the group is checked. ::wxITEM_DROPDOWN + specifies that a drop-down menu button will appear next to the + tool button (only GTK+ and MSW). Call SetDropdownMenu() afterwards. @param bitmap1 The primary tool bitmap. @param bitmap2 @@ -271,7 +273,7 @@ public: Realize() in order to have the tools appear. @see AddSeparator(), AddCheckTool(), AddRadioTool(), - InsertTool(), DeleteTool(), Realize() + InsertTool(), DeleteTool(), Realize(), SetDropdownMenu() */ wxToolBarToolBase* AddTool(int toolId, const wxString& label, const wxBitmap& bitmap1, @@ -581,7 +583,8 @@ public: /** Sets the dropdown menu for the tool given by its @e id. The tool itself - will delete the menu when it's no longer needed. + will delete the menu when it's no longer needed. Only supported under + GTK+ und MSW. If you define a EVT_TOOL_DROPDOWN() handler in your program, you must call wxEvent::Skip() from it or the menu won't be displayed. -- 2.45.2