Subj : Slider Problems To : Vitus Jensen From : David Noon Date : Mon Oct 30 2000 01:19 pm Hi Vitus, Replying to a message of Vitus Jensen to All: VJ> There is a slider inside a dialog, the dialog was created via IBM's VJ> Dialog Editor (see progress.dlg). The Dialog Editor isn't able to VJ> define ticks or scale texts. So I'm doing it by hand (see VJ> drverify.cpp). None of the calls fail but the result is ugly: VJ> 0 20 40 60 80 10 VJ> | | | | | | VJ> xxxxxxxxxxxxxxxxxxxxxxxxxx Are "40" and "80" really justified differently from the others? Those 2 are right justified and the other tick values are left justified. Does the justification alternate from one tick mark to the next? Basically, what you want is the text to be right justified on all tick marks, or at least the last one. If the justification does alternate left and right, reducing the number of ticks by one might give you the desired result: 0 25 50 75 100 | | | | | +=====+=====+=====+=====+ VJ> The problem is that the "100" is cut after the first zero. Questions VJ> are: why and how do I avoid this? Answers? Another possible work-around would be to re-label the dialogue as "Percentage remaining" instead of "Percentage done", and have the ticks go from 100 down to 0. This doesn't solve the underlying problem, but is possibly a quick kludge. Otherwise you are faced with what Udo has said: shorter text [unlikely], smaller font, or a static text control for your tick marks' text. Regards Dave --- FleetStreet 1.25.1 * Origin: My other computer is an IBM S/390 (2:257/609.5) .