Gadget action on mouse down

Archives Forums/BlitzPlus Programming/Gadget action on mouse down

Cold Harbour(Posted 2004) [#1]
First of all, Happy New Year.

Anyone know a way of getting B+ to produce a gadget event when you downclick on a button? From my tests the event is produced only when you upclick.

I'm making a resize bar for my app and am trying to use a long thin button to do it. I suppose you could call it click and hold.

Thanks!


downclick - initially pressing the LHM on a buttton
upclick - releasing the LHM.


CS_TBL(Posted 2004) [#2]
Why don't you use a canvas? I made such a dragbar myself some month ago, works perfectly with a canvas. If you want the animating 'push-in' effect from the button, then you could try to animatie this yourself with that canvas.


Cold Harbour(Posted 2004) [#3]
Thanks CS_TBL. For some reason I was using a button..
I've just rewritten it to use a canvas and it works great. I can even integrate it into my existing mousedown check routine.

Thanks a lot for you help.