Garrett Goebel wrote:
>I was wondering the proper way to extend the perl Win32 wrapper to add
>in handlers for BN_Pushed and BN_UnPushed. Also how to add in SetCapture
>and ReleaseCapture. 
>
>I had the chance to sit down with one of our more curious developers and
>try a go at adding the functionality ourselves.  -However, after making
>what looked to be the obvious modifications to GUI.xs... and doing a
>perl Makefile.PL, nmake, nmake install... GUI.pm worked, but the
>supposedly added handlers, etc. didn't.

hi Garrett,
I've made some searching and found the following:

1) for Push and Unpush, what you did seems correct but the button
must have the BS_NOTIFY style for these notifications to be trapped.
eg. you must create the button with this option:

-style => WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON | BS_NOTIFY

2) regarding SetCapture and ReleaseCapture, I didn't understand from
the docs how are they supposed to work, so I can't say much :-)
the XS portion is correct, however...
of course, I'll include it in the next build.

HTH.

Bye,
Aldo Calpini
<[EMAIL PROTECTED]>

 LIBERA ME DOMINE DE MORTE AETERNA
 IN DIE ILLA TREMENDA
 QUANDO COELI MOVENDI SUNT 
 ET TERRA




Reply via email to