Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-11

TextHint, TextHintFontColor, TextHintFontStyle

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Bart
to Leonardo M. Ramé
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

Reply by email

Leonardo M. Ramé
to 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,

Reply by email

Mattias Gaertner
to Bart: 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

Reply by email