group convenient return a reference to checkbox option

see widget_show2 for an example of convenience
This commit is contained in:
qPCR4vir
2016-02-15 18:29:40 +01:00
parent 1c05efcb81
commit 799b1206a1
2 changed files with 4 additions and 3 deletions

View File

@@ -103,7 +103,7 @@ namespace nana{
delete impl_->radio_logic;
}
group& group::add_option(std::string text)
checkbox& group::add_option(std::string text)
{
_THROW_IF_EMPTY()
@@ -118,7 +118,7 @@ namespace nana{
if (impl_->radio_logic)
impl_->radio_logic->add(*opt);
return *this;
return *impl_->options.back();
}
group& group::radio_mode(bool enable)