wFlow.cs
using System; using System.Drawing; using System.Windows.Forms; public class WFlow : WCtrl { FlowLayoutPanel flow; public WFlow(bool vert) { ctrl = flow = new FlowLayoutPanel(); flow.AutoScroll = false; flow.AutoSize = true; flow.BorderStyle = BorderStyle.FixedSingle; if( vert ) { flow.FlowDirection = FlowDirection.TopDown; } else { flow.FlowDirection = FlowDirection.LeftToRight; } //anchorAll(); dockFill(); } public WFlow() : this(false) {} /* public void Add(Control ctl) { flow.Controls.Add(ctl); flow.BringToBack(); } */ public void SetBorderStyleNone() { flow.BorderStyle = BorderStyle.None; } public void SetBorderStyleLine() { flow.BorderStyle = BorderStyle.FixedSingle; } public void SetBorderStyle3D() { flow.BorderStyle = BorderStyle.Fixed3D; } }
댓글 없음:
댓글 쓰기