[perl-win32-gui-users] API 0.41

2003-04-14 Thread Borus Gabor
Aldo,

I tried to compile your module, but I received this error message:

cl -c-nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_ST
RICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO
-DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG -O1-DVERSION=\"0.41\"  -DXS_VERSION=\
"0.41\"  "-IC:\Perl\lib\CORE"   Callback.c
'cl' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1'
Stop.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x2'
Stop.

I use win XP and nmake for compile.
Can you help me? What do I wrong?
Thanks

Gabor

Re: [perl-win32-gui-users] Timer-Object-Question

2003-04-14 Thread Christian Kappler
Hello Iain,

On Monday, April 14, 2003 1:29 AM, "Iain Whyte" <[EMAIL PROTECTED]>
wrote:
> You could easy work around it - use a global to skip
> execution of the code in your _Timer subroutine every
> second time it runs i.e.:
> [...]

Yes, not nice, but a good idea and easy to implement... Thank you very very
much!

Regards,

  Christian





[perl-win32-gui-users] API 0.41

2003-04-14 Thread Borus Gabor
Aldo,

I tried to compile your module, but I received this error message:

cl -c-nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_ST
RICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO
-DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG -O1-DVERSION=\"0.41\"  -DXS_VERSION=\
"0.41\"  "-IC:\Perl\lib\CORE"   Callback.c
'cl' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1'
Stop.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x2'
Stop.

I use win XP and nmake for compile.
Can you help me? What do I wrong?
Thanks

Gabor

[perl-win32-gui-users] Tabbing and Accelerator problems

2003-04-14 Thread Cruickshanks, Darin
All,


I'm fairly new to Win32-GUI and am having some problems with events and
with tabbing between text fields.

The problem with the tabbing is that I cant get it to work at all, I
have read the documentation that is available but I must be missing
something.  Anyone got any ideas?

Also I would like to be able to hit the return key after I have typed
something into a text field and have the input processed.  I have looked
at accelerator tables and the "_KeyDown(KEY)" event but could get
neither to work.  Again any ideas would be greatly received.

I have ActivePerl version 5.6.1 and the Win32::GUI is ver 0.0.665.

Help!?

Darin

Darin Cruickshanks
Labs Manager, Computing Service
University of Essex
[EMAIL PROTECTED]
01206 873585


-Original Message-
From: Christian Kappler [mailto:[EMAIL PROTECTED] 
Sent: 14 April 2003 11:04
To: Iain Whyte; Perl-Win32-GUI Mailinglist
Subject: Re: [perl-win32-gui-users] Timer-Object-Question


Hello Iain,

On Monday, April 14, 2003 1:29 AM, "Iain Whyte"
<[EMAIL PROTECTED]>
wrote:
> You could easy work around it - use a global to skip execution of the 
> code in your _Timer subroutine every second time it runs i.e.:
> [...]

Yes, not nice, but a good idea and easy to implement... Thank you very
very much!

Regards,

  Christian




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf ___
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users



Re: [perl-win32-gui-users] Tabbing and Accelerator problems

2003-04-14 Thread Christian Kappler
Hello,

On Monday, April 14, 2003 3:30 PM, "Cruickshanks, Darin" <[EMAIL PROTECTED]>
wrote:
>...
> The problem with the tabbing is that I cant get it to
> work at all, I have read the documentation that is
> available but I must be missing something.  Anyone got
> any ideas?

You will have to add "-tabstop => 1" for every control you want to to and
from. This should be enogh if the controls are part of a
Win32::GUI::DialogBox. If they are part of a Win32::GUI::Window in addition
you will have to do something like the following:

my $Window = new Win32::GUI::Window(%options);
$Window->{-dialogui} = 1;

Regards,

  Christian





RE: [perl-win32-gui-users] Tabbing and Accelerator problems

2003-04-14 Thread Cruickshanks, Darin
Excellent,

Thanks to all that applied, the tabbing feature now works, you have to
add $Window->{-dialogui} = 1; to get this going in a window and the
default button works ok as long as you set -ok => 1.  Don't know what
the -default =>1, does but it didn't make any difference to my code
(that I could see! ;-))

Thanks all,

Darin

Darin Cruickshanks
Labs Manager, Computing Service
University of Essex
[EMAIL PROTECTED]
01206 873585


-Original Message-
From: Christian Kappler [mailto:[EMAIL PROTECTED] 
Sent: 14 April 2003 15:31
To: Cruickshanks, Darin; Perl-Win32-GUI Mailinglist
Subject: Re: [perl-win32-gui-users] Tabbing and Accelerator problems


Hello,

On Monday, April 14, 2003 3:30 PM, "Cruickshanks, Darin"
<[EMAIL PROTECTED]>
wrote:
>...
> The problem with the tabbing is that I cant get it to
> work at all, I have read the documentation that is
> available but I must be missing something.  Anyone got
> any ideas?

You will have to add "-tabstop => 1" for every control you want to to
and from. This should be enogh if the controls are part of a
Win32::GUI::DialogBox. If they are part of a Win32::GUI::Window in
addition you will have to do something like the following:

my $Window = new Win32::GUI::Window(%options); $Window->{-dialogui} = 1;

Regards,

  Christian





RE: [perl-win32-gui-users] Tabbing and Accelerator problems

2003-04-14 Thread Darrik Mazey
i may be wrong, but it was my understanding that tabbing, enter (the
"default" key) and esc (the "cancel" key) only work in dialog boxes and not
windows.  if you're trying to use these in windows, it won't work (and again
i defer to anyone with more knowledge saying otherwise).  in a dialog box,
tabbing is implemented using by setting the -tabstop option of controls to
1.  enter and esc can be worked by setting -default to 1 on a control (for
what to trigger on "enter") and -cancel to 1 on a control for what to
trigger for "esc".  in the documentation there's a -default AND a -ok, and i
don't know what the difference is.

as far as accelerators, it was my understanding that this did not currently
function at all.  anyone with more info or who got this to work?

hope this helps.

darrik

e.g.

$txtField=$dlgBox->AddTextfield(-name => "txtField",
-size => [ 100, 20 ],
-tabstop => 1,  
# <
);

$btnOK=$dlgBox->AddButton(  -name => "btnOK",
-text => "OK",
-default => 1,  
# <
);

$btnCancel=$dlgBox->AddButton(  -name => "btnCancel",
-text => "Cancel",
-cancel => 1,   
# <
);





[perl-win32-gui-users] while we're on the subject of tabbing / bugs / suggestions (were we?)...

2003-04-14 Thread Darrik Mazey
as a side note, while we're on the subject of tabbing, a -tabindex option
would be a nice accompaniment to the -tabstop option, to allow tabbing "out
of order," so to speak.  just a thought.

darrik