kosenko / ui

Boost.UI library
266 stars 18 forks source link

Fixed strange wxCHECK in widget.append #6

Closed devsaider closed 5 years ago

devsaider commented 5 years ago

I'm not actually sure what original line meant

kosenko commented 5 years ago

If you want to add one widget to an other one you should pass parent widget as a first argument to child widget constructor. Adding using widget::append() isn't fully supported yet, experimentally could work only with boost::ui::label while this widgets isn't created yet.

kosenko commented 5 years ago

I have added description message to checks and assertions, they should be more clear from now.