|< 1 2 >| | 11 Einträge, 2 Seiten |
Quoteschon mal probiert -SelDir => 1 zu setzen beim FileDialog??
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
my $typen = [
['txt-Format', '.txt' ],
['out-Format', '.out' ],
['xml-Format', '.xml' ],
['XXXXX-Dateien', ['.txt', '.out', '.xml', '.ana']],
['Alle', '*' ],
];
my $dn = $mw->getOpenFile(-filetypes => $typen,
-initialdir => '.',
);
if (defined $dn and $dn ne "") {
$Konfig{quelle} = $dn;
$Konfig{maxsize} = -s $Konfig{quelle};
$mw->update();
}
Quote-defaultextension => *extension*
Specifies a string that will be appended to the filename if the user
enters a filename without an extension. The default value is the
empty string, which means no extension will be appended to the
filename in any case. This option is ignored on the Macintosh
platform, which does not require extensions to filenames.
-filetypes => [*filePattern* ?, ...?]
If a File types listbox exists in the file dialog on the particular
platform, this option gives the *filetype*s in this listbox. When
the user choose a filetype in the listbox, only the files of that
type are listed. If this option is unspecified, or if it is set to
the empty list, or if the File types listbox is not supported by the
particular platform then all files are listed regardless of their
types. See "SPECIFYING FILE PATTERNS" below for a discussion on the
contents of *filePattern*s.
-initialdir => *directory*
Specifies that the files in *directory* should be displayed when the
dialog pops up. If this parameter is not specified, then the files
in the current working directory are displayed. This option may not
always work on the Macintosh. This is not a bug. Rather, the
*General Controls* control panel on the Mac allows the end user to
override the application default directory.
-initialfile => *filename*
Specifies a filename to be displayed in the dialog when it pops up.
This option is ignored by the getOpenFile method.
-title => *titleString*
Specifies a string to display as the title of the dialog box. If
this option is not specified, then a default title is displayed.
This option is ignored on the Macintosh platform.
|< 1 2 >| | 11 Einträge, 2 Seiten |