Jump to content

Recommended Posts

Posted

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.

  • 1 year later...
Posted

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";}';

post-1670-0-98995000-1520010568_thumb.png

  • 2 years later...
  • 2 years later...
Posted

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

Posted

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?

Posted
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;

 

Posted
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";
}

 

Posted
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.

Posted
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

Posted
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...

image.png.20aef548a8ed500b10bbe691e7a52319.png

Posted

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?

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...