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
- Elsear brings super-fast Networking to Risc PC/A7000/A7000+ (News:)
- Latest hardware upgrade from RISCOSbits (News:)
- Announcing the TIB 2024 Advent Calendar (News:1)
- Code GCC produces that makes you cry #12684 (Prog:39)
- RISCOSbits releases a new laptop solution (News:)
- Rougol November 2024 meeting on monday (News:)
- Drag'n'Drop 14i1 edition reviewed (News:)
- WROCC November 2024 talk o...ay - Andrew Rawnsley (ROD) (News:2)
- October 2024 News Summary (News:3)
- RISC OS London Show Report 2024 (News:1)
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
  (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