Retreiving toolbutton hint from OnClick procedure
Posted on 2004-03-28
I have a number of toolbars each with a number of buttons( 114 buttons altogether !). I need to find out which button has been clicked from a common OnClick procedure. I thought it should be easy enough ( and probably is if only I knew what I was doing). The toolbars have a horizontal set of buttons on each and the toolbars are stacked vertically. I can't seem to access any of the properties which might be of use eg left,top,index. My last idea was to set the hint on each button and find out that way. The hint shows OK on the form at runtime, but is blank if I do
showmessage(hint); in the onclick procedure.
This is driving me mad as I am sure you will all be shouting out the answer, but I just can't see it.