Wicket Posted April 20, 2020 Posted April 20, 2020 Hi All, Not sure when this behaviour was introduced - but I seem to remember it did not happen previously. Basically when I click a button to open a modal form (or anything else for that matter) once the modal form is close the button seems to keep some sort of focus, like so: Now this does not look too bad - but I am using a different 3rd party theme and the button looks like this - please look at the 'Add' button. The 'Open' button is how it looks pre-click. I have removed any 3rd party CSS and the result remains the same. The behaviour is even observable on the demo - http://prime.fmsoft.net/demo/desktop/mdemo65.dll Buttons > Simple buttons. My question is - is their a way to make this 'focus' indication go away after the button is clicked? I am using build 1518 Thanks. Quote
Sherzod Posted April 21, 2020 Posted April 21, 2020 10 hours ago, Wicket said: My question is - is their a way to make this 'focus' indication go away after the button is clicked? Hello, Try this: procedure TfrmMain.UniFormCreate(Sender: TObject); begin UniButton1.JSInterface.JSAddListener('click', 'function(){this.getEl().blur()}'); end; Quote
Wicket Posted April 21, 2020 Author Posted April 21, 2020 Hi, That didn't seem to work for me - maybe because my post was slightly inaccurate - its mostly TUniToolButtons that I am having the issue with. I think it is some sort of 'keyboard' mode functionality - which I understand, but in my opinion makes the application look ugly. Quote
Sherzod Posted April 21, 2020 Posted April 21, 2020 Hi, Can you make a simple testcase for reproduce? Quote
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.