Re: subclass, custom widget



Jim Donoghue said:
How do I properly create a custom widget? What I need to do is create a
HBox with a label, an entry, and a button, that I can use like this:

for a simple composite widget, just add the base class to the child class'
@ISA, or do a 'use base'.

for full-featured widgets with signals and properties, see Glib::Object::Subclass
http://gtk2-perl.sourceforge.net/doc/Glib::Object::Subclass.pm.html

and the histogram_plot.pl example:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/gtk2-perl/gtk2-perl-xs/Gtk2/examples/histogramplot.pl?rev=1.5&content-type=text/vnd.viewcvs-markup

-- 
muppet <scott at asofyet dot org>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]