Jump to content

How To Overwrite The Hint For TUniDBDateTimePicker?


Frederick

Recommended Posts

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)
 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 3 months later...

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...