Acorn Arcade forums: Programming: Select changes?
|
Select changes? |
|
Chris (14:30 1/5/2004)
|
|
Chris |
Message #53935, posted by Chris at 14:30, 1/5/2004 |
Member
Posts: 283
|
My BASIC library has a couple of PROCs to change icon attributes, such as background colour and the validation string. These have been working fine. Then I upgraded to Select, and they've stopped working, causing odd behaviour. Is there anything wrong with the code below? If not, I guess I'll have to email ROL to see if behaviour has changed under Select.
PROCicon_setval (window%,icon%,text$) REM Sets icon validation string block%!0=window%:block%!4=icon% SYS "Wimp_GetIconState",,block% $(block%!32)=text$:block%!8=0:block%!12=0 SYS "Wimp_SetIconState",,block% ENDPROC
PROCicon_setbackground (window%,icon%,colour%) REM Sets an icon's background to a colour from Wimp palette block%!0=window%:block%!4=icon% block%!8=0:block%!12=block%!12 OR (%1111<<28 ) SYS "Wimp_SetIconState",,block% block%!8=block%!8 OR (colour%<<28 ) block%!12=block%!12 OR (colour%<<28 ) SYS "Wimp_SetIconState",,block% ENDPROC |
|
[ Log in to reply ] |
|
|
Acorn Arcade forums: Programming: Select changes? |