[Glade-users] Using Gtk2::GladeXML -- "reusing" popups



Hello all, I'm using Glade with Gtk2::GladeXML to write a simple
application.  I don't generate the source code, but use this module to
use the XML file itself.

I have two questions about popups.  The popup I use is an add/edit
dialog box, with a few entry fields, a combobox, some checkboxes, and
some buttons.  So really it's like a little window.  I didn't know if
I should create it as a window or dialog box, but I chose dialog box.

Question 1.  This is the important one.  I don't know how to "reuse"
the dialog box.  In other words, it's created from the XML file; I get
the widget and access its signals, no problem.  But -- if the user
closes (with the 'x') the box, I don't know how to restore it as it
was.  It's not so much the values...I have those.  It's the layout of
the box that I lose.

Question 2.  This is related to the first one...I chose to use a "Top
Level" dialog box because when I chose "Popup" the box just appears
right on top of my window, with no border or anything.  It looks
horrible.  I'm not sure how to give it a border; I have specified a
border of 5 and even 25 in Glade.

Thanks all.

Dale
bigperm71 gmail com




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