About displayType=CHECK default graying out property

This is a silly question, but I don’t know the answer.

How can I prevent the font color of a element field/displayType=CHECK from graying out when the field is NOT editable? (editable property unmarked).

By default, if the field is NOT editable, the font color is grayed out. My users don’t want that for the displayType=CHECK.

Any ideas? How-to-dos?

Best,
JC

Hi,

Maybe this post can help
viewtopic.php?f=2&t=17826

Regards,

Peter

Peter, unfortunately, the recipe posted here https://www.servoy.com/forum/viewtopic.php?f=2&t=17826 did not work. :-(

Any other suggestion?

Furthermore, how can I prevent Servoy from graying out all of the viewable elements when the user only can view (read) the solution?

This should be an easy thing to do, but interesting enough, I never bother before. This is the first time I need to allow a group of users to only view the solution.

What can I do to get this working? Should I just have a solution for the Guest users where the actual database prevents Servoy from doing inserts or deletes?

Thanks in advance for your help!

JC

jcarlos:
Peter, unfortunately, the recipe posted here https://www.servoy.com/forum/viewtopic.php?f=2&t=17826 did not work. :-(

Any other suggestion?

Can you post here, what you tried there??
You didn’t tried it literately? Because on that topic, that is specific for comboboxes not for checkboxes.

Harjo:
Can you post here, what you tried there??
You didn’t tried it literately? Because on that topic, that is specific for comboboxes not for checkboxes.

While from home this morning, I reviewed this issue in my head and yet, I realized (as you pointed out) that I tried it literately… :oops: That was pretty lame.

I’ll try it again. Thanks, JC

Ok, I tried the following (using COMBOBOX elements too) but it did not work.

	application.setUIProperty('CheckBox.shadow', true);
	application.setUIProperty('ComboBox.disabledBackground', new Packages.javax.swing.plaf.ColorUIResource(java.awt.Color.decode('#6699cc')));
	application.setUIProperty('ComboBox.selectionBackground', new Packages.javax.swing.plaf.ColorUIResource(java.awt.Color.decode('#6699cc')));

Can any one point me out in the right direction? Is there anything else I need to do to get this working?

JC

the combobox stuff should work ( we use this always in the onSolutionOpen)

will check to see if it’s possible for checkboxes also, and what the syntax is…