[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need help with LineEdit Control flags
In <123400006@hpindda.cup.hp.com> David Tribby writes:
> I'm trying to do things very much like a control in SynthLab...an
>"increment" and "decrement" icon button with the numeric result shown
>in a 3-character LE Text field. I use a Line Edit control rather than
>static text because (1) there's an easy way for the program to change
>the value of the control and (2) the enclosing rectangle look cool :-).
Hmmm, I know what you mean by the ease of changing LEcontrols. I
was recently trying to change a static text control on the fly. The
string would appear, but sometimes would be preceded by a garbage
byte (like it was printing the length byte). Looking through GSBug
the pointers & the strings were fine. I ended up using DrawString
with the penmode set to XOR. I guess you could do something similar
(i.e. draw the rect and then the value, taking care of hiliting, etc.),
but then you may as well use a LEControl ;).
Pauley
GEnie: P.Benson1