![]() ![]() DisableShowAllĭisables the ability of the user to change the status of the ShowAll flag (the user is by default allowed to change the status). Default: FALSE (enable user to change the file selection pattern). DisableFPatĭisables the ability of the user to change the file selection pattern (the user is by default allowed to change the status). Default: 1 (enable user to enter a "new" (non-existant) file name). If set to -1, user can not create a new file nor type in a name, only select from the list. If 0 (not enabled), and the user specifies a non-existent file, a dialog box will be shown informing the user of the error (This Dialog Box is configurable via the EDlg* switches, described below). WIDGET OPTIONSĪny of the following configuration items may be set via the configure (or Show) method, or retrieved via the cget method: -CreateĮnable the user to specify a file that does not exist. undef is returned only if the user pressed the Cancel button. When you wish to display the JFileDialog, invoke the 'Show' method on the JFileDialog object The method will return either a file name, a path name, or undef. To use JFileDialog, simply create your JFileDialog objects during initialization (or at least before a Show). It uses and depends on the author's Tk::JBrowseEntry widget and adds numerous features, such as optional history and favorites files, handles MS-Windows drive letters, additional key bindings, etc. The widget is based on the Tk::FileDialog widget by Brent B. $main->Checkbutton(-text => 'Horizontal', $LoadDialog->configure(-ShowDirList => 0) $fname = "Fine,Cancel, but no ShowDirList anymore!!!" $fname = $LoadDialog->Show(-Horiz => $Horiz) ![]() My $LoadDialog = $main->JFileDialog(-Title =>'This is my title', ![]() #Notefile widget codeThe following code creates a JFileDialog and calls it. Print ".User entered file name=$filename=.\n" #Notefile widget softwareYou should have received a copy of the GNU Lesser General Public License along with this program if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA SYNOPSIS my $getFileDialog = $main->JFileDialog( See the GNU Lesser General Public License for more details. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Tk::JFileDialog is free software you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation either version 2.1 of the License, or (at your option) any later version. LICENSE AND COPYRIGHTĬopyright (c) 1996-2019 Jim Turner. This is a derived work from Tk::FileDialog, Tk::Listbox and Tk::HList. Tk::JFileDialog - A highly configurable File and Directory Dialog widget for Perl/Tk. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |