Dynamically adding widgets to HBox created with glade
- From: kondrara <ravee_kondrakunta phoenix com>
- To: gtkmm-list gnome org
- Subject: Dynamically adding widgets to HBox created with glade
- Date: Wed, 10 Dec 2008 13:00:03 -0800 (PST)
Hi,
I created a dialog with glade. In this dialog, I have a HBox with two
widgets, one is the label and the other widget will be determined at the
runtime.
So, in my code I got the reference to the HBox using get_widget after
loading the glade file and then I am adding my widget to the HBox using the
reference from the XML. The code compiles properly, but I can never see the
widget.
xmlRef = Gnome::Glade::create("myglade.glade");
Gtk::HBox *pMyHBox;
xmlRef->get_widget("myHBox", pMyHBox);
Lets us assume I need to add one more label the the "myHBox"
Gtk::Label lab("new");
pMyHBox->add(lab); or
pMyHBox->pack_start(lab); or
pMyHBox->pack_end(lab); etc..
I tried all possible ways to show it.. Unfortunately, I couldn't see it on
my dialog.
Please help me where I was wrong...
Thanks in Advance..
-k
--
View this message in context: http://www.nabble.com/Dynamically-adding-widgets-to-HBox-created-with-glade-tp20944004p20944004.html
Sent from the Gtkmm mailing list archive at Nabble.com.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]