开发者

How to show hint for a disabled TDBEdit?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜