Frederick Posted October 24, 2019 Share Posted October 24, 2019 I have a TUniDBDateTimePicker called datDate on a form. If I hover the mouse cursor over it, a hint of "Expected date format d/m/Y." is shown. At some of point time later, there is an error with the date entry and I want to show a different hint to the user when the mouse cursor is over it. And so, I call the following code:- datDate.Hint:='My New Hint'; However, the control still shows a hint of "Expected date format d/m/Y." when the mouse cursor is over it. How do I overwrite the hint? -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1511) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 24, 2019 Share Posted October 24, 2019 1 hour ago, Frederick said: However, the control still shows a hint of "Expected date format d/m/Y." when the mouse cursor is over it. You can use the forum search feature. "Solution": function beforeInit(sender, config) { config.formatText = ''; } And use Hint property (also, ShowHint=True) in DesignTime or Runtime. Quote Link to comment Share on other sites More sharing options...
Frederick Posted October 24, 2019 Author Share Posted October 24, 2019 Ok, thanks. The solution works. It was not obvious from the earlier topic that disabling the default hint would allow a new hint to be inserted in its place. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 24, 2019 Share Posted October 24, 2019 Just now, Frederick said: It was not obvious from the earlier topic that disabling the default hint would allow a new hint to be inserted in its place. Yes you're right, here was a solution regarding disabling the default hint. Quote Link to comment Share on other sites More sharing options...
pade Posted February 3, 2020 Share Posted February 3, 2020 This is complete madness that so many things in UniGUI requires solutions, btw this one does not work anymore, that seems like hacks. Why not fix it the proper way instead? Or remove the properties that shouldn't be used from the components? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.