Deprecated: Assigning the return value of new by reference is deprecated in /home/fann/kksou.com/php-gtk2/includes/patTemplate/patTemplate.php on line 1420
PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?

Deprecated: Assigning the return value of new by reference is deprecated in /home/fann/kksou.com/php-gtk2/components/com_fireboard/template/default/view.php on line 535

Deprecated: Assigning the return value of new by reference is deprecated in /home/fann/kksou.com/php-gtk2/components/com_fireboard/template/default/view.php on line 1063
EventBox modify_bg in GtkNotebook (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: EventBox modify_bg in GtkNotebook


#5836
lamaresh (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
EventBox modify_bg in GtkNotebook 1 Year, 8 Months ago Karma: 0  
I'm really new to php-gtk and I'm having trouble with styles.
I'm trying to get a table with any cell of different color using EventBox, but I get always grey boxes. I think the problem is that boxes are in a gtknotebook. This is my code with only one cell, could anyone helpme? Ty :)

Code:
<?php
$ntbk = new GtkNotebook();
$tab_option= new gtktable(2,2,true);
$ntbk->append_page(	$tab_option, new GtkLabel('Option'));
$box = new GtkEventBox;
$box->modify_bg(gtk.STATE_NORMAL,GdkColor::parse('yellow'));
$tab_option->attach($box,0,1,0,1);
$wnd = new GtkWindow();
$wnd->set_default_size(800, 600);
$wnd->connect_simple('destroy', array('Gtk', 'main_quit'));
$wnd->add($ntbk);
$wnd->show_all();
Gtk::main();

?>
 
  The administrator has disabled public write access.



Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Blog - Forum - Privacy Policy - Contact Us
Copyright © 2006-2012. kksou.com. All Rights Reserved