Re: Dynamic Dialog generation



Bob Wilkinson <bob aldigital co uk> writes:
Hello

     I've been trying to emulate the functionality of a CGI program through the
Perl interface to Glade. I think, however, I'm approaching this wrongly...

     I want an application to have the ability to display a dialog box, with, 
for example, one input box and two checkboxes. If the user entered 7 into the 
input box and checked both of the boxes, I would like then to be able to 
display a subsequent dialog box which contained seven pairs of input boxes. 
i.e. the contents of the second dialog box is dependent on the values entered to
the first. Of course, I'd then like to tie the values entered to the second
dialog box via callbacks to the original application.

   Realising that my inelegant hack was perhaps best left alone, I have decided
to solicit any suggestion from this list.


Gtk::Dialogs may be the way to go. It's a convenience module wrapping some gtk functions.

It takes a hash as an argument, uses that to create a dialog, and
returns a hash of values based on what was entered in the dialog.

BrYan




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