fix: make checkbox and label have the same bgcolor as the owner
This commit is contained in:
parent
aa14b38008
commit
10f35de8f7
@ -129,22 +129,26 @@ namespace checkbox
|
||||
checkbox::checkbox(window wd, bool visible)
|
||||
{
|
||||
create(wd, rectangle(), visible);
|
||||
bgcolor(API::bgcolor(wd));
|
||||
}
|
||||
|
||||
checkbox::checkbox(window wd, const nana::string& text, bool visible)
|
||||
{
|
||||
create(wd, rectangle(), visible);
|
||||
bgcolor(API::bgcolor(wd));
|
||||
caption(text);
|
||||
}
|
||||
|
||||
checkbox::checkbox(window wd, const nana::char_t* text, bool visible)
|
||||
{
|
||||
create(wd, rectangle(), visible);
|
||||
bgcolor(API::bgcolor(wd));
|
||||
caption(text);
|
||||
}
|
||||
|
||||
checkbox::checkbox(window wd, const nana::rectangle& r, bool visible)
|
||||
{
|
||||
bgcolor(API::bgcolor(wd));
|
||||
create(wd, r, visible);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user