BlitzUI - Finished and Free

Miscellaneous Forums/Blitz Showcase/BlitzUI - Finished and Free

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

image boxes return the mouse x and y position if the mouse is over the image so you can just do something like:

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, "/" )