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-1
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'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 do
Thanks aldo for all your info
chris
www.perl-resume.com
- Original Message -
From: Aldo Calpini <[EMAIL PROTECTED]>
To: christopher sagayam
Sent: Wednesday, February 14, 2001 6:59 PM
Subject: Re: [perl-win32-gui-users] looping in win32 GUI
christopher sagayam wrote:
> Here is what I
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
On 14 Feb 2001, at 11:20, 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 ...
I think I found your problem: When Win32::GUI::Dialog() returns -1,
control returns to the script. After that, you have a bunch
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"
Sent: Wednesday, February 14, 2001 2:57 PM
Subject: Re: [perl-win32-gui-users] The cancel cross (uppe
When inserting an item, there does not seem to be an option
for setting the item as checked or not. I think I would have
to use the SetItem method, but there is no documentaion on
this. Does anyone know?
erick
never stop questioning
www.jeb.ca
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 incl
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 exampl
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 sh
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"
Sent: Wednesday, Feb
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.
supposing your window is named Window, add this line to your
script:
sub Wi
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 ?
>
How to manage the the cancel cross (upper right) in GUI to do an exit ? , not a
window exit , but a script exit ...
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 these kinds of daemons possible i
christopher sagayam wrote:
> $|=1;
> use Win32::RASE;
> eval "use Time::HiRes qw(sleep)";
> $hrasconn = (RasEnumConnections())[1];
> $old_status = -1;
> while ( ($status, $status_text) = RasGetConnectStatus($hrasconn) ) {
>if ($status != $old_status) {
>print "$status: $status_text\n";
Chris,
I guess what you want to do is have a status window on
which you can display the status text from the RASE call?
If that's the case you can do something like this
use Win32::GUI;
my $Win = new Win32::GUI::Window(
-left => 341,
-top=> 218,
-width => 300,
-hei
18 matches
Mail list logo