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 |