[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need help with LineEdit Control flags
> Pauley@vnet.ibm.com (Paul Benson) writes...
> In <123400005@hpindda.cup.hp.com> David Tribby writes:
> >I'm writing a desktop program that displays text values that the
> >program (not the user) updates in a window.
> > <stuff deleted>
> >a HiliteControl(0x00FF, ... ) for each of the line edit controls in
> >the window so that users can't modify the text.
>
> ... However, in your app, I think
> the use of static text fields would be more in the HIG, since you never
> let the user change the values. It would be confusing to se a text _edit_
> field which could never be editted.
Pauley--
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 :-).
It doesn't appear confusing at all (to me).
If the *only* reason the manual says not to use the Hilite bits is
the visual interface, I would go ahead an use them. If, on the other
hand, the toolbox code is making assumptions about those bits being clear,
I wouldn't use it and would stick with the HiliteControl() call.
-- Dave
Dave Tribby Internet: tribby@cup.hp.com GEnie: D.TRIBBY
Hewlett-Packard Information Networks Division, Cupertino, California