wTextBox.cs
using System; using System.Drawing; using System.Windows.Forms; public class WTextBox : WCtrl { TextBox text; public WTextBox(int size) : base(size) { ctrl = text = new TextBox(); SetFontSize(size); anchorAll(); dockFill(); text.Multiline = false; text.ScrollBars = ScrollBars.Both; text.WordWrap = false; text.AcceptsReturn = true; text.AcceptsTab = true; text.Show(); } public WTextBox() : this(0) {} public void clearText() { text.Text = ""; } public void addText(String s) { text.Text += s; } public void enableMultiLine() { text.Multiline = true; } public void enableWordWrap() { text.WordWrap = true; } public void enableScrollBar() { text.ScrollBars = ScrollBars.Both; } public void enableDrop() { text.AllowDrop = true; } }
댓글 없음:
댓글 쓰기