I remember seeing a slider control as an example in Clearwin using a moving icon in a graphics area, although I can’t find it now. It put me off using one. Now and for a long time, there appears to be a real slider control, %sl. For reference I have looked at the descriptions in FTN95.CFM and CWPLUS.ENH.
Such a slider control is sized in character cells, and returns a position (if moved by the mouse) relative to 1 pixel, which is likely to be an irrational number and different on different computers (using different windows versions, fonts and dpi settings, because they affect the character cell size in pixels). Moving the slider by means of the arrow keys has a step equal to 10% of the range defined with %sl. It also has the behaviour that if the slider is moved to a different start position with the mouse, the arrow step remains the same, but the start position is moved, so in a range 0 to 10, moving the slider by arrow from 1.67 set by mouse will give 2.67, 3.67 etc until the end is reached, whereupon the counting is reset. All very logical, but different to controlling the slider by mouse.
The position is returned as a REAL*8 number.
I see that the MSDN slider control is rather more sophisticated than the Clearwin+ one, i.e. has more options than just horizontal or vertical, and as (to quote) ‘Clearwin+ is just a wrapper for MS controls’, it does seem to me that the step should be the same with arrow keys as with the mouse, or be user-definable akin to the spin wheel, have the ability to select a range, to display tick marks, and jump to tick intervals etc.
%sl is quite friendly, but not very capable, as it stands.
Eddie