Boost logo

Boost :

From: Bohdan (gejrlaug_at_[hidden])
Date: 2003-08-10 11:56:16


"John Torjo" <john.lists_at_[hidden]> wrote in message
news:200308101119.h7ABJcn14012_at_softxp.rdsbv.ro...
>
> Eugene,
> one more thing when you implement the GUI library.
>
> I ALWAYS hated the message maps from MFC/WTL.
> So now I came up with a quite cute method of automating registering of events
for a given window.
>
> (this should work for registering messages, etc.)
>
> It's very flexible. In other words, when you add an event for wnd_widget,
> it does not couple the header file wnd_widget.h to the resource file (think
MFC
> for a moment ;) ) So, in case you modify the ID of a resource, all
> you have to do is recompile the source file (wnd_widget.cpp), not the whole
files
> depending on wnd_widget.h.
<snip>

AFAIK, some gui toolkits use not event, but callback system.
IMHO it is more evective. Definitely it should be discussed
carefully.

regatds,
bohdan


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk