Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

How to use the BalloonInfo of

by ghosh123 (Monk)
on Jan 18, 2013 at 05:51 UTC ( #1013957=perlquestion: print w/replies, xml ) Need Help??
ghosh123 has asked for the wisdom of the Perl Monks concerning the following question:

Can anybody please throw some light on ballooninfo if he/she has used it earlier. some hints or pointers or if any one knows any doc on that ....

  • Comment on How to use the BalloonInfo of

Replies are listed 'Best First'.
Re: How to use the BalloonInfo of
by zentara (Archbishop) on Jan 18, 2013 at 10:11 UTC
    I just looked at perldoc Tk::Widget, and there is no listing of a BalloonInfo function.

    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh

      Hi zentara,

      If you are looking perl 5.8.8 version, then Tk::Widget of that version you 'll find the BalloonInfo sub routine. I am copy/paste -ing the code below. Even in the of that version you will find BalloonInfo

      sub BalloonInfo { my ($widget,$balloon,$X,$Y,@opt) = @_; foreach my $opt (@opt) { my $info = $balloon->GetOption($opt,$widget); return $info if defined $info; } } 'll find the BalloonInfo sub routine

        but it isn't documented , why do you want to use it?

Re: How to use the BalloonInfo of
by thundergnat (Deacon) on Jan 18, 2013 at 18:47 UTC

    As has been pointed out earlier, it is an undocumented helper routine used internally primarily in the module. Since it is undocumented, you really shouldn't use it since there is no guarantee that it won't change. But really, it's a pretty simple routine, you should be able to figure out and/or replicate the functionality easily just by reading the code.

    The primary use seems to be to check the attached -statusmsg and -ballonmsg options (documented in Tk::Balloon under Methods: attach) of the balloon under the pointer and return the first defined value if there is one... though there is nothing preventing you from using it to find the first defined value in any list of the widgets' options, I suppose.

      Thank you all. Your inputs helped
Re: How to use the BalloonInfo of
by Anonymous Monk on Jan 18, 2013 at 07:51 UTC

    There is a BalloonInfo function in Tk::Widget class. I would like to know how can that function be used in a code...

    It doesn't seem that way, it seems you want somebody to lay it all out for you -- pity

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1013957]
and all is calm...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2018-05-25 13:05 GMT
Find Nodes?
    Voting Booth?