Disabled buttons look enabled

Forum to discuss the Web client version of Servoy.

Disabled buttons look enabled

Postby maria » Mon Nov 08, 2010 6:48 am

Hi,
I'm running a solution in webclient in Mozilla Firefox and IE.
It looks fine on Windows 7 and XP Professional, however on Windows Server 2003 the buttons that are disabled and supposed to look greyed out - they look just like any enabled button.
Only in Mozilla Firefox. IE is fine.
Their status is disabled, meaning they are not clickable, but they don't look disabled.

What can be done to fix it?

Thanks,
Maria
maria
 
Posts: 424
Joined: Thu Apr 16, 2009 1:18 am
Location: Sydney

Re: Disabled buttons look enabled

Postby Hans Nieuwenhuis » Mon Nov 08, 2010 2:42 pm

Hi Maria,

We also where using enable/disable buttons.

We now changed this. We place two buttons right on top of each other.
The "back" one is grey, and the front one has the normal colors.

We then changed all our code : elements.button.enable/disable to elements.button.visible true/false

Regards,
Hans Nieuwenhuis
Betagraphics
http://www.deltics.nl
http://www.betagraphics.nl

Servoy Version 7.3.1
Java version 1.7.0.x
Database Oracle 11g
User avatar
Hans Nieuwenhuis
 
Posts: 1026
Joined: Thu Apr 12, 2007 12:36 pm
Location: Hengelo, The Netherlands

Re: Disabled buttons look enabled

Postby maria » Tue Nov 09, 2010 12:30 am

Hans Nieuwenhuis wrote:Hi Maria,

We also where using enable/disable buttons.

We now changed this. We place two buttons right on top of each other.
The "back" one is grey, and the front one has the normal colors.

We then changed all our code : elements.button.enable/disable to elements.button.visible true/false

Regards,


Yeah, that's a workaround we're going to implement but I hope this is temporary.
Is it a Mozilla or Servoy thing?

Cheers,
Maria
maria
 
Posts: 424
Joined: Thu Apr 16, 2009 1:18 am
Location: Sydney

Re: Disabled buttons look enabled

Postby Hans Nieuwenhuis » Tue Nov 09, 2010 8:01 am

Well, I don't see it as a workaround, it looks better, even in Smartclient.

Regards,
Hans Nieuwenhuis
Betagraphics
http://www.deltics.nl
http://www.betagraphics.nl

Servoy Version 7.3.1
Java version 1.7.0.x
Database Oracle 11g
User avatar
Hans Nieuwenhuis
 
Posts: 1026
Joined: Thu Apr 12, 2007 12:36 pm
Location: Hengelo, The Netherlands

Re: Disabled buttons look enabled

Postby maria » Wed Nov 10, 2010 1:36 am

Hans Nieuwenhuis wrote:Hi Maria,

We also where using enable/disable buttons.

We now changed this. We place two buttons right on top of each other.
The "back" one is grey, and the front one has the normal colors.

We then changed all our code : elements.button.enable/disable to elements.button.visible true/false

Regards,


Hans, assigning a background image to buttons works just as well.
So I did not have to create another set of buttons that would look disabled, or change anything in the code :)
maria
 
Posts: 424
Joined: Thu Apr 16, 2009 1:18 am
Location: Sydney


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 8 guests

cron