Added a SetViewColor() before and after AttachedToWindow().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12502 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -85,12 +85,15 @@ Window::Window()
|
|||||||
|
|
||||||
checkBox = new BCheckBox(rect.OffsetToCopy(15, 15), NULL, "Test 2", NULL);
|
checkBox = new BCheckBox(rect.OffsetToCopy(15, 15), NULL, "Test 2", NULL);
|
||||||
view->AddChild(checkBox);
|
view->AddChild(checkBox);
|
||||||
|
checkBox->SetViewColor(220, 170, 20);
|
||||||
|
|
||||||
rect.OffsetBy(0, 60);
|
rect.OffsetBy(0, 60);
|
||||||
BBox *box = new BBox(rect.InsetByCopy(-15, -15), NULL);
|
BBox *box = new BBox(rect.InsetByCopy(-15, -15), NULL);
|
||||||
AddChild(box);
|
AddChild(box);
|
||||||
|
|
||||||
checkBox = new BCheckBox(rect.OffsetToCopy(15, 15), NULL, "Test 3", NULL);
|
checkBox = new BCheckBox(rect.OffsetToCopy(15, 15), NULL, "Test 3", NULL);
|
||||||
|
checkBox->SetViewColor(220, 170, 20);
|
||||||
|
// is ignored...
|
||||||
box->AddChild(checkBox);
|
box->AddChild(checkBox);
|
||||||
|
|
||||||
rect.OffsetBy(0, 60);
|
rect.OffsetBy(0, 60);
|
||||||
@@ -126,12 +129,15 @@ Window::Window()
|
|||||||
|
|
||||||
checkBox = new HCheckBox(rect.OffsetToCopy(15, 15), NULL, "Test 2", NULL);
|
checkBox = new HCheckBox(rect.OffsetToCopy(15, 15), NULL, "Test 2", NULL);
|
||||||
view->AddChild(checkBox);
|
view->AddChild(checkBox);
|
||||||
|
checkBox->SetViewColor(220, 170, 20);
|
||||||
|
|
||||||
rect.OffsetBy(0, 60);
|
rect.OffsetBy(0, 60);
|
||||||
box = new BBox(rect.InsetByCopy(-15, -15), NULL);
|
box = new BBox(rect.InsetByCopy(-15, -15), NULL);
|
||||||
AddChild(box);
|
AddChild(box);
|
||||||
|
|
||||||
checkBox = new HCheckBox(rect.OffsetToCopy(15, 15), NULL, "Test 3", NULL);
|
checkBox = new HCheckBox(rect.OffsetToCopy(15, 15), NULL, "Test 3", NULL);
|
||||||
|
checkBox->SetViewColor(220, 170, 20);
|
||||||
|
// is ignored...
|
||||||
box->AddChild(checkBox);
|
box->AddChild(checkBox);
|
||||||
|
|
||||||
rect.OffsetBy(0, 60);
|
rect.OffsetBy(0, 60);
|
||||||
|
|||||||
Reference in New Issue
Block a user