RubBand  -  Wimp Programming Demonstration

by Keith Vernon


This demonstration demonstrates a simple rubber-banding method. The
procedures will all be familiar readers of our occasional Wimp Topics
series.

The RISC OS Style Guide requirements for use of Select and Adjust are
fully implemented within this demonstration.

The use of SWI numbers is recommended to speed up the process when
dealing with a large number of icons. It is, obviously, best to
have sequential numbers for the icons.

Within the RubBand demonstration, the variables minsi% and maxsi% are
have been used as the maximum and minimum selectable icon numbers, and
the drag number type is 6.

For details of the method used to determine if the icons lie in the
rubber banded box, see the variable inbox%. All of the icons used,
including the background, are of the click/drag button type.

Copyright  RISC User, 1999