ui/wpf/UIcore/TextArea.cs

changeset 108
77254bd6dccb
parent 107
b34bd1557c6c
child 109
c3dfcb8f0be7
--- a/ui/wpf/UIcore/TextArea.cs	Sat Apr 05 17:57:04 2025 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,79 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace UI
-{
-    public class TextArea : System.Windows.Controls.TextBox
-    {
-        public TextArea(Container container, String text, bool textarea) : base()
-        {
-            bool fill = false;
-            if (textarea)
-            {
-                AcceptsReturn = true;
-                IsUndoEnabled = false; // we need our own undo stack
-                VerticalScrollBarVisibility = System.Windows.Controls.ScrollBarVisibility.Auto;
-                HorizontalScrollBarVisibility = System.Windows.Controls.ScrollBarVisibility.Auto;
-                fill = true;
-            }
-            else
-            {
-                HorizontalScrollBarVisibility = System.Windows.Controls.ScrollBarVisibility.Auto;
-                MinWidth = 15;
-            }
-
-            if (text != null)
-            {
-                Text = text;
-            }
-
-            container.Add(this, fill);
-        }
-
-
-        // ------------------ UiText methods ------------------
-
-        public void SetText(String str)
-        {
-            Text = str;
-        }
-
-        public String GetText()
-        {
-            return Text;
-        }
-
-        public String GetSubString(int begin, int end)
-        {
-            return null;
-        }
-
-        public void Insert(int pos, String str)
-        {
-
-        }
-
-        public int Position()
-        {
-            return CaretIndex;
-        }
-
-        public int Selection()
-        {
-            return 0;
-        }
-
-        public int Length()
-        {
-            return Text.Length;
-        }
-
-        public void Remove(int begin, int end)
-        {
-
-        }
-    }
-}

mercurial