Re: [perl-win32-gui-users] looping in win32 GUI

2001-02-14 Thread Aldo Calpini
christopher sagayam wrote: I might be slow to learn but Actually what Im concerned about is the while loop How do I get out of the while loop ? while ( ($status, $status_text) = RasGetConnectStatus($hrasconn) ) { } once the control goes into this loop how it is going to get out ? Or are

Re: [perl-win32-gui-users] The cancel cross (upper right) in GUI

2001-02-14 Thread Aldo Calpini
Nahum Marc wrote: How to manage the the cancel cross (upper right) in GUI to do an exit ? , not a window exit , but a script exit ... pick a sample script, anyone will do, from the samples directory and study it. HINT supposing your window is named Window, add this line to your script: sub

Re: [perl-win32-gui-users] The cancel cross (upper right) in GUI

2001-02-14 Thread Nahum Marc
I do this too ... but it's close the window , and not all the script ... I can see the process yet in task manager (under NT4) off course , i hide the dos box so , i need kill the process - Original Message - From: Aldo Calpini [EMAIL PROTECTED] To: Nahum Marc

Re: [perl-win32-gui-users] looping in win32 GUI

2001-02-14 Thread christopher sagayam
Thanks aldo I will use DO event but in case there is a better solution do keep me posted Here is what Im trying to do I am trying to write a win32 gui perl client which when started will check whether the computer is connected to internet continuously indefinety in the meantime other actions

Re: [perl-win32-gui-users] looping in win32 GUI

2001-02-14 Thread Aldo Calpini
christopher sagayam wrote: Here is what Im trying to do I am trying to write a win32 gui perl client which when started will check whether the computer is connected to internet continuously indefinety in the meantime other actions should proceed also So based on your previous example

Re: [perl-win32-gui-users] The cancel cross (upper right) in GUI

2001-02-14 Thread Aldo Calpini
Nahum Marc wrote: I do this too ... but it's close the window , and not all the script ... I can see the process yet in task manager (under NT4) off course , i hide the dos box so , i need kill the process there must be some error in your script. can you post a piece of your code that

Re: [perl-win32-gui-users] The cancel cross (upper right) in GUI

2001-02-14 Thread Nahum Marc
Win32::GUI version 0.0.502 perl version Binary build 522 OS : Windows NT4 wks , SP5 Sincerly, Marc Nahum - Original Message - From: Aldo Calpini [EMAIL PROTECTED] To: Nahum Marc perl-win32-gui-users@lists.sourceforge.net Sent: Wednesday, February 14, 2001 2:57 PM Subject: Re:

Re: [perl-win32-gui-users] The cancel cross (upper right) in GUI

2001-02-14 Thread Aldo Calpini
Nahum Marc wrote: Win32::GUI version 0.0.502 perl version Binary build 522 OS : Windows NT4 wks , SP5 c'est tres simple :-) your window is called 'Win' (-name = Win), but your event is called Window_Terminate. should be Win_Terminate instead! BTW, you have an horrible use of goto in your

Re: [perl-win32-gui-users] looping in win32 GUI

2001-02-14 Thread christopher sagayam
Thanks aldo for all your info chris www.perl-resume.com - Original Message - From: Aldo Calpini [EMAIL PROTECTED] To: christopher sagayam perl-win32-gui-users@lists.sourceforge.net Sent: Wednesday, February 14, 2001 6:59 PM Subject: Re: [perl-win32-gui-users] looping in win32 GUI

[perl-win32-gui-users] SelectedItems method

2001-02-14 Thread Erick J. Bourgeois
I'm trying to test if any items have been selected in a listview with a button event and I have used the -singlesel option on the listview. So, therefore, if the user clicks the button without selecting anything, I would like to have a MsgBox, else take the value of the the choosen selection and

Re: [perl-win32-gui-users] SelectedItems method

2001-02-14 Thread Jeremy Blonde
Well, I don't know if this will actually fix your problem, but you should definitely be using $index[0] instead of @index[0]. Just my 2 cents, jb --- Erick J. Bourgeois [EMAIL PROTECTED] wrote: I'm trying to test if any items have been selected in a listview with a button event and I have

Re: [perl-win32-gui-users] SelectedItems method

2001-02-14 Thread Erick J. Bourgeois
Jeremy, sorry what I gave was a typo, I did indeed have $Index[0] (Cutting and pasting error :) ). It should look like this: $MainWin-AddListView( -name = ListView, -pos = [85, 100], -size = [$MainWin-ScaleWidth-160,$MainWin-ScaleHeight-170],