|
From: Joe E. <jen...@fl...> - 2005-07-23 16:57:06
|
Damon Courtney wrote:
> Also. If you give the user the ability to add widgets in a client
> frame, maybe they want to do something with them after the user has
> clicked a button. If I put a combobox inside the client frame, but
> you destroy the window the minute they hit a button, I may not be able
> to get the value that was in the combo when they clicked. Yes, I
> know, I can use a -textvariable on the combobox, but you get the jist.
Turns out this was misdocumented: the implementation
calls the -command first, then dismisses the dialog.
Manpage updated to reflect this.
Also, in the current implementation the command can use
'return -code break' or 'return -code continue' to prevent
the dialog from being dismissed. I left this undocumented
since I'm not sure if it's a good idea; it seems like a bit
of a hairball. Opinions?
Last but not least: Schelte Bron has contributed a
*really* nice file selection dialog box. It's not
integrated into CVS yet, but you can grab a preview from
my work-in-process repository:
<URL: http://www.flightlab.com/~joe/themebag/fsdialog.tcl >
The dialog is modelled after KDE's file selector (one of
the best ones around, IMO, even better than the standard
Tk file selector). Check it out!
--Joe English
jen...@fl...
|