----- Original Message -----
From: "Philippe A. Bouchard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to