rc files and styles
| From: | Benjamin Smith | Date: | Fri, 14 Feb 2003 02:58:06 +0000 |
| Subject: | rc files and styles | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-3031@lists.php.net to get a copy of this message | ||
Well, I had some styles stuff figured out a while ago... even posted some
stuff on the wiki, but now I'm stumped...
Within the now rapidly growing application, I have gtklabels identifying what
you are looking at, eg:
<?
$Main[win]=&New GtkWindow();
$Main[label1]=&New GtkLabel('User Name:');
$Main[input1]=&New GtkEntry();
$Main[row1]=&New GtkHbox();
...
?>
But what if I wanted to make one label in bold, while leaving the others to
the default style? Ideally, something like (this is pseudo-code)
<?
$Main[label]=&New GtkLabel('Enter your Basic Information');
$Main[label]->Use_rc_style_called('title');
?>
And then have in the RC file:
style "title" = "default"
{
font="-some-*-biggger-*-font-*-*-*-,*"
}
Isn't this possible? It seems that I have to create a new widget type to
benefit from a setting in the RC file, and I have no clue how to use the
$widget->set_style()... I get errors pretty much no matter *what* I do...
-Ben