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:)
- RISCOSbits releases a new laptop solution (News:4)
- Announcing the TIB 2024 Advent Calendar (News:2)
- RISC OS London Show Report 2024 (News:1)
- Code GCC produces that makes you cry #12684 (Prog:39)
- 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)
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: Windows and Panes
 
  Windows and Panes
  Chris (09:17 14/4/2003)
  ajps (02:21 15/4/2003)
    Chris (20:13 15/4/2003)
 
Chris Message #40085, posted by Chris at 09:17, 14/4/2003
Member
Posts: 283
I've finally got round to writing some pane handling code in my wimp library. It works a treat and handles layers fine, except for one small (I hope) problem.

In order to save having to specify the visible size of the pane when opening it, my procedure automatically sizes the pane to an icon in the parent window. This works great, and makes designing paned windows very easy.

The problem is that setting the window size takes no account of the title bar/scroll bars, so at present these overlap the edge of the icon bounding box when present. I could shrink the window by the required amount, of course, but a difficulty is that some people have different widths of window furniture.

So my query is this: is there any way (preferably which works on RO3+) to find out the size of the window furniture so I can size my panes right even when people have played silly buggers with their toolsprites?
  ^[ Log in to reply ]
 
Antony Sidwell Message #40114, posted by ajps at 02:21, 15/4/2003, in reply to message #40085
Member
Posts: 48
You can try Wimp_GetWindowOutline - this gives the rectangle which covers the whole window including scrollbars, etc.
  ^[ Log in to reply ]
 
Chris Message #40148, posted by Chris at 20:13, 15/4/2003, in reply to message #40114
Member
Posts: 283
You can try Wimp_GetWindowOutline - this gives the rectangle which covers the whole window including scrollbars, etc.
Thanks :). All works fine now.
  ^[ Log in to reply ]
 

Acorn Arcade forums: Programming: Windows and Panes