image boxes return the mouse x and y position if the mouse is over the image so you can just do something like:
The mouse x and y is stored in app\GadgetEventData in the format X/Y. BlitzUI has a Parse function so all u have to do to retrieve either coordinate is:
mouseX = Parse( app\GadgetEventData, 0, "/" )
mouseY = Parse( app\GadgetEventData, 1, "/" )
Select app\GadgetEvent Case myimgbox if app\GadgetEventData > "" if app\MB1 = 1 ;Mouse click endif endif End Select
The mouse x and y is stored in app\GadgetEventData in the format X/Y. BlitzUI has a Parse function so all u have to do to retrieve either coordinate is:
mouseX = Parse( app\GadgetEventData, 0, "/" )
mouseY = Parse( app\GadgetEventData, 1, "/" )