[Gambas-user] Watermark on text box
Tobias Boege
taboege at ...626...
Tue Feb 10 18:13:46 CET 2015
On Tue, 10 Feb 2015, Tobias Boege wrote:
> On Tue, 10 Feb 2015, Rolf-Werner Eilert wrote:
> > Am 10.02.2015 14:03, schrieb Yahoo:
> > > Hi Benoit,
> > >
> > > Do you think if it's possible to add feature in text box object like a text as a king of help displayed into the textbook in light grey for example when this one is empty. As soon something is entered into the textbook, this text could disappear.
> > >
> > > It could be very useful to help the user of a software to know what do enter in some fields
> > >
> >
> > Or even simpler: set Background and Foreground colors appropriately and
> > give the help text as default text for the Textbox. Then wait for the
> > first letter to be typed or a mouse click into the textbox, delete the
> > default text, set Background and Foreground to standard values and start
> > with the typed text.
> >
>
> Forgive me but that sounds awfully hack-y.
>
Sorry, what I quoted above isn't hack-y at all. That's basically what I
implemented in a dedicated class. What you first proposed, however, was
dirty :-)
Regards,
Tobi
--
"There's an old saying: Don't change anything... ever!" -- Mr. Monk
More information about the User
mailing list