I'm trying to redraw a button gadget manually in a Toolbox program.
The button is in a toolbar. I've set the button's 'Needs help' icon
flag. Should I get a Wimp_Poll redraw window request for the toolbar
window, but only for the area covered by this button?
If I unset the toolbar's 'Auto-redraw' flag I get a redraw window
request for the whole toolbar and can draw the button, but another
button I'm using as a background is then plotted over the top of it.
(Some context may explain what I'm trying to do. The programs draws
maps, or will if I ever finish it. The main window contains the map.
The toolbar shows information about the map. I want to show where in
the world the main-window map is located. I'm using a button with a
sprite of the world as the background. On top of this is the 'Needs
help' button, which is unfilled and I'm trying to draw a rectangle in
it to indicate the map's location.)
If I set the toolbar's 'Auto-redraw' flag, I don't seem to get redraw
requests at all. If I even use a single button with the world sprite
and 'Needs help' set, the sprite is plotted over my rectangle.
Do I have a major misunderstanding of how 'Needs help' buttons/icons
should be redrawn? The P/TRMs seem a bit short on information about
this. Or is there a far better way of implementing this?
Any help gratefully received (the button and I are similar that way),