Add a test to show that #2509 is not reproductible.
This commit is contained in:
@@ -46,6 +46,11 @@ Window::Window()
|
|||||||
fTextControl = new BTextControl("text-contr-O",
|
fTextControl = new BTextControl("text-contr-O",
|
||||||
"a single line of text - (c) Conglom-O", NULL);
|
"a single line of text - (c) Conglom-O", NULL);
|
||||||
|
|
||||||
|
BMessage storage;
|
||||||
|
fTextControl->Archive(&storage);
|
||||||
|
|
||||||
|
BTextControl* unarchived = new BTextControl(&storage);
|
||||||
|
|
||||||
BTextControl* disabled = new BTextControl("disabled",
|
BTextControl* disabled = new BTextControl("disabled",
|
||||||
"I'm disabled: you can't edit me", NULL);
|
"I'm disabled: you can't edit me", NULL);
|
||||||
disabled->SetEnabled(false);
|
disabled->SetEnabled(false);
|
||||||
@@ -60,6 +65,7 @@ Window::Window()
|
|||||||
SetLayout(new BGroupLayout(B_HORIZONTAL));
|
SetLayout(new BGroupLayout(B_HORIZONTAL));
|
||||||
AddChild(BGroupLayoutBuilder(B_VERTICAL, 10)
|
AddChild(BGroupLayoutBuilder(B_VERTICAL, 10)
|
||||||
.Add(fTextControl)
|
.Add(fTextControl)
|
||||||
|
.Add(unarchived)
|
||||||
.Add(disabled)
|
.Add(disabled)
|
||||||
.Add(invalid)
|
.Add(invalid)
|
||||||
.Add(scrollView)
|
.Add(scrollView)
|
||||||
|
|||||||
Reference in New Issue
Block a user