Jake Skinner wrote:
> Hi all
>
> Is it possible to add custom events to a Win32::GUI
> object?
practically, not.
events are managed by a C function which looks up things,
decides what to do and eventually fires perl subs.
the main reason because this is coded in C, and not easily
extensible in Perl, is one word long: speed.
for decent user interactivity, you obviously need to
react to events at fast as you can.
but there is an half-smart way of doing what you would
like to do: you can write your own message loop routine
in C and use it instead of the Win32::GUI standard one;
you simply have to register a different window class
(eg. a Win32::GUI::Class object) and associate it
with your windows. of course, you need to add
appropriate coding to the RegisterClassEx() XS routine.
> Any thoughts or suggestions would be most welcome -
> including getting the source code and putting it in
> myself.
feel free, and consider yourself encouraged, to do this.
cheers,
Aldo
__END__
$_=q,just perl,,s, , another ,,s,$, hacker,,print;