How can I use properly StyleClass ???

Hello servoy users,

I created a new style to make some test and I created inside some StyleClass as you can see below :

field
{
	background-color: #c3c5c7; gris moyen
	text-align: right ;
	border-style: solid;
	border-width: 1px;
	border-color: #000000 ; noir
	margin: 1px 5px 1px 5px;
	font-family: Lucida Sans Regular;
	font: 11pt Verdana;
	color: #1c126f; bleu
}

button
{
	background-color: blue ;
	text-align: left ;
/*	margin: 1px 3px 1px 3px;
	border-style: solid;
	border-width: 1px;
	border-color: #000000 ; noir
	font-family: Lucida Sans Regular;
	font: bold 11pt Verdana;
	color: #000066; bleu */
}

button.context
{
	background-color: #DDDDDD ; 
}

button.search
{
	background-color: #999999 ;
	border-style: solid;
	border-width: 10px;
	border-color: #000066 ; bleu 
	 
}

portal
{
	background-color: #EEEEEE; gris clair
	border-style: inset; 
}

So I link my form to my style using the form property “styleName” that run perfectly.

I try to link some buttons in my forms to the styleClass : button.search using the button property “styleClass”, but nothing change , nothing happens.

What’s I forgot ???

:?:

DomTom.

Thanks for your help.

If you have a button, only place “search” as style class into the property (not “button.search”). The same for fields, labels etc.

Thanks again Patrick.

It’s running perfectly.

DomTom.

:D