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() { JwVerticalLayout e; e = new JwVerticalLayout(); e.ControlWidth.BeFill(); e.AddLabel("left").AlignLeft(); e.AddLabel("center").AlignCenter(); e.AddLabel("right").AlignRight(); return e; }
public override Control GetControl() { JwVerticalLayout v = new JwVerticalLayout(); v.AddLabel("line one"); v.AddLabel("line two"); v.AddLabel("line three... and some extra text."); v.AddLabel("line four"); JwVerticalLayout p = new JwVerticalLayout(); p.Add(v); return p; }