|
Boost : |
From: Philippe A. Bouchard (philippe_at_[hidden])
Date: 2003-08-03 23:49:02
brock wrote:
[...]
>> 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)
Looks a lot better this way IMO.
Philippe
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk