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.
精彩评论