You Opera and Firefox users must be familiar with the feature that allows you to close a panel tab via mouse middle click. Now i'd like to implement this feature to one of my programs, but I don't know how to retrieve to "point of hit" relative to gadget itself. Also I need to know what's the width of panels so I can calculate which tab it hit.
I'm currently able to detect if the panel gadget was clicked:
Code: Select all
GetCursorPos_(mouse.POINT)
Case #WM_MBUTTONDOWN
If WindowFromPoint_(mouse\x,mouse\y) = GadgetID(#GADGET_PANEL)
;something here
EndIf

