Re: How create new GtkBin widget




On Mon, 2008-03-17 at 15:46 +0100, gege2061 wrote:
Hello,

I would like create a new GtkBin widget, but this simple code (writen in
Vala) don't work (label don't show) :

using Gtk;

public class Gtk.StackContainer : Gtk.Bin
{
}

a Bin is a specialised container that can contain just *one* child at a
time.

if you want to pack more than one child, use a VBox or a HBox (depending
on the layout).

if you want to implement a container, subclass Gtk.Container and
override the add, remove and forall handlers.

ciao,
 Emmanuele.

-- 
Emmanuele Bassi,
W: http://www.emmanuelebassi.net
B: http://log.emmanuelebassi.net




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