[Gambas-user] Watermark on text box
Tobias Boege
taboege at ...626...
Tue Feb 10 18:01:38 CET 2015
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.
Attached is a cleaner approach to it. It is also published on the farm
server, if you prefer to get it this way.
Regards,
Tobi
--
"There's an old saying: Don't change anything... ever!" -- Mr. Monk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ExplainTextBox-0.0.2.tar.gz
Type: application/octet-stream
Size: 12761 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20150210/abd329cf/attachment.obj>
More information about the User
mailing list