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:
parent
8bdf4008fe
commit
aed75ba2f6
@ -85,12 +85,15 @@ Window::Window()
|
||||
|
||||
checkBox = new BCheckBox(rect.OffsetToCopy(15, 15), NULL, "Test 2", NULL);
|
||||
view->AddChild(checkBox);
|
||||
checkBox->SetViewColor(220, 170, 20);
|
||||
|
||||
rect.OffsetBy(0, 60);
|
||||
BBox *box = new BBox(rect.InsetByCopy(-15, -15), NULL);
|
||||
AddChild(box);
|
||||
|
||||
checkBox = new BCheckBox(rect.OffsetToCopy(15, 15), NULL, "Test 3", NULL);
|
||||
checkBox->SetViewColor(220, 170, 20);
|
||||
// is ignored...
|
||||
box->AddChild(checkBox);
|
||||
|
||||
rect.OffsetBy(0, 60);
|
||||
@ -126,12 +129,15 @@ Window::Window()
|
||||
|
||||
checkBox = new HCheckBox(rect.OffsetToCopy(15, 15), NULL, "Test 2", NULL);
|
||||
view->AddChild(checkBox);
|
||||
checkBox->SetViewColor(220, 170, 20);
|
||||
|
||||
rect.OffsetBy(0, 60);
|
||||
box = new BBox(rect.InsetByCopy(-15, -15), NULL);
|
||||
AddChild(box);
|
||||
|
||||
checkBox = new HCheckBox(rect.OffsetToCopy(15, 15), NULL, "Test 3", NULL);
|
||||
checkBox->SetViewColor(220, 170, 20);
|
||||
// is ignored...
|
||||
box->AddChild(checkBox);
|
||||
|
||||
rect.OffsetBy(0, 60);
|
||||
|
Loading…
Reference in New Issue
Block a user