NAME
TUI::StdDlg - Standard dialogs for the TUI::Vision framework
SYNOPSIS
use TUI::App;
use TUI::StdDlg;
# Typical in a TProgram/TApplication command handler:
my @fileName = ('*.*');
my $fileDlg = TFileDialog->new(
wildCard => $fileName[0],
title => 'Open File',
inputName => '~F~ile Name',
options => fdOpenButton,
histId => 1,
);
if ( $application->executeDialog($fileDlg, \@fileName) != cmCancel ) {
# $fileName[0] now contains the selected file.
}
my $dirDlg = TChDirDialog->new(
options => 0,
histId => 1,
);
$application->executeDialog($dirDlg, undef);
DESCRIPTION
TUI::StdDlg provides the standard dialog set for the TUI::Vision framework. It corresponds to the Turbo Vision standard dialogs and includes high-level components such as file dialogs, directory dialogs, and specialized list boxes.
This module re-exported:
Const - Symbolic constants for standard dialog behavior.
TFileCollection / TDirCollection - Support structures for file and directory dialogs.
TSortedListBox - A list box widget with automatic sorting.
Additional standard dialogs - Like file dialog, directory dialog, and related components.
AUTHORS
Borland International (original Turbo Vision design)
J. Schneider <brickpool@cpan.org> (Perl implementation and maintenance)
CONTRIBUTORS
Contributors are documented in the POD of the respective framework modules.
COPYRIGHT AND LICENSE
Copyright (c) 1990-1994, 1997 by Borland International
Copyright (c) 2026 the "AUTHORS" as listed above.
This software is licensed under the MIT license (see the LICENSE file, which is part of the distribution).