Harjo:
oke, is it a button? or a label??
It’s a button.
Harjo:
have you tried setting:
Label.background CColorPaintUIResource Color[238,238,238] #EEEEEE
Label.disabledForeground ColorUIResource Color[128,128,128] #808080
Label.disabledShadow ColorUIResource Color[64,64,64] #404040
Label.font DerivedUIResourceFont Font[family=Lucida Grande,name=Lucida Grande,style=0,size=13]
Label.foreground ColorUIResource Color[0,0,0]
For example, the following command is setting the font color of buttons like the ones in the login dialog, but does NOT set the font color of Servoy buttons
application.setUIProperty('Button.foreground', new Packages.javax.swing.plaf.ColorUIResource(java.awt.Color.decode('#004fcb'))); // Button font color
On the other hand, this command sets the background of a Servoy button (without an imageMedia attached)
application.setUIProperty('Button.background', new Packages.javax.swing.plaf.ColorUIResource(java.awt.Color.decode('#e0a467'))); // Button background color
But if I have a button with a imageMedia, and it’s disabled with
elements.btnInsert.enabled = false;
then the button gets a dark grey. How can I change the color of THIS button, i. e. the color of the imageMedia, I assume?
The above commands don’t work on Servoy buttons when a imageMedia is attached!
Any idea how to control buttons with imageMedia attached?
Regards