[perl-win32-gui-hackers] [CVS Commit] (again)

2003-12-04 Thread Steve Pick
Hi, In this episode: Hook(handle, msg, sub); or $win->Hook(msg, sub); Allows you to say "whenever the window receives this msg id, call the given subroutine with the msg's wParam and lParam as arguments". This basically infinitely expands the NEM to encapsulate any event you want. The sub given

Re: [perl-win32-gui-hackers] Proposition for NEM

2003-12-04 Thread Glenn Linderman
Well, well, well. Should I use the "great minds think alike" line? Or is this just so obviously a good idea that we both have thought of it? Clearly there are some well-defined events that need to have particular handling applied, and Win32::GUI needs to default to doing that handling. Clear

Re: [perl-win32-gui-hackers] Proposition for NEM

2003-12-04 Thread Steve Pick
Hi, Glad you think it's a good idea, because it's implemented now. I THINK i've stopped it crashing as well :) This is my first REAL bash at some new XS code instead of just fixing C bugs. So the fact that it works is pretty impressive. Anyway, it'll hit the CVS soon so keep your eyes peeled. Ste

[perl-win32-gui-hackers] Proposition for NEM

2003-12-04 Thread Steve Pick
Hello, Here's a nice idea: use Win32::GUI; my $win = new Win32::GUI::Window( -name => "Test", -left => 100, -top => 100, -width => 100, -height => 100, -onResize => \&Test_resize ); # Whenever we get WM_SETCURSOR, call perl sub setcursor with message parameters. $win->Hoo