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
This commit is contained in:
Frédéric Bron
2018-04-18 09:58:22 +02:00
committed by Vadim Zeitlin
parent 496da2e550
commit 6226e3b0d3

View File

@@ -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.
<b>wxMSW note</b>: 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