greenbirdweb
Technical User
I've recently picked up PHP-GTK and am loving it so far. I haven't figured out how to change colors of widgets the way I'd like. It doesn't seem to work the way I thought it did. I would like to change the background of one widget and leave the rest alone. If anyone could help, I'd appreciate it.
Here's my basic layout:
I would like to set the background behind the image (the 2nd frame) to white, so that the image blends right into the frame. This is how I thought it worked:
Doesn't seem to work, though. Any ideas?
Here's my basic layout:
Code:
Window
|-->GtkVBox
|-->GtkMenuBar
| GtkHBox
|-->GtkFrame
| GtkFrame
|-->GtkPixmap (white background on image)
I would like to set the background behind the image (the 2nd frame) to white, so that the image blends right into the frame. This is how I thought it worked:
Code:
$newStyle = &new GtkStyle();
$newStyle->bg[GTK_STATE_NORMAL] = $newStyle->white;
$frame2->set_style($newStyle);