Exemplo n.º 1
0
        public override Control GetControl()
        {
            JwVerticalLayout e = new JwVerticalLayout();

            JwHorizontalLayout h;
            JwVerticalLayout v;

            // first box
            v = new JwVerticalLayout();

            h = new JwHorizontalLayout();
            h.AddSolidBorder().AddLabel("one");
            h.AddSolidBorder().AddLabel("two");
            h.AddSolidBorder().AddLabel("three");
            v.AddSolidBorder(2, Color.Red).Add(h);

            h = new JwHorizontalLayout();
            h.AddSolidBorder().AddLabel("orange");
            h.AddSolidBorder().AddLabel("yellow");
            h.AddSolidBorder().AddLabel("blue");
            h.AddSolidBorder().AddLabel("green");
            h.AddSolidBorder().AddLabel("red");
            v.AddSolidBorder(2, Color.Red).Add(h);

            h = new JwHorizontalLayout();
            h.AddSolidBorder().AddLabel("kitten");
            h.AddSolidBorder().AddLabel("mouse");
            h.AddSolidBorder().AddLabel("rabbit");
            v.AddSolidBorder(2, Color.Red).Add(h);

            e.AddSolidBorder(2, Color.Blue).Add(v);

            // second box
            v = new JwVerticalLayout();
            //            v.FillWidth = true;

            h = new JwHorizontalLayout();
            h.AlignCenter();
            h.AddSolidBorder().AddLabel("one");
            h.AddSolidBorder().AddLabel("two");
            h.AddSolidBorder().AddLabel("three");
            v.AddSolidBorder(2, Color.Red).Add(h);

            h = new JwHorizontalLayout();
            h.AddSolidBorder().AddLabel("orange");
            h.AddSolidBorder().AddLabel("yellow");
            h.AddSolidBorder().AddLabel("blue");
            h.AddSolidBorder().AddLabel("green");
            h.AddSolidBorder().AddLabel("red");
            v.AddSolidBorder(2, Color.Red).Add(h);

            h = new JwHorizontalLayout();
            h.AlignRight();
            h.AddSolidBorder().AddLabel("kitten");
            h.AddSolidBorder().AddLabel("mouse");
            h.AddSolidBorder().AddLabel("rabbit");
            v.AddSolidBorder(2, Color.Red).Add(h);

            e.AddSolidBorder(2, Color.Blue).Add(v);

            return e;
        }