From 6226e3b0d3ab5601d8ec8bc497b0ab90bbe6438a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Bron?= Date: Wed, 18 Apr 2018 09:58:22 +0200 Subject: [PATCH] Emphasize the need for Realize() in wxToolBar documentation As it is essential for a correct behaviour of wxToolBar, explain in the main documentation of the class that Realize() must be called to construct the tools. Note: it is already explained in the constructor's documentation and in AddTool's documentation. Closes https://github.com/wxWidgets/wxWidgets/pull/786 --- interface/wx/toolbar.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/interface/wx/toolbar.h b/interface/wx/toolbar.h index 783531ab65..e6b43df03b 100644 --- a/interface/wx/toolbar.h +++ b/interface/wx/toolbar.h @@ -168,6 +168,9 @@ public: Calls to @c wxToolBarToolBase methods (undocumented by purpose) will not change the visible state of the item within the tool bar. + After you have added all the tools you need, you must call Realize() to + effectively construct and display the toolbar. + wxMSW note: Note that under wxMSW toolbar paints tools to reflect system-wide colours. If you use more than 16 colours in your tool bitmaps, you may wish to suppress this behaviour, otherwise system colours in your