note 434 added to gtk.gtkfontselectiondialog.php
| From: | dpgirago at mdanderson dot org | Date: | Mon, 26 Jul 2004 14:29:47 +0000 |
| Subject: | note 434 added to gtk.gtkfontselectiondialog.php | ||
| Groups: | php.gtk.webmaster | ||
| Request: | Send a blank email to php-gtk-webmaster+get-2523@lists.php.net to get a copy of this message | ||
//full example of the above
<?php
if (!class_exists('gtk')) {
if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN'){
dl('php_gtk.dll');
} else {
dl('php_gtk.so');
}
}
function destroy()
{
Gtk::main_quit();
}
$fontdialog = &new GtkFontSelectionDialog('Select Font');
$fontdialog->show();
$okButton = $fontdialog->ok_button;
$okButton->connect('clicked', 'destroy');
$cancelButton = $fontdialog->cancel_button;
$cancelButton->connect('clicked', 'destroy');
gtk::main();
http://gtk.php.net:80/manual/en/gtk.gtkfontselectiondialog.php