Apologies, I haven't read your code yet, so I might have asked something obvious in the below. You are "on a roll" Laurent! It all sounds good!

On approximately 3/21/2004 11:02 AM, came the following characters from
the keyboard of Laurent ROCHER:

I continue my work on refactoring Win32::GUI code.
I have made lot of change :
  - Add some more methods for controls

Would this happen to include RightClick and DblRightClick ?

     Each event is fire by a unique DoEvent method (same concept DoEventNEM
with arglist).
     DoEvent handle NEM and OEM event call. (UEM?)

This sounds more efficient. UEM doesn't exist yet, it is what I named a concept that would seem to unify OEM, NEM, and Aldo's next generation event model.

I think the big interface change with Aldo's next generation event model was the addition of the window widget object reference as a parameter to the event sub. Neither OEM nor NEM passed that, so you can't add it easily without being incompatible. It would be useful, though, to have the object reference as a parameter but would require a new flag to indicate that the -on* and -event defined subs were expecting the new parameter (which should probably be the first parameter).

So I'm not sure if you should call your new DoEvent UEM quite yet, but it seems a good foundation step in that direction.

  - Try Write code for NotifyIcon and Accelerator NEM handling (not tested
yet)

Thanks, I'll take a look at this when I get a chance. Since I'd gone a certain distance in converting to NEM in my project, and didn't want to back-out all that code, I had actually implemented a couple "wrapper" functions that searched for -on* and -event, and processed them in Perl, using eval to create NAME_EVENT (OEM style) subs that call the NEM subs, and then eliminated those parameters (-on* and -event) from the calls to Win32::GUI, resulting in OEM. Well, the upshot is that I am using NEM style calls, and converting them to OEM on the fly, so I should be able to quickly flip-flop my application between using OEM and NEM. Which might help in my testing of your additions, if I get time to do that.

--
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