开发者

How to show hint for a disabled TDBEdit?

开发者 https://www.devze.com 2022-12-19 15:55 出处:网络
I have a TDBEdit that is not enabled and thus n开发者_StackOverflow中文版ot showing the Hint. What would be the best way to have it display the Hint while staying disabled?The only thing I can think o

I have a TDBEdit that is not enabled and thus n开发者_StackOverflow中文版ot showing the Hint.

What would be the best way to have it display the Hint while staying disabled?


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消