Didier Posted January 6, 2020 Share Posted January 6, 2020 Hello, I can't change the hint of my TUniFileUploadButton. I just try to change the value of the property hint and put ShowHint to true and nothing happen. Is someone can help me ? Thank you Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 6, 2020 Share Posted January 6, 2020 25 minutes ago, Didier said: I can't change the hint of my TUniFileUploadButton. I just try to change the value of the property hint and put ShowHint to true and nothing happen. Hello, Sorry, what hint do you mean? Quote Link to comment Share on other sites More sharing options...
Didier Posted January 7, 2020 Author Share Posted January 7, 2020 sorry, it means tooltip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 7, 2020 Share Posted January 7, 2020 49 minutes ago, Didier said: sorry, it means tooltip Can you please explain once again? Quote Link to comment Share on other sites More sharing options...
Didier Posted January 7, 2020 Author Share Posted January 7, 2020 I put a TUniFileUploadButton. when i pass my mouse over it, i want to put a tooltip 'Add a file' for example. But i can't change it. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 7, 2020 Share Posted January 7, 2020 6 minutes ago, Didier said: when i pass my mouse over it, i want to put a tooltip 'Add a file' for example. I do not see a problem when using the Hint property UniFileUploadButton1.Hint -> 'Add a file...' UniFileUploadButton1.ShowHint -> True Quote Link to comment Share on other sites More sharing options...
Didier Posted January 7, 2020 Author Share Posted January 7, 2020 i tried it and it doesn't work. I try on your example in "C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Desktop\FileUpload - Button" too. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 7, 2020 Share Posted January 7, 2020 3 minutes ago, Didier said: i tried it and it doesn't work. Which build are you using? Quote Link to comment Share on other sites More sharing options...
Didier Posted January 7, 2020 Author Share Posted January 7, 2020 Build : 1.90.0.1513 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 7, 2020 Share Posted January 7, 2020 1 minute ago, Didier said: Build : 1.90.0.1513 I couldn't reproduce. Which browser are you using? If possible, can you make a simple testcase for check? Quote Link to comment Share on other sites More sharing options...
Didier Posted January 7, 2020 Author Share Posted January 7, 2020 i just tried on Chrome and it works. But on firefox it doesn't work. version : 71.0 (64 bits) I use your example :"C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Desktop\FileUpload - Button" Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 7, 2020 Share Posted January 7, 2020 Ok I will check. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 7, 2020 Share Posted January 7, 2020 23 minutes ago, Didier said: But on firefox it doesn't work. version : 71.0 (64 bits) Can you try this approach? procedure TMainForm.UniFormCreate(Sender: TObject); begin with UniFileUploadButton1 do if (ShowHint) and (Hint <> '') then JSInterface.JSAddListener('afterrender', 'function(){this.fileInputEl.el.dom.title="'+ Hint +'"}'); end; Quote Link to comment Share on other sites More sharing options...
Didier Posted January 7, 2020 Author Share Posted January 7, 2020 yes it works Thank you 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.