List Info

Thread: perlpdk->perltray->variables->perltray::TOOL




perlpdk->perltray->variables->p erltray::TOOL
country flaguser name
United States
2007-04-10 09:26:13
How can this variable be changed?  
I would like users to see my application name during
mouseover, rather
than PerlTray, to avoid confusion.

The documentation shows this can also be accessed via the
PerlApp::
namespace, but, so far, I have had no luck changing it.

A short example would be appreciated.


Darrin Husmann
CEO
Skatanka, LLC
OKC, OK


_______________________________________________
PDK mailing list
PDKlistserv.ActiveState.com
To unsubscribe: http:/
/listserv.ActiveState.com/mailman/mysubs

RE: perlpdk->perltray->variables->p erltray::TOOL
country flaguser name
Canada
2007-04-10 11:15:40
On Tue, 10 Apr 2007, dthusmaskatanka.com wrote:
> How can this variable be changed? I would like users to
see my
> application name during mouseover, rather than
PerlTray, to avoid
> confusion.
>
> The documentation shows this can also be accessed via
the PerlApp::
> namespace, but, so far, I have had no luck changing
it.

The $PerlApp::TOOL variable is only used to indicate the
current
execution environment.  This can be useful if you have a
library
that is used both in a PerlApp and a PerlTray application,
and
you want to write to STDERR when called in your PerlApp
app,
but display a messagebox when called in the PerlTray one.

You can change the text of the tooltip by providing a
ToolTip
callback that returns the string to be displayed.  The
included sample app uses:

    sub ToolTip 

This will display the current date and time in your
tooltip.

Due to a bug this is not working in PerlTray 6.0.2.  You can
add
the following line to work around this bug:

    *PerlTray::ToolTip = &ToolTip;

This workaround is not necessary for any other version of
PerlTray,
including PerlTray 7.0.

Cheers,
-Jan


_______________________________________________
PDK mailing list
PDKlistserv.ActiveState.com
To unsubscribe: http:/
/listserv.ActiveState.com/mailman/mysubs

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )