Hi all,
it's been months since I've last programmed with DBPro. My last project (which I am now re-programming) was a small platform-style game with a 3D level editor to make my job of designing levels a bit easier. I also wanted to give the user a chance at designing their own levels with a dumbed-down version of the editor that uses hand-made bitmap "GUI" elements (I'll just be using keyboard buttons for my editor). Now, when I was writing the code for the GUI elements last year, I had the images pre-loaded (of course), and then from the main program loop I called the GUI subroutine. It looked something like this:
`See if the mouse is hovering over any GUI elements
`Mx#=MouseX() and My#=MouseY()
If Mx#=<200 and My#=<600 and Mx#=>0 and My#=>0
Paste Image button_invert,200,600,0,0 : MenuItem=1
If MouseClick()=1 and MenuItem=1 Then GoSub CreateObject
EndIf
I know that's
incredibly sloppy, and a programmer's nightmare because I have to keep coding something similar for EVERY darned function of the program, but I really have no idea how else to accomplish anything similar. But that is not what this post is about (although I welcome any advice on the matter!

); I'm asking if it's somehow possible to store the X and Y values of the GUI images so that I don't have to keep writing the values for every mouse-hover check. This way, I can easily make it so that the user can choose which resolution to run the program in, and I can just use the pre-defined image locations to check if the mouse is over any menu items and elements.
So...has anybody done this before, and is it possible without having to write my own actual GUI functions?
Thanks to any and all who respond!
-CoffeeCoder