note 105 added to gtk.gtkdialog.php

From: Date: Wed, 27 Feb 2002 10:42:27 +0000
Subject: note 105 added to gtk.gtkdialog.php
Groups: php.gtk.webmaster 
Request: Send a blank email to php-gtk-webmaster+get-294@lists.php.net to get a copy of this message
Please be aware of this: The vbox of GtkDialog at startup seems to contain: - the seperator - the action_area So if you want to add a GtkLabel or/and a GtkEntry widget you need to add them at to the beginning of GtkDialog .-> vbox: | $label = &new GtkLabel("I am a label"); | $dialog = &new GtkDialog(); | $vbox = $dialog -> vbox; | $vbox -> pack_start($label); I am telling you people this, cause I tried to use one dialog-widget over and over again with different labels in it. I failed, because I thought I just needed to destroy alle widgets in GtkDialog -> vbox each time I want to use that dialog-widget. But when I did so, I also deleted the seperator and the action_area, which should not be so, using the documentation above. http://gtk.php.net/manual/en/gtk.gtkdialog.php

« previous php.gtk.webmaster (#294) next »