Is there an equivalent for %sl that takes an integer, rather than the real ?
I am mixing %sl, %df, %fl and %rf, but would want to have these available for integers, so that the slider only gave integer values.
Welcome to our forums
Is there an equivalent for %sl that takes an integer, rather than the real ?
I am mixing %sl, %df, %fl and %rf, but would want to have these available for integers, so that the slider only gave integer values.
John
If you are prepared to use %di then %sl takes integer values in this context.
%di is mentioned in the FTN95 help file under Win32 Platform->ClearWin+ →Using dialog resources.
In this case ClearWin+ adopts the Microsoft Slider control.
There are additional options for %sl when used with %di and these appear to be undocumented.
[both] corresponds to TBS_BOTH
[top_or_left] corresponds to TBS_TOP
[no_ticks] corresponds to TBS_NOTICKS
[auto_ticks] corresponds to TBS_AUTOTICKS
[tick_frequency=value] gives the tick frequency for auto ticks
[thumb_length=value] gives the length for TBS_FIXEDLENGTH
[selection_min=value] gives the min value for TBS_ENABLESELRANGE
[selection_max=value] gives the max value for TBS_ENABLESELRANGE,
[tooltips=lower case letter] takes letters l,b,or r for TBTS_LEFT,TBTS_BOTTOM and TBTS_RIGHT.
The default is TBTS_TOP.
[border] corresponds to WS_BORDER