Sorry. Same test as before, bug's still present (modified example below) :
Code: Select all
ToolBar::TextButton(#ToolBar, "New", #TB_New, "newID")
ToolBar::ImageButton(#ToolBar, #IMG_Save, #TB_Save, "Save", "saveID")
ToolBar::Spacer(#ToolBar)
; ToolBar::Separator(#ToolBar)
ToolBar::ImageButton(#ToolBar, #IMG_Copy, #TB_Copy, "Copy", "copyID")
ToolBar::Spacer(#ToolBar)
; ToolBar::ImageButton(#ToolBar, #IMG_Cut, #TB_Cut, "Cut", "cutID")
ToolBar::ImageButton(#ToolBar, #IMG_Paste, #TB_Paste, "Paste", "pasteID")
ToolBar::Separator(#ToolBar)
CompilerIf ToolBar::#EnableToolBarGadgets
The Paste Button is only triggered when the mouse Y is between 40 and 43.
The tooltip is following the mouse on every ImageButton (on your unmodified example).
EDIT : I think I got it. The position of the spacer is overlapping the position of the button, so it break the loop inside _LeftButtonDownHandler() before processing the button. (in black, the draws of the spacers)
EDIT 2 : Adding
Code: Select all
If TBEx()\Items()\Type = #Spacer : Continue : EndIf
inside _LeftButtonUpHandler() and _LeftButtonDownHandler() seems to fix the problem