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

            v = new JwVerticalLayout();
            v.BackColor = Color.Yellow;
            //            v.AddLabel("five").UseParentBackColor = false;
            //            v.AddLabel("ten").UseParentBackColor = false;
            //            v.AddLabel("twenty").UseParentBackColor = false;

            v.AddLabel("five");
            v.AddLabel("ten");
            v.AddLabel("twenty");

            h.Add(v);

            v = new JwVerticalLayout();
            v.BackColor = Color.Green;
            v.SetPreferredSize(new Size(75, 100));
            //            v.AddLabel("five").UseParentBackColor = false;
            //            v.AddLabel("ten").UseParentBackColor = false;
            //            v.AddLabel("twenty").UseParentBackColor = false;

            v.AddLabel("five");
            v.AddLabel("ten");
            v.AddLabel("twenty");

            h.Add(v);

            return h;
        }
        public override Control GetControl()
        {
            JwRowLayout c = new JwRowLayout();
            JwVerticalLayout v;

            v = new JwVerticalLayout();
            v.SetPreferredSize(60, 200);
            v.AddGap(10, Color.Red);
            v.AddGap(30, Color.Green);
            v.AddGap(50, Color.Blue);
            c.AddLabel("default");
            c.AddSolidBorder().Add(v);

            v = new JwVerticalLayout();
            v.SetPreferredSize(60, 200);
            v.AlignCenter();
            v.AddGap(10, Color.Red);
            v.AddGap(30, Color.Green);
            v.AddGap(50, Color.Blue);
            c.AddLabel("align center");
            c.AddSolidBorder().Add(v);

            v = new JwVerticalLayout();
            v.SetPreferredSize(60, 200);
            v.AlignRight();
            v.AddGap(10, Color.Red);
            v.AddGap(30, Color.Green);
            v.AddGap(50, Color.Blue);
            c.AddLabel("align right");
            c.AddSolidBorder().Add(v);

            v = new JwVerticalLayout();
            v.SetPreferredSize(60, 200);
            v.AlignBottom();
            v.AddGap(10, Color.Red);
            v.AddGap(30, Color.Green);
            v.AddGap(50, Color.Blue);
            c.AddLabel("align bottom");
            c.AddSolidBorder().Add(v);

            JwVerticalLayout e;
            e = new JwVerticalLayout();
            e.Add(c);
            return e;
        }
        public override Control GetControl()
        {
            JwRowLayout c = new JwRowLayout();
            JwVerticalLayout v;

            v = new JwVerticalLayout();
            v.SetPreferredSize(60, 200);
            v.AddGap(10, Color.Red);
            v.AddGap(30, Color.Green);
            v.AddGap(50, Color.Blue);
            c.AddLabel("default");
            c.AddSolidBorder().Add(v);

            v = new JwVerticalLayout();
            v.SetPreferredSize(60, 200);
            v.ControlWidth.BeFill();
            v.AddGap(10, Color.Red);
            v.AddGap(30, Color.Green);
            v.AddGap(50, Color.Blue);
            c.AddLabel("fill width");
            c.AddSolidBorder().Add(v);

            v = new JwVerticalLayout();
            v.SetPreferredSize(60, 200);
            v.ControlHeight.BeFill();
            v.AddGap(10, Color.Red);
            v.AddGap(30, Color.Green);
            v.AddGap(50, Color.Blue);
            c.AddLabel("fill height");
            c.AddSolidBorder().Add(v);

            JwVerticalLayout e;
            e = new JwVerticalLayout();
            e.Add(c);
            return e;
        }