Slider Demo

by Keith Vernon


This application provides a demonstration of how to implement a slider bar as described in this month's Wimp Topics feature. The slider bar can be dragged or clicked on in order to set a value.

USING THE PROGRAM
Running the application opens a window containing a slider. The active part of the slider is a mid-grey bar in the centre of the slider, which alters in length to show the current value. A text icon below the slider shows the value as a percentage.

Clicking anywhere over the slider area alters the length of the slider bar according to the position of the click, while dragging the bar from side to side changes the length, continually following the pointer position, as long as Select is held down. The value shown in the percentage icon is also changed whenever the slider bar changes.

The program is fully commented so you can see the processes involved. For more details, see the Wimp Topics article in this month's RISC User magazine.


 Copyright RISC User 1994

