note 611 added to gtk.gtkcolorselectiondialog.php
| From: | mmdrakeNOSPAM at bctonlineNOSPAM dot com | Date: | Tue, 06 Dec 2005 20:04:09 +0000 |
| Subject: | note 611 added to gtk.gtkcolorselectiondialog.php | ||
| Groups: | php.gtk.webmaster | ||
| Request: | Send a blank email to php-gtk-webmaster+get-2872@lists.php.net to get a copy of this message | ||
Actually, the object breakdown shown below is not really needed. There is a valid, but undocumented
property called 'colorsel' that represents the GtkColorSelection object. You can use it
as follows:
(Borrowing the same callback)
function showme($obj) {
//Get the GtkColorSelection Object//
$colorWheel = $obj->colorsel;
print_r($colorWheel->get_color());
}
You can also use it to set the color display on the dialog, if you already have a color array (rgb)
on file:
function setme($obj,$red,$green,$blue) {
//Set the GtkColorSelection//
$colorWheel = $obj->colorsel;
$colorWheel->set_color($red,$green,$blue);
}
http://gtk.php.net:80/manual/en/gtk.gtkcolorselectiondialog.php