On approximately 3/29/2004 12:39 PM, came the following characters from
the keyboard of Laurent ROCHER:

Hi all,

If i resume, Accelerator event implement could be :

1) if accelerator define like  : "key" => sub { } or "key" => \&mysub
  - Call this function with Window Self + accelerator name.

This one will clearly wind up being the fastest to locate and invoke, under NEM.

2) if accelerator define like : "Key" => "Name"
  - Find a window called "Name" in current window hierarchy and
call -onClick event if exist with Window Self .
  - Call Window -onClick event if exist with Self + Name (-acc is availlable
only for Window and Dialog so Click event isn't use for specific stuff).

Yes, -accel is only available for those two, but I could imagine other uses for Click event on the "white space" of a parent window. So that is why I suggested making a new "Accel" event, so one could specify -onAccel => sub {...}

  - Check for OEM Name_Click and call it if exist.

This last would only be done for OEM mode, and BOTH mode, I presume.

Of course we stop after first event call.

I think it's not too much difficult to do ;o)

More power to you!

Laurent.


Subject: Re: [perl-win32-gui-hackers] New Win32::GUI code in MAIN CVS.
Hi Laurent,

I'm excited about all the enhancements you are making to Win32::GUI
these days, can hardly wait to try them out!





--
Glenn -- http://nevcal.com/
===========================
The best part about procrastination is that you are never bored,
because you have all kinds of things that you should be doing.


Reply via email to