Here is a small piece of code which may help programmers handle pane windows more effectively ('till Acorn's product arrives!)
Each pane window is assigned to an icon on the tool window, so you don't have to do a lot of work for different apps... the same code is very recyclable.
It also attempts to fit the scroll bars (if any) into the required icon, but with RISC OS 3, these bar sizes are not fixed and I don't know of a way of asking the WIMP for the current sizes... I've set both X and Y sizes to 40 with is fairly standard :-)
I hope this is of use to those who are baffled by pane code.
\uNOTES:\U
1) ALL windows MUST be defined in the \iNew\I way (PRM p3-92)
2) Panes should’nt have title bars (just make the icon a bit smaller if they do :-)
3) Panes must be 'big enough' (ie enough work area size) to fill the icon area.
4) Please take careful note of the window flags of the pane windows!!
\bThis program is PUBLIC DOMAIN - Do whatever you like with it!
Please note: This is NOT normal policy for Riscy Developments, but this code has been placed in the Public Domain to encourage nice programming practice!\B
\h2\uRiscy Developments: Contacts\H
\uIan Jeffray\U
\iSMail:\I Field House
Sessay
Thirsk
North Yorkshire
YO7 3BE Tel: 01845 501 323
\i…and until June ’95:\I
47 Barclay Street
Leicester
LE3 0JD Tel: 01162 332 347
\iEMail:\I aug@dmu.ac.uk \i(’til June ’95)\I
\ior\I
...leave a message for \bLoser\B on \uMonochrome\U