|
forums.silverfrost.com Welcome to the Silverfrost forums
|
View previous topic :: View next topic |
Author |
Message |
JohnCampbell
Joined: 16 Feb 2006 Posts: 2554 Location: Sydney
|
Posted: Thu Jul 27, 2006 11:42 pm Post subject: Slider for integers |
|
|
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. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7927 Location: Salford, UK
|
Posted: Wed Aug 02, 2006 9:44 am Post subject: Slider for integers |
|
|
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
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|