Devel-ptkdb
view release on metacpan or search on metacpan
my ($offset_x, $offset_y) = ($x + 4, $y + 4) ;
my $self = $DB::window ;
my $txt2 = $self->{'text'} ;
my $data ;
$self->{'balloon_coord'} = "$offset_x,$offset_y" ;
$x -= $txt->rootx ;
$y -= $txt->rooty ;
#
# Post an event that will cause us to put up a popup
#
if( $txt2->tagRanges('sel') ) { # check to see if 'sel' tag exists (return undef value)
$data = $txt2->get("sel.first", "sel.last") ; # get the text between the 'first' and 'last' point of the sel (selection) tag
}
else {
$data = $DB::window->retrieve_text_expr($x, $y) ;
}
if( !$data ) {
( run in 1.110 second using v1.01-cache-2.11-cpan-364913b4093 )