Subj : Slider Problems
To   : Udo Zaydowicz
From : Vitus Jensen
Date : Tue Oct 31 2000 06:29 pm

Moin Udo!

28.10.2000, Udo Zaydowicz wrote a message to Vitus Jensen:

UZ> [...]
VJ>>     0    20  40    60  80    10
VJ>>     |    |    |    |    |    |
VJ>>     xxxxxxxxxxxxxxxxxxxxxxxxxx

VJ>> The problem is that the "100" is cut after the first zero.
VJ>> Questions are: why and how do I avoid this?  Answers?

UZ> Unfortunately the why is answered very easily: It's built in and can't
UZ> be changed. Obviously the slider control does not leave enough room
UZ> for text at the far left and far right positions.

But doesn't this mean that the "tick text" feature of a slider is totally
useless?  IBM can't require that we stick to 1 or 2 character text!


UZ> To avoid this, the PM Guide and Reference recommends the use of:

UZ> - smaller font,
UZ> - shorter text,
UZ> - static control.

"static control" is very urgly to handle (not worth the effort in my case),
shorter text no option (how do you shorten 100? "C"?).  Using a smaller font is
a nice idea but IMHO one should stay in the same font family and with the today
usage of "WarpSans.9" in dialogs there is no smaller WarpSans font.

Idea: if you take a look at the setting notebook of c:\os2\apps\klondike.exe
(options) you will notice that the slider has three ticks but the left one
isn't located at the left margin.  Probably the ticks are placed using
SLM_ADDDETENT.
I could create ticks at 10, 30, 50, 70 and 90 and avoid the problem...

Bye,
  Vitus

---
* Origin: Made in Germany! ... Ich wusste, da nagt einer! (2:2474/424.1)