group convenient return a reference to checkbox option
see widget_show2 for an example of convenience
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user