Boost logo

Boost :

From: brock (brock.peabody_at_[hidden])
Date: 2003-08-03 23:11:20


----- Original Message -----
From: "Philippe A. Bouchard" <philippe_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Sunday, August 03, 2003 9:33 PM
Subject: [boost] Re: Re: Re: Re: Re: Re: Re: Re: GUI/GDI template library

> brock wrote:
>
> [...]
>
> > What do you mean by "official macros"? The only macros in my code
> > are in
> > the implementation, you shouldn't see any in user code.
>
> Sorry I guess I have misinterpreted BEGIN_MESSAGE_MAP() in
> boost_gui_test.cpp.

Oh, that is auto generated MSVC 6 stuff.

[...]

> > If you're talking about message notifications, I use something like:
> >
> > struct window {
> >
> > void set_on_change(boost::funtion0<void>);
> >
> > void set_on_character_typed(boost::function1<void,char>);
> > };
>
> Is it possible to associate widget instances with functions?

Like with boost::bind?

   button b;
   edit e;

   button.set_on_pushed(boost::bind(&edit::disable_window, &e));

(This is not how my library class names looks now, but how they will when
rewritten)

Brock


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