public override Control GetControl() { JwVerticalLayout v = new JwVerticalLayout(); v.AddSolidBorder().AddLabel("one"); v.AddSolidBorder().AddLabel("two two"); v.AddSolidBorder().AddLabel("three three three"); v.AddSolidBorder().AddLabel("four four four four"); return v; }
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; }
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; }