ButtonMaster
This is an old and very basic util I've dug out which lets you define button areas of an image created in a paint program.
I've tested it and it's not great, but it hey - it works.
Create a 640x480, 800x600 or 1024x768 menu screen with the required buttons on it in something like Paintshop Pro then save it as a bmp in the same directory as ButtonMaster.
Run the util and select the resolution you created the menu screen in.
Press I to load the image.
Press B to go to Button Mode and draw boxes around the buttons to define the clickable areas. After defining each area, enter a description for the button.
You only get one chance at defining a button, so be careful. Mess up and you'll have to quit back to the main menu and press N to create everything again from scratch.
You don't have to be 100% accurate as these areas are invisible and the user will normally click close to the centre of the button anyway.
You can also create non-rectangular buttons (oval, circle etc) - just enclose most of the button when defining the clickable area.
When you have created all the button areas, quit back to the main menu and press S to save the button map. (The map can be loaded later with the Load Map option.
Finally, press the W key. This will write a working .DBA file which you can load and run to test out your buttons.
If everything works OK, you can copy and paste the code from in the main loop into your own program.
Download:
http://www.computechtenerife.com/buttonmaster.rar
TDK_Man