The easiest way seems to create one item for each button, instead of
trying to find where the mouse position is.
Yannick Stucki wrote:
Hi,
I am currently programming a plug-in and it hasn't the common structure
(like the news). It has button on it, like gdTunes. Thus I made the
buttons with the drawing method, and not with the standard labeling.
My problem is now, that I don't know, how I can find out on which
button I clicked. I could do it, if I would now, where the mouse
clicked. Could I compare than with bound.left and bounds.right etc?
or how did the guys of gdTunes do it?