diff options
author | hobbs <hobbs@noemail.net> | 2007-10-25 21:44:21 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2007-10-25 21:44:21 (GMT) |
commit | e6d6a5dc52bd09b2573f83f91ef145202ad1065d (patch) | |
tree | 0e316eba5bf980a1124288597f60247798da5ef9 /doc/getOpenFile.n | |
parent | 1d1b80bfef2bae81e160aabb11c5ed18705d454a (diff) | |
download | tk-e6d6a5dc52bd09b2573f83f91ef145202ad1065d.zip tk-e6d6a5dc52bd09b2573f83f91ef145202ad1065d.tar.gz tk-e6d6a5dc52bd09b2573f83f91ef145202ad1065d.tar.bz2 |
* doc/getOpenFile.n: TIP#242 implementation of -typevariable to
* library/tkfbox.tcl: return type of selected file in file dialogs.
* library/xmfbox.tcl: [Bug #1156388]
* macosx/tkMacOSXDialog.c:
* tests/filebox.test:
* tests/winDialog.test:
* win/tkWinDialog.c:
FossilOrigin-Name: 32679bf38647e40e47ad512d393e4e2004cacfb9
Diffstat (limited to 'doc/getOpenFile.n')
-rw-r--r-- | doc/getOpenFile.n | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/getOpenFile.n b/doc/getOpenFile.n index 0c07e5f..f28fbb1 100644 --- a/doc/getOpenFile.n +++ b/doc/getOpenFile.n @@ -4,7 +4,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: getOpenFile.n,v 1.16 2007/10/23 15:44:35 dkf Exp $ +'\" RCS: @(#) $Id: getOpenFile.n,v 1.17 2007/10/25 21:44:22 hobbs Exp $ '\" .so man.macros .TH tk_getOpenFile n 4.2 Tk "Tk Built-In Commands" @@ -88,6 +88,16 @@ dialog is displayed on top of its parent window. \fB\-title\fR \fItitleString\fR Specifies a string to display as the title of the dialog box. If this option is not specified, then a default title is displayed. +.TP +\fB\-typevariable\fR \fIvariableName\fR +The variable \fIvariableName\fR is used to preselect which filter is +used from \fIfilterList\fR when the dialog box is opened and is +updated when the dialog box is closed, to the last selected +filter. The variable is read once at the beginning to select the +appropriate filter. If the variable does not exist, or it's value does +not match any filter typename, or is empty (\fB{}\fR), the dialog box +will revert to the default behavior of selecting the first filter in +the list. If the dialog is canceled, the variable is not modified. .PP If the user selects a file, both \fBtk_getOpenFile\fR and \fBtk_getSaveFile\fR return the full pathname of this file. If the |