RE: [perl-win32-gui-users] RE: How to change tip for Notify Icon

2001-06-13 Thread Johan Lindstrom
Joe wrote: No go.. Got the "Cant Locate object method Change in package Win32::GUI::NotifyIcon . Any more thoughts? When Win32::GUI doesn't do what you want, you do what you want with Win32::API. Look at "Shell_NotifyIcon" and "NOTIFYICONDATA" in the Win32 API Reference. I posted a few

RE: [perl-win32-gui-users] RE: How to change tip for Notify Icon

2001-06-13 Thread Frazier, Joe Jr
No go.. Got the "Cant Locate object method Change in package Win32::GUI::NotifyIcon . Any more thoughts? > -Original Message- > From: Piske, Harald [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 13, 2001 12:58 > To: 'perl-win32-gui-users@lists.sourceforge.net' > Subject: RE: [pe

RE: [perl-win32-gui-users] RE: How to change tip for Notify Icon

2001-06-13 Thread Piske, Harald
I did not try this, but when setting a hash value doesn't work with a GUI object, Aldo sometimes tells us to use the Change method instead. I.e. $Window->NI->Change(-tip => "Show PCKeys"); instead of $Window->NI->{-tip} = "Show PCKeys"; Worth trying. Have fun, Harald > -O

Re: [perl-win32-gui-users] ListView Item Click and Windows 2000

2001-06-13 Thread Kevin . ADM-Gibbs
Jonathan, You're right, removing -hotrack => 1 gives exactly what I want. You'd think I might have noticed that option and wondered what it did. I must be too used to using GB to design the forms and not be paying any attention to what all the things are its doing for me. Thanks very much for t

Re: [perl-win32-gui-users] ListView Item Click and Windows 2000

2001-06-13 Thread Jonathan Southwick
Kevin, I just tried something on my program and it seemed to work just fine. My guess is you have -hotrack => 1 in your defined ListView object. try taking that out and see if you get the results you want. Jonathan -- Jonathan Southwick

Re: [perl-win32-gui-users] ListView Item Click and Windows 2000

2001-06-13 Thread Kevin . ADM-Gibbs
Jonathan, The particular app that this is for will use the ListView to display files. I was hoping to allow a single click to select a file, further single clicks to select multiple files and a double click to perform an action on the files that had been selected. This would mean over riding the

[perl-win32-gui-users] RE: How to change tip for Notify Icon

2001-06-13 Thread Frazier, Joe Jr
Below is part of some code. I want to be able to change the Notify Icon tip based on the status of the main window: If window is visible, tip should be "Hide PCKeys", if not visible, tip should be "Show PCKeys". Can this be done? I have tried several different things and nothing has worked. I

Re: [perl-win32-gui-users] ListView Item Click and Windows 2000

2001-06-13 Thread Jonathan Southwick
Kevin, I'm not sure I understand what you are trying to do. Do you perform any actions on the item when an ItemClick (single) is performed or is the action on the item carried out with a DblClick event? I have written a program that works like Windows "Find Files or Folders" but finds user

Re: [perl-win32-gui-users] ListView Item Click and Windows 2000

2001-06-13 Thread Kevin . ADM-Gibbs
Jonathan, I didn't even notice you'd put Windows 200 until you sent the second email. Its a shame about the ItemClick event for ListViews, I'd hope to use ItemClick for selecting and then the double click for doing something with the selected items. Guess I'll just have to use double click for s

Re: [perl-win32-gui-users] Capturing 'enter key' with Richedit

2001-06-13 Thread Kevin . ADM-Gibbs
Carol, In the KeyPress sub for the richedit you need to check if enter (ascii 13) has been pressed. Something like sub RichEdit_KeyPress { my($key) = @_; if ($key == 13) then { # Enter key pressed } else { # some other key } }