Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: traymon.pl - Easily add a System Tray icon to an exisiting program

by Zero_Flop (Pilgrim)
on Apr 04, 2004 at 07:36 UTC ( #342433=note: print w/replies, xml ) Need Help??


in reply to traymon.pl - Easily add a System Tray icon to an exisiting program

Where do you get use Win32::GUI::Carp. I am running Activestate, ppm'd win32::Gui but got no Carp. I then did a search on the web for Win32::GUI::Carp and ended up with nothing, which I think is strange, becouse if it was common it should popup in published scripts.

Thanks would love to try this out
  • Comment on Re: traymon.pl - Easily add a System Tray icon to an exisiting program

Replies are listed 'Best First'.
Re: traymon.pl - Easily add a System Tray icon to an exisiting program
by bbfu (Curate) on Apr 05, 2004 at 00:08 UTC

    It's something I wrote myself. I thought I had posted it, along with my Tk::Carp, but apparently I'd forgotten to. I went ahead and posted it now. You can find it at Win32::GUI::Carp. I need to get both of these on CPAN, but I never got around to it.

    bbfu
    Black flowers blossom
    Fearless on my breath

      I can't get it to work. I downloaded Win32::GUI from PPM, downloaded and installed carp. I created an icon for my program, and created an INI with but two entries, one for the program, and one for the Icon. When I run Traymon, it starts the target program and then dies with the "Please tell Microsoft about this problem" dialog. I thought perhaps my Icon was causing the problem, so I commented out the Set_Icon call as a test. Same result. Any clues for the clueless? Thanks

        I had the same problem as well - here's how to fix:

        Change the line reading (in sub start_gui):

        $win  = Win32::GUI::Window->new();

        to this:

        $win  = Win32::GUI::Window->new(-name=>'Main',-text=>'Perl');

        Basically, it seems that Win32::GUI::Window::new needs the name and text args, otherwise it crashes.

        Cheers! -josiah

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://342433]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2022-05-25 20:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (90 votes). Check out past polls.

    Notices?