Re: [perl-win32-gui-users] Scrollbars on Drop List

2002-12-15 Thread Kevin . ADM-Gibbs
Stephen, Something like -addstyle = WS_VISIBLE | 3 | WS_NOTIFY | WS_VSCROLL, Should do it. Kev. |-+ | | Stephen \Flame\ Couchman | | | [EMAIL PROTECTED] | | |

Re: [perl-win32-gui-users] set button as default

2002-12-13 Thread Kevin . ADM-Gibbs
Marc, You could give the button focus: $Win_info_srv-Button_ok_srv-SetFocus(); would do that. To have enter press the button when another control had focus there needs to be a way of getting the window to call your button click routine when enter is pressed. So far I've only seen this

Re: [perl-win32-gui-users] odd hash behavior

2002-11-22 Thread Kevin . ADM-Gibbs
Pete, You forgot the 'keys' in your foreach statement. ie foreach my $number (%countother) should be foreach my $number ( keys %countother) otherwise the foreach loops through both keys and values. Cheers, Kev. |-+ |

Re: [perl-win32-gui-users] double click buttons

2002-10-22 Thread Kevin . ADM-Gibbs
Usually with this sort of thing I'd disable the window containing the button, eg $win-disable(); If $win is the window with the button in. You might also want to consider making the second window a dialogbox and setting its parent to the first window. From memory this stops the second

Re: [perl-win32-gui-users] LWP + Fork + Win32::GUI

2002-10-17 Thread Kevin . ADM-Gibbs
Michael, I did quite a bit of experimenting with Fork and Win32::GUI a while ago. The main problem I hit was perl crashed when the window closed. I guessed there was some sort of memory management problem but couldn't figure out what. Eventually I gave up and used a doevents approach (I did

Re: [perl-win32-gui-users] communication between GUI scripts

2002-07-09 Thread Kevin . ADM-Gibbs
Peter, Win32::Pipe allows you to use named pipes for interprocess communication. One process has to act as a server, any others as clients. You might want to have a look at the PerlIPC doc as well. Here's a very simple Win32::Pipe server: use Win32::Pipe; $p = new

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

2002-04-10 Thread Kevin . ADM-Gibbs
Make the second window a dialog window and use the -parent option when you create it Example code below. Cheers, Kev. use Win32::GUI; $Win = new Win32::GUI::Window( -left = 341, -top= 218, -width = 300, -height = 300, -name = Win, -text = Window

Re: [perl-win32-gui-users] Using fork to avoid a frozen window while using LWP

2002-03-25 Thread Kevin . ADM-Gibbs
Guillem, You'll probably find that forking and then using waitpid doesn't do what you want. If you're parent process is waiting it won't be able to respond to user input. What I think you need to do is disable any user input controls that might cause problems if they are clicked while you're

[perl-win32-gui-users] Fork() and BringWindowToTop()

2002-02-19 Thread Kevin . ADM-Gibbs
Hi All, I'm trying to use fork() to create a parent and child process. The parent will deal with Win32::GUI events, tell the child which buttons etc have been pressed, the child will carry out the actions and update the appropriate controls on the window. This way I can allow the main window to

[perl-win32-gui-users] Rich Text and Unicode characters

2001-11-13 Thread Kevin . ADM-Gibbs
Has anyone found out how to display unicode characters in a text or rich edit control? It doesn't seem to work for me. 'ç' comes out as '├º' when I try to use it (apologies if various email systems have destroyed the original character but it was a unicode 00E7 character). Cheers, Kev.

[perl-win32-gui-users] GUI event handling in Modules

2001-10-31 Thread Kevin . ADM-Gibbs
This may have come up before, in which case I apologise, but has anyone tried creating a module to package up commonly used windows? I've been trying this but found I have to export the event (Button_Click etc) handlers into the Main namespace. Does anyone know if there is a way to handle these

[perl-win32-gui-users] Re: Win32:: GUI Capturing the enter key

2001-06-15 Thread Kevin . ADM-Gibbs
Carol, Your code looked fine to me but didn't work when I ran it either so I looked at Aldo's PRIDE program and found that I could only get the keypress event to be called if I declared a new class and then made the richedit a member of that class: my $EC = new Win32::GUI::Class( #

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

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

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

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

2001-06-12 Thread Kevin . ADM-Gibbs
Has anyone else found that under Windows 2000 leaving the mouse cursor over a list view item causes an ItemClick event? Its almost as if there is a MouseOver event. If its not just me that gets this, does anyone have any thoughts on how to turn this behaviour off so that only a real click of

Re: [perl-win32-gui-users] Shutdown, reboot, logoff and lock on NT and 2000 with perl?

2001-05-22 Thread Kevin . ADM-Gibbs
Tim, The Win32 module has Win32::InitiateSystemShutdown(MACHINE, MESSAGE, TIMEOUT, FORCECLOSE, REBOOT) I haven't come across modules which do of the other things. Kev. Thomas, Timothy B [EMAIL PROTECTED]@lists.sourceforge.net on 21/05/2001 23:20:02 Please respond to