more toolbar improvement.

This commit is contained in:
Karim Mribti 2016-01-24 15:04:36 +01:00
parent c20eb357af
commit bfc775c5e0
2 changed files with 6 additions and 4 deletions

View File

@ -83,8 +83,8 @@ namespace nana
using size_type = std::size_t; ///< A type to count the number of elements.
toolbar() = default;
toolbar(window, bool visible);
toolbar(window, const rectangle& = rectangle(), bool visible = true);
toolbar(window, bool visible, bool detached=false);
toolbar(window, const rectangle& = rectangle(), bool visible = true, bool detached = false);
void separate(); ///< Adds a separator.
void append(const ::std::string& text, const nana::paint::image& img); ///< Adds a control button.

View File

@ -418,12 +418,14 @@ namespace nana
}//end namespace drawerbase
//class toolbar
toolbar::toolbar(window wd, bool visible)
toolbar::toolbar(window wd, bool visible, bool detached) :
detached_(detached)
{
create(wd, rectangle(), visible);
}
toolbar::toolbar(window wd, const rectangle& r, bool visible)
toolbar::toolbar(window wd, const rectangle& r, bool visible, bool detached) :
detached_(detached)
{
create(wd, r, visible);
}