ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-gtk-general
php-gtk-general
[PHP-GTK] Notebook question
by Webmaster Phelios.org other posts by this author
Jun 24 2006 12:45PM messages near this date
[PHP-GTK] สินเชื่อดอกเบี้ยต่ำ-สำหรับผู้ทำงานประจำหรือเจ้าของกิจการหรือผู้ที่อยากเครียหนี้บัตรเครดิตหรือสินเชื่อเก่าดอกแพงๆ | [PHP-GTK] Celebration! PHP-GTK 1.x App released for OSX!
Hello everyone.

I would like to provide a close button for my GTKNotebook tab.
I've found a way in python but I seem I get some drawbacks when porting 
to php-gtk.

I can work with this:

$lb = new GtkLabel("Current Files");
$button = new GtkButton("");
$button-> set_image(GtkImage::new_from_stock(Gtk::STOCK_CLOSE, 
Gtk::ICON_SIZE_MENU));
$btbox = new GtkHBox(false,1);
$btbox-> set_size_request(150,20);
$btbox-> set_spacing(5);
$btbox-> pack_start($lb,true,false,0);
$btbox-> pack_start($button,true,false,0);
$btbox-> show_all();

Is there a way ( besides de above ) of placing a flat button to close a tab?

Thank you very much  :-D
Pedro

-- 
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved