Re: [perl-win32-gui-users] Popup window

2001-06-07 Thread Glenn Linderman
My, oh my, now I've got menus in windows, and menus by popups! Amazing what an example will do. Thanks. Now I have to populate their _Click routines! "Piske, Harald" wrote: > Note: I took the liberty of changing the subject, since this is not about > BringWindowToTop anymore. > > About the pop

Re: [perl-win32-gui-users] Popup window

2001-06-07 Thread Erick Bourgeois
I'm in the process of finishing a Perl source code exchange. Basically exchanging subroutines and snippets of code, as well as the ability to upload binaries. And, this code would be perfect: | # define popup menu for listview | my $PopupMenu = new Win32::GUI::Menu( | "Item Properties" => "I

RE: [perl-win32-gui-users] Popup window

2001-06-07 Thread Piske, Harald
Note: I took the liberty of changing the subject, since this is not about BringWindowToTop anymore. About the popup menu, see trail "Re; Popup menu", posting by Jonathan Southwick on April 2nd, 2001. Apparently, Ludvig af Klinteberg subsequently managed to use the code for a tray icon. Quote: # d

Re: [perl-win32-gui-users] BringWindowToTop doesn't

2001-06-07 Thread Glenn Linderman
Does anyone have sample code to create a pop-up menu for a Notify Icon's right click? That seems to be the current rage for System Tray icons? I've got a few other enhancements to make, and then I'll be looking that direction. I'm speculating that on click detection, you'd position and show a wi

RE: [perl-win32-gui-users] BringWindowToTop doesn't

2001-06-07 Thread Marjolein Katsma
But of course they can have beautiful flowers, too - as well as delicious edible fruit ;-) At 11:04 2001-06-07 -0700, Piske, Harald wrote: >On second thought, I'd like to speak of cacti rather than flowers ;-) Cheers, Marjolein Katsma HomeSite Help - http://hshelp.com/ - Extensions, Tips and T

Re: [perl-win32-gui-users] BringWindowToTop doesn't

2001-06-07 Thread Glenn Linderman
"Piske, Harald" wrote: > I certainly agree, although complexity seems to be unavoidable with > flexibility. My approach is to really fight for the time to go over ALL the > functions once briefly, so that when I need a certain functionality, I have > a better chance to vaguely remember where there

RE: [perl-win32-gui-users] BringWindowToTop doesn't

2001-06-07 Thread Piske, Harald
Having been in on this trail before makes me feel entitled to contribute to this philosophical footnote as well: I certainly agree, although complexity seems to be unavoidable with flexibility. My approach is to really fight for the time to go over ALL the functions once briefly, so that when I ne

Re: [perl-win32-gui-users] BringWindowToTop doesn't

2001-06-07 Thread Glenn Linderman
Thanks so much. That does it for me too. SetForegroundWindow is the key API for this functionality. Side note TWIMC: the Windows API is clearly too big, with too many ways to do the wrong thing, but that make it sound like it is the right thing. Focused searching can easily lead down the wrong t

RE: [perl-win32-gui-users] BringWindowToTop doesn't

2001-06-07 Thread Peter Eisengrein
I've used SetForegroundWindow() from a NotifyIcon and that works on NT4. sub ni_Click { if ($Window->IsVisible) { $Window->Hide(); } else { $Window->Show(); $Window->SetForegroundWindow(); } re

Re: [perl-win32-gui-users] file-menu question

2001-06-07 Thread Chris Etzel
Thanks Johan. That was it. Chris - Original Message - From: "Johan Lindstrom" <[EMAIL PROTECTED]> To: Sent: Thursday, June 07, 2001 2:17 AM Subject: Re: [perl-win32-gui-users] file-menu question > Chris wrote: > >Is there anything special I should know about making a Menu visible? > > S

Re: [perl-win32-gui-users] file-menu question

2001-06-07 Thread Johan Lindstrom
Chris wrote: Is there anything special I should know about making a Menu visible? Study this example code: my $mnuMain = Win32::GUI::MakeMenu( "&File" => "mnuFile", " > &New" => "mnuFileNew", " > &Open..." => "mnuFileO

Re: [perl-win32-gui-users] BringWindowToTop doesn't

2001-06-07 Thread Glenn Linderman
Thanks, Harald. Once again, you've busted me out of the mental box I was in. Your program so clearly works, one would wonder why mine doesn't. The difference is in the fact that I'm calling BringWindowToTop from a Notify icon click (which was clear from the sample code I provided), and you are no