fix: make panel and label have the same bgcolor as the owner

This commit is contained in:
qPCR4vir
2015-03-20 12:12:29 +01:00
parent e99ebc6e2e
commit aa14b38008
2 changed files with 6 additions and 0 deletions

View File

@@ -44,11 +44,13 @@ namespace nana
panel(window wd, bool visible)
{
this->create(wd, rectangle(), visible);
bgcolor(API::bgcolor(wd));
}
panel(window wd, const nana::rectangle& r = rectangle(), bool visible = true)
{
this->create(wd, r, visible);
bgcolor(API::bgcolor(wd));
}
bool transparent() const