add scheme and caption alignment to group widget.

This commit is contained in:
Jinhao
2018-06-12 03:03:40 +08:00
parent fc7743cbe2
commit e47f545b4d
3 changed files with 58 additions and 9 deletions

View File

@@ -22,8 +22,20 @@
#include <nana/gui/widgets/checkbox.hpp>
namespace nana{
namespace drawerbase
{
namespace group
{
struct scheme : public nana::widget_geometrics
{
color_proxy border{ colors::gray_border };
};
}// end namespace panel
}//end namespace drawerbase
class group
: public panel<true>
: public widget_object<category::widget_tag, drawerbase::panel::drawer, general_events, drawerbase::group::scheme>
{
struct implement;
public:
@@ -53,6 +65,9 @@ namespace nana{
/// Adds an option for user selection
checkbox& add_option(::std::string);
/// Modifies the alignment of the title
void caption_align(align position);
/// Enables/disables the radio mode which is single selection
group& radio_mode(bool);