[perl-win32-gui-users] Window -style parameters

2001-11-01 Thread Marcus
Is there documentation on the Window -style parameters?
I couldn't find any. I took a sample program and tried out parameters,
but they still aren't clear. This is what I mean:

>From pmx.gpl:

 -style   => WS_BORDER 
  | DS_MODALFRAME 
  | WS_POPUP 
  | WS_CAPTION 
  | WS_SYSMENU,
-exstyle => WS_EX_DLGMODALFRAME 
  | WS_EX_WINDOWEDGE 
  | WS_EX_CONTEXTHELP 
  | WS_EX_CONTROLPARENT,


Thanks,

Marcus






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

2001-11-01 Thread Kevin . ADM-Gibbs
Johan,

Thanks very much.

 -name => "Packagename::Controlname"

works and is much simpler than changing the XS code.

Cheers,

Kev.





Johan Lindstrom <[EMAIL PROTECTED]> 

Sent by:  To: 
Perl-Win32-GUI-Users@lists.sourceforge.net
[EMAIL PROTECTED]cc:
   
eforge.netSubject: 
Re: [perl-win32-gui-users] GUI event handling in Modules 




31/10/2001 15:30









At 12:58 2001-10-31 +, [EMAIL PROTECTED] wrote:
>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 within the namespace of the package?

-name => "Packagename::Controlname"

should work, but I have never tried it because of the obvious problems with
accessing the control it would impose.


/J

--  --- -- -- -- -  -   ---
Johan LindströmBoss Casinos
Sourcerer [EMAIL PROTECTED]
  http://www.bahnhof.se/~johanl/
If the only tool you have is a hammer,
everything tends to look
like a nail



___
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] Window -style parameters

2001-11-01 Thread Peter Eisengrein
Someone just recently sent a link to
http://www.mvps.org/vbnet/index.html?http://www.mvps.org/vbnet/api/_consts/c
onstso.htm which defines all of these Windoze constants. 

I wish I could remember who posted it so I could give them credit, but, like
everything else, I forget... 




> -Original Message-
> From: Marcus [mailto:[EMAIL PROTECTED]
> Sent: 01 November 2001 05:27
> To: perl-win32-gui-users@lists.sourceforge.net
> Subject: [perl-win32-gui-users] Window -style parameters
> 
> 
> Is there documentation on the Window -style parameters?
> I couldn't find any. I took a sample program and tried out parameters,
> but they still aren't clear. This is what I mean:
> 
> From pmx.gpl:
> 
>  -style   => WS_BORDER 
>   | DS_MODALFRAME 
>   | WS_POPUP 
>   | WS_CAPTION 
>   | WS_SYSMENU,
> -exstyle => WS_EX_DLGMODALFRAME 
>   | WS_EX_WINDOWEDGE 
>   | WS_EX_CONTEXTHELP 
>   | WS_EX_CONTROLPARENT,
> 
> 
> Thanks,
> 
> Marcus
> 
> 
> 
> 
> ___
> Perl-Win32-GUI-Users mailing list
> Perl-Win32-GUI-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
> 



[perl-win32-gui-users] Help on Win32::GUI

2001-11-01 Thread Johannes Gamperl
Hello,

does anyone know how to get a link on on a RichEdit-Field on
win32::gui to work? Any examples  ?

the next problem i have is that i would like to show a icon in the
system tray on hiding my window. when i click on the icon in the tray
the window should show again ... this works fine, but only for one
time .. the next time my window are closed .. any ideas?

thx a lot ...
Hannes

  

-- 
Johannes Gamperl  mailto:[EMAIL PROTECTED]





[perl-win32-gui-users] Help on Win32::GUI

2001-11-01 Thread Johannes Gamperl
Hello,

does anyone know how to get a link on on a RichEdit-Field on
win32::gui to work? Any examples  ?

the next problem i have is that i would like to show a icon in the
system tray on hiding my window. when i click on the icon in the tray
the window should show again ... this works fine, but only for one
time .. the next time my window are closed .. any ideas?

thx a lot ...
Hannes

  

-- 
Johannes Gamperl 





Re: [perl-win32-gui-users] Window -style parameters

2001-11-01 Thread Johan Lindstrom

At 10:35 2001-11-01 -0500, Peter Eisengrein wrote:

I wish I could remember who posted it so I could give them credit, but, like
everything else, I forget...


* cough *

:)

The actual meaning of the contants is better documented here:

CreateWindow (-style):


CreateWindowEx (-exstyle):



/J

--  --- -- -- -- -  -   ---
Johan LindströmBoss Casinos
Sourcerer [EMAIL PROTECTED]
 http://www.bahnhof.se/~johanl/
If the only tool you have is a hammer,
everything tends to look
like a nail 






Re: [perl-win32-gui-users] Help on Win32::GUI

2001-11-01 Thread Johan Lindstrom

At 21:57 2001-11-01 +0100, Johannes Gamperl wrote:

the next problem i have is that i would like to show a icon in the
system tray on hiding my window. when i click on the icon in the tray
the window should show again ... this works fine, but only for one
time .. the next time my window are closed .. any ideas?


Sounds like you destroy your window when you close it instead of just 
hiding it.


the Terminate event handler for the window should Hide() the window, then 
return 0 so the destruction is never carried out (0 blocks the "normal 
thing for the event" from happening).


This is working code from a tray icon script of mine:


=head2 winRegexpS_Terminate()

Hide window, don't destroy it.

=cut
sub ::winRegexpS_Terminate { defined(my $win = 
$Win32::GUI::Loft::window{winRegexpS}) or return(1);


$win->Hide();

return(0);
}


/J

--  --- -- -- -- -  -   ---
Johan LindströmBoss Casinos
Sourcerer [EMAIL PROTECTED]
 http://www.bahnhof.se/~johanl/
If the only tool you have is a hammer,
everything tends to look
like a nail 






Re: [perl-win32-gui-users] Help on Win32::GUI

2001-11-01 Thread Johan Lindstrom

At 21:57 2001-11-01 +0100, Johannes Gamperl wrote:

the next problem i have is that i would like to show a icon in the
system tray on hiding my window. when i click on the icon in the tray
the window should show again ... this works fine, but only for one
time .. the next time my window are closed .. any ideas?


Sounds like you destroy your window when you close it instead of just 
hiding it.


the Terminate event handler for the window should Hide() the window, then 
return 0 so the destruction is never carried out (0 blocks the "normal 
thing for the event" from happening).


This is working code from a tray icon script of mine:


=head2 winRegexpS_Terminate()

Hide window, don't destroy it.

=cut
sub ::winRegexpS_Terminate { defined(my $win = 
$Win32::GUI::Loft::window{winRegexpS}) or return(1);


$win->Hide();

return(0);
}


/J

--  --- -- -- -- -  -   ---
Johan LindströmBoss Casinos
Sourcerer [EMAIL PROTECTED]
 http://www.bahnhof.se/~johanl/
If the only tool you have is a hammer,
everything tends to look
like a nail