示例#1
0
        public override Control GetControl()
        {
            JwLabel x;
            JwVerticalLayout e = new JwVerticalLayout();
            e.ControlWidth.BeEqual();
            e.AlignCenter();
            e.AlignMiddle();

            e.AddRaisedBorder().AddLabel("AcBevelBorder (raised)");
            e.AddLoweredBorder().AddLabel("AcBevelBorder (lowered)");
            x = e.AddRaisedBorder().AddLabel("AcBevelBorder (toggle)");
            x.MouseUp   += new MouseEventHandler(Label_MouseUp);
            x.MouseDown += new MouseEventHandler(Label_MouseDown);

            e.AddGap(20);
            e.AddThinRaisedBorder().AddLabel("AcThinBevelBorder (raised)");
            e.AddThinLoweredBorder().AddLabel("AcThinBevelBorder (lowered)");
            x = e.AddThinRaisedBorder().AddLabel("AcThinBevelBorder (toggle)");
            x.MouseUp   += new MouseEventHandler(Label_MouseUp);
            x.MouseDown += new MouseEventHandler(Label_MouseDown);

            e.AddGap(20);
            e.AddSolidBorder(3, Color.Red).AddEmptyBorder(5).AddSolidBorder().AddLabel("solid + empty + solid(3, red)");

            return e;
        }