Hi, I noted there are new (to me) properties in some components, what's the difference between those and the good old Hint property?.
Mailing lists / lazarus / 2015-11
TextHint, TextHintFontColor, TextHintFontStyle
4 messages · 3 people ·
- LLeonardo M. Ramé 2
- BBart 1
- MMattias Gaertner 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Leonardo M. Ram?
http://leonardorame.blogspot.com
Leonardo M. Ram? wroteHi, I noted there are new (to me) properties in some components, what's the difference between those and the good old Hint property?.
TextHint fills the TCustomEdit with the value assigned to it, whenever the control's Text property is empty and the control does not have focus.
Hint only (and alwaysif showhint = true) displays a bloontip when the mouse is over the control.
Just play with it:
Edit1.TextHint := 'Type your name here';Bart
El 08/11/15 a las 11:08, Bart escribi?:
Show quoted text 17 lines
On 11/8/15, Leonardo M. Ram? wrote:
> Hi, I noted there are new (to me) properties in some components, what's
> the difference between those and the good old Hint property?.
>
TextHint fills the TCustomEdit with the value assigned to it, whenever
the control's Text property is empty and the control does not have
focus.
Hint only (and alwaysif showhint = true) displays a bloontip when the
mouse is over the control.
Just play with it:
Edit1.TextHint := 'Type your name here';
Bart
Thanks Bart, it's the same as Bootstrap's <INPUT> placeholder property.
Regards,
Leonardo M. Ram?
http://leonardorame.blogspot.com
TextHint fills the TCustomEdit with the value assigned to it, whenever the control's Text…
Show quoted text 11 lines
On 11/8/15, Leonardo M. Ram? wrote:
> Hi, I noted there are new (to me) properties in some components, what's
> the difference between those and the good old Hint property?.
>
TextHint fills the TCustomEdit with the value assigned to it, whenever
the control's Text property is empty and the control does not have
focus.
Hint only (and alwaysif showhint = true) displays a bloontip when the
mouse is over the control.
I added it to the docs.
Mattias
