Manuel PHP-GTK

GtkStyle::bg

Access: Read Write
Type: Array

Returns an array of 5 background GdkColors used for the different states a widget can reach.

  1. <?php
  2. $newstyle = &new GtkStyle();  
  3. $newstyle->bg[GTK_STATE_PRELIGHT] = $newstyle->whit  
  4. ?> 

Note that GtkLabel does not allow the background color to be changed, so you have to set the background of the parent widget, e.g. the GtkButton.


Remonter Remonter
L'éditeur javascript - CSS - Gentoo - Tutoriaux PHP - Tutoriels PHP - Bretagne - php - Moto - Kit graphique