NAME
TUI::Gadgets::Calculator - dialog window of the calculator gadget
HIERARCHY
TObject
TView
TWindow
TDialog
TCalculator
SYNOPSIS
use TUI::Gadgets;
my $calc = new_TCalculator();
$desktop->insert( $calc );
DESCRIPTION
TCalculator is a dialog that hosts twenty buttons and a TCalcDisplay. Each button broadcasts cmCalcButton with its caption as the key, and the display evaluates the key sequence.
CONSTRUCTOR
new
my $calc = TCalculator->new();
Creates the calculator dialog at position (5,3) with a size of 24x15 and the title Calculator. The constructor takes no arguments.
METHODS
build
my $calc = TCalculator->build();
Creates a new calculator. Used when a stored object is restored.
SEE ALSO
TUI::Gadgets::CalcDisplay, TUI::Dialogs::Dialog, TUI::Dialogs::Button
AUTHORS
Borland International (original Turbo Vision design)
J. Schneider <brickpool@cpan.org> (Perl implementation and maintenance)
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).