Hi everyone,

I want to use/make my own GUI, with css its fine to create.
Some code:
CPP-File
Code:
mPushbutton1 = new CL_PushButton(this);
mPushbutton1->set_geometry(CL_Rect(client_area.left + 11, client_area.top + 10, CL_Size(128, 40)));
mPushbutton1->set_class_name("button1");
CSS-Code
Code:
button.button1
{ 
	bg-image:button1Image;
}

button.button1:hot
{ 
	bg-image: button1lImageHot;
}
But when the button becomes "hot" sometimes it looks like this:


Uploaded with ImageShack.us


Does anybody know whats wrong?