On Mon, 24 May 1999, GUNNAR LINDHOLM wrote:
> I would like to have a file dialog to pop up when I press a certain button.
> Is there a simple way to create this file selection dialog (just like the
> one in the menu: file->open) with VTcl? I don't want to write down all the
> code I found in a book. Is there some kind of predefined file dialog that
> is easy to use/acces?
>
Hi,
you may have a look at the tk_getOpenFile and the tk_getSaveFile functions
of TK. With some limitations, they're doing the thing you're looking for.
One limitation is the impossibility to select directories with the
tk_getOpenFile. I recognized a page where someone is offering just that
functionality: http://www.multimania.com/droche/tkgetdir/index.html.
Regards,
Steffen
___________________________________________________
Steffen Leich Phone: 06421-283144
Universitaet Marburg [EMAIL PROTECTED]
Netzwerkadministration FB Wirtschaftswissenschaften
---------------------------------------------------------------------------
To unsubscribe from the Visual Tcl mailing list, please send a message
to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the
message body (where [EMAIL PROTECTED] is your e-mail address).