Gossamer Forum
Home : General : Perl Programming :

How to use BalloonInfo of Tk::Widget

Quote Reply
How to use BalloonInfo of Tk::Widget
Hi ,

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

I want to know how can we invoke that function to show some balloon message. An example will be very useful.

Thanks.

Xaverian
Quote Reply
Re: [xaverian] How to use BalloonInfo of Tk::Widget In reply to
I can't see that on CPAN's POD document...

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] How to use BalloonInfo of Tk::Widget In reply to
Hi Andy ,

In the perl version 5.8.8 installation, if you open the Widget.pm module , you will find the function there.
I am copy/paste -ing the function from that module below :
Thanks.
Code:
sub BalloonInfo
{
my ($widget,$balloon,$X,$Y,@opt) = @_;
foreach my $opt (@opt)
{
my $info = $balloon->GetOption($opt,$widget);
return $info if defined $info;
}
}
Quote Reply
Re: [xaverian] How to use BalloonInfo of Tk::Widget In reply to
Ah ok - its a bit hard to know what its meant to be used for though... are you sure its not an internal function, rather than something a "user" would be using? (perl modules always have functions in there which are not designed to be used from external scripts, but are used internally for the module)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!