Re: [win32gui] RE: [perl-win32-gui-hackers] T_HANDLE in the typemap

2005-10-31 Thread Jeremy White
Jeremy White wrote: Just done some performance testing with this type map: if(SvROK($arg)) { SV** out=hv_fetch((HV*)SvRV($arg), \"-handle\", 7, 0); if(out != NULL) $var = ($type) SvIV(*out); else $var = NULL; } else $var = ($type) SvIV($arg

Re: [win32gui] Re: [perl-win32-gui-hackers] GUI_Events.cpp/DoEvent correct behaviour?

2005-10-31 Thread Jeremy White
There are two main reasons to use SetEvent: 1) To add NEM events to windows/controls after they have been created - perhaps by a 3rd party tool (such as Loft) which isn't NEM aware. 2) To change the event handlers during runtime. In both cases, the expectation should be that the control is now

Re: [win32gui] Re: [perl-win32-gui-hackers] Missing SW_* constants

2005-10-31 Thread Jeremy White
My 2 cents. SW_* constants are not defined in GUI_constants.cpp (nor exported in GUI.pm). In general there are many constants missing. Constant handling is, and will be a pain to get right. Personally, I don't like the way Win32::GUI exports all it's constants by default - it's a huge waste

Re: [win32gui] RE: [perl-win32-gui-hackers] T_HANDLE in the typemap

2005-10-31 Thread Robert May
Jeremy White wrote: Jeremy White wrote: Just done some performance testing with this type map: if(SvROK($arg)) { SV** out=hv_fetch((HV*)SvRV($arg), \"-handle\", 7, 0); if(out != NULL) $var = ($type) SvIV(*out); else $var = NULL; } else $v

Re: [win32gui] Re: [perl-win32-gui-hackers] Missing SW_* constants

2005-10-31 Thread Robert May
Jeremy White wrote: My 2 cents. SW_* constants are not defined in GUI_constants.cpp (nor exported in GUI.pm). In general there are many constants missing. Constant handling is, and will be a pain to get right. See below. Personally, I don't like the way Win32::GUI exports all it's consta

Re: [win32gui] Re: [perl-win32-gui-hackers] GUI_Events.cpp/DoEvent correct behaviour?

2005-10-31 Thread Robert May
Jeremy White wrote: There are two main reasons to use SetEvent: 1) To add NEM events to windows/controls after they have been created - perhaps by a 3rd party tool (such as Loft) which isn't NEM aware. 2) To change the event handlers during runtime. In both cases, the expectation should be th