Applied [ 516382 ] FL toolbar patch
This patch addresses following issues on FL dynamic
toolbar:
* Removes duplicate code in
wxNewBitmapButton::RenderLabelImage(). (The code
between line 452-500 and 502-550 is the same.)
* Adds wxNewBitmapButton::Enable() own method to proper
drawing of enabled/disabled buttons.
* Changes "focused" state (of wxNewBitmapButton)
implementation from EVT_MOTION to
EVT_ENTER/LEAVE_WINDOW pair, because capturing mouse in
EVT_MOTION handler blocks some key events (control
characters, function keys), so underlynig app doesn't
receive all key events when mouse pointer is above
toolbar button.
Also "prev" state member variables are removed by this
patch (and IMHO they should be removed regardles on
accepting this patch - they are initalized and used
only in wxNewBitmapButton::OnMouseMove() method).
(Note: Blocking some keys can be only MSW problem, but
I can't verify it.)
* Adds EVT_LEFT_DCLICK handler to wxNewBitmapButton -
without this handler, toolbar button loses second
clicks if user presses left mouse button "fast enough".
Unfortunately, it doesn't handle drawing of
pressed/released button - it's only one event in
contrast to EVT_LEFT_UP/DOWN.
* Enables tooltips (in proper
wxDynamicToolBar::AddTool() method).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14467
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775