Acorn Arcade forums: Programming: More queries
|
More queries |
|
(12:45 20/4/2002) john (15:18 20/4/2002) Chris (10:02 21/4/2002)
|
|
Chris |
Message #5010, posted at 12:45, 20/4/2002 |
Unregistered user
|
Can anyone help with a couple more questions I have? 1. How do you set/clear an individual bit in BASIC (e.g., setting bit 3 of a menu item's block in order to tick/untick it)? I can use indirection operators to write bytes and words, but I can't remember how one writes bits. 2. Dialogue boxes in RO4 have attractive 3D edges, but I'm stuck with RO3.11. Can I ensure that any templates I design on RO3 will appear in R4 with this effect? Thanks, Chris |
|
[ Log in to reply ] |
|
john |
Message #5011, posted at 15:18, 20/4/2002, in reply to message #5010 |
Unregistered user
|
You have to, if you want to set bit 14 of the word at block% + 12 you go block%!12 = block%!12 OR (1<<14) to clear do block%!12 = block%!12 AND NOT(1<<14) RO4 automatically adds the 3d to any window with no scroll bars. You don't have to do anything special. HTH |
|
[ Log in to reply ] |
|
Chris |
Message #5012, posted at 10:02, 21/4/2002, in reply to message #5011 |
Unregistered user
|
Thanks! |
|
[ Log in to reply ] |
|
|
Acorn Arcade forums: Programming: More queries |