Francesca
Francesca

Reputation: 21650

How to show hint for a disabled TDBEdit?

I have a TDBEdit that is not enabled and thus not showing the Hint.
What would be the best way to have it display the Hint while staying disabled?

Upvotes: 3

Views: 1952

Answers (2)

AlexV
AlexV

Reputation: 23118

Drop your disabled TWinControl (TDBEdit is a TWinControl) onto an enabled TWinControl container (a TPanel for example) and set the TPanel hint to the desired value.

Upvotes: 0

Ritsaert Hornstra
Ritsaert Hornstra

Reputation: 5111

The only thing I can think of is overlaying the TDBEdit with a fully transparent control that has ShowHint set to True and a Hint property set.

Upvotes: 2

Related Questions