autoLayout: Added tests
[sdk] / autoLayout / tests / test4.ec
diff --git a/autoLayout/tests/test4.ec b/autoLayout/tests/test4.ec
new file mode 100644 (file)
index 0000000..2d1e507
--- /dev/null
@@ -0,0 +1,19 @@
+import "autoLayout"
+
+AutoLayoutForm form1 { contents = Elemental4 { }, clientSize = { 1024, 768 } };
+
+class Elemental4 : Col
+{
+   font = { "Verdana", 20, true };
+   bgColor = ivory;
+
+   Bar header { this, bgColor = blue };
+   Bar middle { this, bgColor = white };
+      Col col1 { middle, bgColor = lime };
+         Element e1 { col1, caption = "Foo", bgColor = gray, selfHAlignment = center, selfVAlignment = center };
+      Col col2 { middle, bgColor = skyBlue };
+         Element e2 { col2, caption = "Bar", bgColor = lightGray, selfHAlignment = center, selfVAlignment = center };
+      Col col3 { middle, bgColor = tomato };
+         Element e3 { col3, caption = "Third", bgColor = lightGray, selfHAlignment = center, selfVAlignment = center };
+   Bar footer { this, bgColor = red };
+}