|
Boost : |
From: Bronek Kozicki (Brok_at_[hidden])
Date: 2003-07-28 04:37:35
Philippe A. Bouchard <philippe_at_[hidden]> wrote:
>> // ScrollViews, ButtonGroups, ListBox, ...:
>> typedef list<widget> container;
> struct container : list<widget> { ... };
>
Uh. I would not recommend inheriting from STL. I think that template
policies would be rather more appropriate solution:
typedef boost::gui::list<std::list<std::string>,
boost::gui::win32::listbox, boost::gui::fast_signals> mylistbox;
myWindow.create_widget<mylistbox>(myapp::ENUM_ID_LIST_OF_ITEMS,
boost::gui::position(30, 30));
myWindow(myapp::ENUM_ID_LISTOFITEMS).append(myData.begin(),
myData.end());
(just an idea)
B.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk