NAME

TUI::Dialogs - Dialog components for the TUI::Vision framework

SYNOPSIS

use TUI::Objects;
use TUI::Views;
use TUI::Dialogs;

# Typical modal dialog flow:
my $dlg = TDialog->new(
  bounds => TRect->new( ax => 0, ay => 0, bx => 38, by => 12 ),
  title  => 'Find',
);
$dlg->{options} |= ofCentered;

my $input = TInputLine->new(
  bounds => TRect->new( ax => 3, ay => 3, bx => 32, by => 4 ),
  maxLen => 80,
);
$dlg->insert($input);
$dlg->insert( TLabel->new(
  bounds => TRect->new( ax => 2, ay => 2, bx => 15, by => 3 ),
  text   => '~T~ext to find',
  link   => $input,
));

$dlg->insert( TButton->new(
  bounds  => TRect->new( ax => 14, ay => 9, bx => 24, by => 11 ),
  title   => 'O~K~',
  command => cmOK,
  flags   => bfDefault,
));
$dlg->insert( TButton->new(
  bounds  => TRect->new( ax => 26, ay => 9, bx => 36, by => 11 ),
  title   => 'Cancel',
  command => cmCancel,
  flags   => bfNormal,
));

my $result = $deskTop->execView($dlg);

DESCRIPTION

TUI::Dialogs provides the dialog and widget layer for the TUI::Vision framework. It corresponds to the Turbo Vision dialog subsystem and includes a wide range of interactive UI components.

This module re-exports numerous dialog-related classes, including:

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).