mehmet07 Posted August 2, 2016 Posted August 2, 2016 Hi, How change Disabled unidbedit font ? i want not colorless. thanks. Quote
Sherzod Posted August 3, 2016 Posted August 3, 2016 Hi, If I understand you correctly.. Can you try this ?!: 1. UniServerModule.CustomCSS: ._x-item-disabled .x-form-field { opacity: 1; -moz-opacity: 1; filter: alpha(opacity=100); color: black; background: lime; } 2. UniDBEdit->ClientEvents->UniEvents-> beforeInit fn: function beforeInit(sender, config) { config.disabledCls = "_x-item-disabled"; } Best regards. Quote
herculanojs Posted March 2, 2018 Posted March 2, 2018 Hi, If I understand you correctly.. Can you try this ?!: 1. UniServerModule.CustomCSS: ._x-item-disabled .x-form-field { opacity: 1; -moz-opacity: 1; filter: alpha(opacity=100); color: black; background: lime; } 2. UniDBEdit->ClientEvents->UniEvents-> beforeInit fn: function beforeInit(sender, config) { config.disabledCls = "_x-item-disabled"; } Best regards. What could be incorrect? The control is dynamically created TUniDBEdit(ac).ClientEvents.UniEvents.Values['beforeInit'] := 'function beforeInit(sender, config) { config.disabledCls = "_x-item-disabled";}'; Quote
herculanojs Posted March 2, 2018 Posted March 2, 2018 I already managed to solve it. Compiling a file was missing Quote
likemike Posted July 20, 2023 Posted July 20, 2023 Hello! I use this topic, because my question is nearly the same. I have a TUnimComboBox, which sometimes has "Enabled" set to false. With the solution above the fieldlabel is black as I want it (and not blur), but the text of the field is nevertheless blur. How can I prevent the text from getting blur, when the field is disabled? Regards Mike Quote
Sherzod Posted July 20, 2023 Posted July 20, 2023 Hello, 11 minutes ago, likemike said: I use this topic, because my question is nearly the same. I have a TUnimComboBox, which sometimes has "Enabled" set to false. With the solution above the fieldlabel is black as I want it (and not blur), but the text of the field is nevertheless blur. How can I prevent the text from getting blur, when the field is disabled? Screenshot? Quote
Sherzod Posted July 20, 2023 Posted July 20, 2023 34 minutes ago, likemike said: TUnimComboBox Mobile? Quote
likemike Posted July 20, 2023 Posted July 20, 2023 Yes mobile! The word "Test2" is nearly unreadable. Quote
Sherzod Posted July 20, 2023 Posted July 20, 2023 2 hours ago, likemike said: The word "Test2" is nearly unreadable. I will try to check. 1 Quote
Sherzod Posted July 21, 2023 Posted July 21, 2023 14 hours ago, likemike said: I have a TUnimComboBox, which sometimes has "Enabled" set to false. With the solution above the fieldlabel is black as I want it (and not blur), but the text of the field is nevertheless blur. How can I prevent the text from getting blur, when the field is disabled? Just use only this config: procedure TMainmForm.UnimFormCreate(Sender: TObject); begin UnimComboBox1.JSInterface.JSConfig('disabledCls', ['customDisabledCls']); end; Quote
likemike Posted July 21, 2023 Posted July 21, 2023 Hi Sherzod! That doesn't work. Maybe I use the wrong CCS... P.S.: it works on desktop PC, but not on an iPhone. Quote
Sherzod Posted July 21, 2023 Posted July 21, 2023 Just now, likemike said: That doesn't work. Maybe I use the wrong CCS... Hi, 8 hours ago, Sherzod said: Just use only this config: procedure TMainmForm.UnimFormCreate(Sender: TObject); begin UnimComboBox1.JSInterface.JSConfig('disabledCls', ['customDisabledCls']); end; Delete this: On 3/2/2018 at 10:09 PM, herculanojs said: function beforeInit(sender, config) { config.disabledCls = "_x-item-disabled"; } Quote
likemike Posted July 21, 2023 Posted July 21, 2023 I've done this before, but the result is still the same. Which CSS would be the right? BTW: it works for the field label, but not for the field text. Quote
likemike Posted July 21, 2023 Posted July 21, 2023 Can you give me the CSS for .customDisabledCls because there is no "simple" test case. I have to send you a service based SSL version. Quote
Sherzod Posted July 21, 2023 Posted July 21, 2023 8 minutes ago, likemike said: .customDisabledCls Well, this is an "empty" class. Quote
likemike Posted July 21, 2023 Posted July 21, 2023 OK - here is a sample project. It's service based but I've disabled SSL. Port is 8078, service name is "TestApp". Quote
Sherzod Posted July 21, 2023 Posted July 21, 2023 1 hour ago, likemike said: UniGui.rar 10.9 MB · 1 download Please check again, which project should I open? Make a Standalone project if possible. Quote
likemike Posted July 21, 2023 Posted July 21, 2023 34 minutes ago, Sherzod said: Please check again, which project should I open? Make a Standalone project if possible. Please ignore the Win32-directory. Please use the project in the root directory. UniGui.rar Quote
Sherzod Posted July 21, 2023 Posted July 21, 2023 3 hours ago, likemike said: UniGui.rar 4.59 MB · 0 downloads I don't know, but this is how it looks for me. The first without setting the config, the second with the setting... Quote
likemike Posted July 21, 2023 Posted July 21, 2023 Yes - the display is better than without the settings, but on my iPhone it's too much blur. So isn't there a CSS which reduces the opacity effect of the text? Quote
Sherzod Posted July 22, 2023 Posted July 22, 2023 8 hours ago, likemike said: but on my iPhone it's too much blur. I have tested on android. 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.