Box CreateTestBox4() { VerticalStackBox vbox1 = new VerticalStackBox(); vbox1.AddChild(CreateTestBox3()); vbox1.AddChild(CreateTestBox3()); vbox1.Layout(); GlyphBox h_sepBar = NewGlyphBox(); h_sepBar.SetSize(vbox1.Width, 5); vbox1.Insert(1, h_sepBar); vbox1.Layout(); return(vbox1); }
Box CreateTestBox4_1() { VerticalStackBox vbox1 = new VerticalStackBox(); vbox1.AddChild(CreateTestBox3()); vbox1.AddChild(CreateTestBox3()); vbox1.Layout(); return(vbox1); }
Box CreateTestBox2() { VerticalStackBox vbox1 = new VerticalStackBox(); vbox1.AddChild(CreateTestBox1("Hello")); vbox1.AddChild(CreateTestBox1("Hello(3*2)")); vbox1.AddChild(CreateTestBox1("World[1+2]", 15)); vbox1.Layout(); return(vbox1); }