Pane Tester - Wimp Topics
by Alan Wrigley

This program is designed to illustrate the use of panes. For a full description of the program and of the techniques used, you should refer to the Wimp Topics article in this month's magazine.

The application uses the RISC User Wimp Library published in RISC User 5:6 and 5:7. This library is included within the application directory on this disc.

When run, the application opens a window containing a single icon. Attached to the window on the left-hand side is a pane containing two icons, one red and the other blue. Clicking on either of these icons changes the text colour in the main window to the colour of the icon clicked.

Dragging the main window around causes the pane to move with it in the same relative position. Notice, however, that if the main wimdow approaches the left-hand edge of the screen the pane overlaps it rather than disappearing off the screen. Similarly, clicking on the main window's Back icon to take the window to the back, or on its title bar to bring it to the front, always moves the pane to the same position in the window stack as its parent.

You can use the code in the program as a basis for experimenting with your own panes. In particular, you should pay careful attention to the process of opening the windows in PROCopen, since this is the key to the correct handling of panes.

 RISC User 1993  