Clickable Region Bitmap ...any ideas?
Task: A picture of a machine containing clickable buttons, so you can click on a button and bring up a list of functions to assign to the button...
I've thought of having a weird shaped toolbar, but that wants the buttons to be square - these buttons can be any shape. It would be easy enough in a website, just use a hypermap, but in Visual C++....I'm a bit stumped. Any help much appreciated,
[email protected]
<IMG SRC="http://www.geocities.com/SiliconVall...42/Dee_Wiz.jpg">
Re: Clickable Region Bitmap ...any ideas?
One of the many legends on this site, Dan you know who you are, has given me a few clues - so I should bother him anymore! He reckons I should make a mask, a transparent monochrome bmp with the buttons on it and somehow superimpse this over the picture of the phone. I have looked into the CBitmap button thing, but really its just a small part of a config program that will not be used much, so it doesn't have to be brilliant, but not too quick or dirty either. I understand your algorithm, just need a tad more clarification on what we have here: OK, obviously a dialog. The bitmap is either pasted on as the background or contained in a picture box. Then we have a mask. The mask is a second bitmap (?) which contains only the button regions to be clicked. Somehow the regions are converted to polygon lists. Each 'square', or set of points making up a square is assigned an ID. (In the rc2 file?) When a point on the dialog (or form) is clicked, a message is routed to the algorithm, which find which ID has 'caught' the message, at which point I do my stuff. I'm not sure how, but is this where the mask comes in - to superimpose the button over the bitmap....I'll answer this myself when its solved - anyone else?
...Clear as mud
\_|_|_|_/
oOOOOOo
(*^@ @^*)
| O |
\&_&/
__-__
/?;|;?\
D_WZRDV_Z