Icon Flag - needs help to draw from Wimp
Alan Robertson (52) 420 posts |
Bit 7 is specified in the Icon flag to specify if the icon needs help to be redraw I’d like to write some code to make an icon a bit more clever around how it deals with displaying the sprite in an icon, and assumed that this would be achieved via this bit, but I’m having no luck with it. Does anyone know what this bit is used for, and how to use it? |
Martin Avison (27) 1494 posts |
SWI Wimp_SetIconState sets flags … and also redraws the icon, even if no bits are changed. |
Alan Robertson (52) 420 posts |
Thanks Martin, but I already know and use the Set_IconState SWI. My particular issue was about bit 7 of the icon flag where it’s meaning is rather vague and/or misleading. After reading though lots of 20 year posts on comp.sys.acorn.programmer it seems that this bit has confused many people over the past few decades. is used to redraw the area behind the icon before redrawing the actual icon itself. Basically, completely different meaning to what I thought it was. I thought it would issue redraw events similar to how a window does when you specify a similar bit stating it needs help to redraw as well. But apparently not. Alright, I’m on to my next task now. Work out how to implement dragging. Should be fun. |
Chris Johns (3727) 40 posts |
Well that’s totally not how I expected it to work either :) |