NAME
TUI::Gadgets::Report - status line for the focused ASCII character
HIERARCHY
TObject
TView
TReport
SYNOPSIS
use TUI::Objects;
use TUI::Gadgets;
my $report = TReport->new(
bounds => TRect->new( ax => 1, ay => 9, bx => 33, by => 10 ),
);
$window->insert( $report );
DESCRIPTION
TReport is a single-line view that shows the character code of the character currently focused in a TTable. It displays the character itself, its decimal code and its hexadecimal code, for example Char: A Decimal: 065 Hex 41.
The view reacts to the cmCharFocused broadcast of a table. It must receive broadcasts, so the owner of the view has to set the evBroadcast bit in its eventMask, as TAsciiChart does.
CONSTRUCTOR
new
my $report = TReport->new( bounds => $bounds );
Creates a new report view. The initial character code is 0.
- bounds
-
Bounding rectangle defining the position and size of the view (TRect).
new_TReport
my $report = new_TReport( $bounds );
Factory-style constructor using a positional bounds argument.
METHODS
draw
$report->draw();
Draws the status text for the current character code.
handleEvent
$report->handleEvent( $event );
Stores the character code from a cmCharFocused broadcast and redraws the view.
SEE ALSO
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).