log in | register | forums
Show:
Go:
Forums
Username:

Password:

User accounts
Register new account
Forgot password
Forum stats
List of members
Search the forums

Advanced search
Recent discussions
- Upgrading your RISC OS system to 5.30 (News:2)
- WROCC May 2024 meeting on wednesday - Gerph talks games (News:)
- Wakefield Show 2024 in Pictures (News:4)
- RISC OS 5.30 arrives (News:1)
- April 2024 News Summary (News:1)
- uniprint upgraded to 4.50 (News:)
- PhotoDesk 3.23 released (News:)
- R-Comp reveals N.Ex.T Boxes - the successor to the i.MX6 (News:)
- RISCOSbits at Wakefield Show 2024 (News:)
- R-Comp releases Genealogy v2 (News:)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
 
View on Mastodon
@www.iconbar.com@rss-parrot.net
Site Search
 
Article archives
Acorn Arcade forums: Programming: More queries
 
  More queries
  (13:45 20/4/2002)
  john (16:18 20/4/2002)
    Chris (11:02 21/4/2002)
 
Chris Message #5010, posted at 13: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 16: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 11:02, 21/4/2002, in reply to message #5011
Unregistered user Thanks!
  ^[ Log in to reply ]
 

Acorn Arcade forums: Programming: More queries