Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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]
[perldigious]: Nice erix... perldigious' legs are so sore from portaging his kayak from place to place last weekend he can barely hobble 12m. :-)
[erix]: you're faster than me then :)
[erix]: well, at the moment, that is :)
[erix]: I should lose some weight although I keep telling myself that I'm doing extra training by lugging it along
[erix]: I saw a common kingfisher and a couple of bullfinches
[erix]: bullfinch ( a male and a female )
erix learned the word 'portaging' not so long ago (from vikings lugging their ships from one river-system to another)
[choroba]: my best run so far
[erix]: I think they build a portaging installation for yachts here not so long ago - lemme google it
[erix]: choroba ah, you should have sprinted 7 s off that :)

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2017-05-24 12:46 GMT
Find Nodes?
    Voting Booth?