$VERSION = '3.018'; # $Id: //depot/Tk8/Canvas/Canvas.pm#18 $
Construct Tk
::Widget
'Canvas';
sub Tk_cmd
{ \
&Tk
::canvas
}
Tk
::Methods
('addtag','bbox','bind','canvasx','canvasy','coords','create',
'dchars','delete','dtag','find','focus','gettags','icursor',
'index','insert','itemcget','itemconfigure','lower','move',
'postscript','raise','scale','scan','select','type','xview','yview');
use Tk
::Submethods
( 'create' => [qw(arc bitmap grid group image line oval
polygon rectangle text window)],
'scan' => [qw(mark dragto)],
'select' => [qw(from clear item to)],
'xview' => [qw(moveto scroll)],
'yview' => [qw(moveto scroll)],
*CanvasBind
= \
&Tk
::bind;
*CanvasFocus
= \
&Tk
::focus
;
$mw->XYscrollBind($class);
my ($canvas,$balloon,$X,$Y,@opt) = @_;
my @tags = ($canvas->find('withtag', 'current'),$canvas->gettags('current'));
my $info = $balloon->GetOption($opt,$canvas);
if ($opt =~ /^-(statusmsg|balloonmsg)$/ && UNIVERSAL
::isa
($info,'HASH'))
$balloon->Subclient($tags[0]);
return $info->{$tag} if exists $info->{$tag};