From 2a262236288c15410382744122bac2e179970f6d Mon Sep 17 00:00:00 2001 From: Jinhao Date: Mon, 22 Jan 2018 06:29:40 +0800 Subject: [PATCH] small fix for constructor of scroll --- include/nana/gui/widgets/scroll.hpp | 2 +- include/nana/gui/widgets/tabbar.hpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/nana/gui/widgets/scroll.hpp b/include/nana/gui/widgets/scroll.hpp index c4e39981..0603c308 100644 --- a/include/nana/gui/widgets/scroll.hpp +++ b/include/nana/gui/widgets/scroll.hpp @@ -398,7 +398,7 @@ namespace nana /// \brief The construct that creates a widget. /// @param wd A handle to the parent window of the widget being created. /// @param visible specify the visibility after creation. - scroll(window wd, bool visible) + scroll(window wd, bool visible = true) { this->create(wd, rectangle(), visible); // add a widget scheme? and take some colors from these wd? } diff --git a/include/nana/gui/widgets/tabbar.hpp b/include/nana/gui/widgets/tabbar.hpp index e0d56f1a..a24cce4a 100644 --- a/include/nana/gui/widgets/tabbar.hpp +++ b/include/nana/gui/widgets/tabbar.hpp @@ -276,7 +276,7 @@ namespace nana this->get_drawer_trigger().insert(::nana::npos, to_nstring(std::move(text)), std::move(value)); if (attach_wd) this->attach(this->get_drawer_trigger().length() - 1, attach_wd); - + API::update_window(*this); return *this; } @@ -305,7 +305,7 @@ namespace nana API::update_window(*this); } - /// Attach a window to a specified tab. When the tab is activated, tabbar shows the attached window. + /// Attach a window to a specified tab. When the tab is activated, tabbar shows the attached window. /** * @param pos The position of tab to set the attached window. * @param attach_wd A handle to the window to be set. @@ -363,7 +363,7 @@ namespace nana namespace nana -{ +{ namespace drawerbase { namespace tabbar_lite