+
+ // Write by Danny Raynor to change state again.
+ // Check button still pressed or not
+ if( tool->IsInverted() )
+ {
+ PerformAction( wxACTION_TOOLBAR_RELEASE, numArg );
+ }
+
+ // Set mouse leave toolbar button range (If still in the range,
+ // toolbar button would get focus again
+ PerformAction( wxACTION_TOOLBAR_LEAVE, numArg );