示例#1
0
        public override void DrawContents()
        {
            SmartUI.Color   = Enabled ? Color : Color.gray;
            SmartUI.Enabled = this.Enabled;
            string newText = SmartUI.TextField(Frame, String.IsNullOrEmpty(Value) ? "" : Value, FontSize);

            SmartUI.Enabled = true;
            if (Editable && Enabled)
            {
                Value = newText;
            }
            SmartUI.Color = Color.white;
        }