From: Johan L. <jo...@ba...> - 2002-10-20 22:36:34
|
I forget. Did we solve the problem where the tray icon stayed there a little while after program exit? My best solution now is to replace it with an invisible icon, like this: Win32::GUI::NotifyIcon::Modify( $win, -id => 1, -icon => undef, ); This leaves an empty space where the icon was (still is, but non-visible), which is removed when the user moves the mouse cursor over the tray (this goes for w2k). /J -------- ------ ---- --- -- -- -- - - - - - Johan Lindström Sourcerer @ Boss Casinos jo...@ba... Latest bookmark: "XEmacs XEmacs and Supporting Libraries and Prog..." http://xemacs.org/Download/win32/ dmoz: /Computers/Open_Source/Software/Editors/ 98 |
From: Morbus I. <mo...@di...> - 2002-10-20 23:11:01
|
At 12:31 AM +0200 10/21/02, Johan Lindstrom wrote: >I forget. Did we solve the problem where the tray >icon stayed there a little while after program exit? See the AmphetaDesk Windows.pm: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/amphetadesk/AmphetaDesk/ lib/AmphetaDesk/OS/Windows.pm?rev=1.7&content-type=text/vnd.viewcvs-markup Specifically, the exit code and _Remove_Systray_Icon. With that being two of my answers to two questions of yours in two weeks, perhaps you could reciprocate one of my own, hMmMm ;) ... - Currently, when someone clicks on my Systray Icon, the main AmphetaDesk window merely shows up in the tray, minimized - it doesn't show up maximized (see _Systray_Click). I've yet to try out any solutions, but I'd: - like to follow Window standards, and make this a double click, not a single click. Is this a simple change to _Systray_DoubleClick, or something else? - the window stays minimized - how do I spring it open to a Maximized state? I use both ->Enable and ->Show, but still it's minimized. Thoughts? -- Morbus Iff ( i'm the droid you're looking for ) Culture: http://www.disobey.com/ and http://www.gamegrene.com/ Tech: http://www.oreillynet.com/pub/au/779 - articles and weblog icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus |
From: Johan L. <jo...@ba...> - 2002-10-21 21:37:05
|
At 19:11 2002-10-20 -0400, Morbus Iff wrote: > - the window stays minimized - how do I spring it > open to a Maximized state? I use both ->Enable > and ->Show, but still it's minimized. If I understand your problem correctly: Show([COMMAND]) Shows a window (or change its showing state to COMMAND); available COMMANDs are: SW_HIDE SW_MAXIMIZE SW_MINIMIZE SW_RESTORE SW_SHOW SW_SHOWDEFAULT SW_SHOWMAXIMIZED SW_SHOWMINIMIZED SW_SHOWMINNOACTIVE SW_SHOWNA SW_SHOWNOACTIVATE SW_SHOWNORMAL The default COMMAND, if none specified, is SW_SHOWNORMAL /J -------- ------ ---- --- -- -- -- - - - - - Johan Lindström Sourcerer @ Boss Casinos jo...@ba... Latest bookmark: "XEmacs XEmacs and Supporting Libraries and Prog..." http://xemacs.org/Download/win32/ dmoz: /Computers/Open_Source/Software/Editors/ 98 |
From: Luigino M. <lma...@ou...> - 2002-10-21 05:29:18
|
Hi, I'm using this code with success: $window->AddNotifyIcon( -name =3D> "notifyIcon", -id =3D> 1, -icon =3D> $Icon, -tip =3D> 'My application...' ); to create the icon and: Win32::GUI::NotifyIcon::Delete( $window, -id =3D> 1, ); placed after Win32::GUI::Dialog(), to remove the notifyicon ... I think it's an undocumented feature I found somewhere in this list. Bye. Luigino Masarati OutSys snc ----- Original Message ----- From: "Johan Lindstrom" <jo...@ba...> To: <per...@li...> Sent: Monday, October 21, 2002 12:31 AM Subject: [perl-win32-gui-users] NotifyIcon doesn't go away on program exi= t > I forget. Did we solve the problem where the tray icon stayed there a > little while after program exit? > > My best solution now is to replace it with an invisible icon, like this= : > > Win32::GUI::NotifyIcon::Modify( > $win, > -id =3D> 1, > -icon =3D> undef, > ); > > This leaves an empty space where the icon was (still is, but non-visibl= e), > which is removed when the user moves the mouse cursor over the tray (th= is > goes for w2k). > > > /J > -------- ------ ---- --- -- -- -- - - - - - > Johan Lindstr=F6m Sourcerer @ Boss Casinos jo...@ba... > > Latest bookmark: "XEmacs XEmacs and Supporting Libraries and Prog..." > http://xemacs.org/Download/win32/ > dmoz: /Computers/Open_Source/Software/Editors/ 98 > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > Access Your PC Securely with GoToMyPC. Try Free Now > https://www.gotomypc.com/s/OSND/DD > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > |