About displayType=CHECK default graying out property

Questions and answers for designing and implementing forms in Servoy

About displayType=CHECK default graying out property

Postby jcarlos » Tue Mar 27, 2012 8:45 pm

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
Juan-Carlos Sanchez, Stanford University - Law and Economics
jcarlos
 
Posts: 578
Joined: Thu May 04, 2006 8:55 pm
Location: Palo Alto, California USA

Re: About displayType=CHECK default graying out property

Postby Peter de Groot » Tue Mar 27, 2012 10:22 pm

Hi,

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

Regards,

Peter
User avatar
Peter de Groot
 
Posts: 215
Joined: Thu Jan 10, 2008 8:38 pm
Location: Not sure...

Re: About displayType=CHECK default graying out property

Postby jcarlos » Wed Mar 28, 2012 12:31 am

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

Any other suggestion?
Juan-Carlos Sanchez, Stanford University - Law and Economics
jcarlos
 
Posts: 578
Joined: Thu May 04, 2006 8:55 pm
Location: Palo Alto, California USA

Re: About displayType=CHECK default graying out property

Postby jcarlos » Wed Mar 28, 2012 2:18 am

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
Juan-Carlos Sanchez, Stanford University - Law and Economics
jcarlos
 
Posts: 578
Joined: Thu May 04, 2006 8:55 pm
Location: Palo Alto, California USA

Re: About displayType=CHECK default graying out property

Postby Harjo » Wed Mar 28, 2012 9:55 am

jcarlos wrote: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 Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: About displayType=CHECK default graying out property

Postby jcarlos » Wed Mar 28, 2012 4:06 pm

Harjo wrote: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
Juan-Carlos Sanchez, Stanford University - Law and Economics
jcarlos
 
Posts: 578
Joined: Thu May 04, 2006 8:55 pm
Location: Palo Alto, California USA

Re: About displayType=CHECK default graying out property

Postby jcarlos » Wed Mar 28, 2012 6:51 pm

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

Code: Select all
   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
Juan-Carlos Sanchez, Stanford University - Law and Economics
jcarlos
 
Posts: 578
Joined: Thu May 04, 2006 8:55 pm
Location: Palo Alto, California USA

Re: About displayType=CHECK default graying out property

Postby Harjo » Wed Mar 28, 2012 7:35 pm

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...
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands


Return to Forms

Who is online

Users browsing this forum: No registered users and 2 guests

cron