示例#1
0
        internal static GnosisTextField CreateGnosisTextField(int order)
        {
            GnosisTextField textField = new GnosisTextField();

            textField.ID          = GlobalData.Singleton.GetNewControlID();
            textField.GnosisName  = "Text Field" + textField.ID.ToString();
            textField.Order       = order;
            textField.ControlType = ControlTypeMapping.GetControlTypeName(typeof(GnosisTextField));

            return(textField);
        }
        //public double PaddingVertical
        //{
        //    get { return paddingVertical; }
        //    set { paddingVertical = value; }
        //}


        public GnosisTextFieldController(
            GnosisTextField textField,
            //   IGnosisTextFieldImplementation textFieldImplementation,
            GnosisInstanceController instanceController,
            GnosisInnerLayoutController parent)
            : base(textField, instanceController, parent)
        {
            SetDisplayDimensions();
            textField.SetTextChangedHandler(new Action <string>(TextChanged));
            numLines = 1;

            //textField.SetVerticalAlignment(VerticalAlignmentType.TOP)

            //if (textField > 0)
            //{
            //    textFieldImplementation.SetMaxChars(MaxChars);
            //}

            //if (textField.ReadOnly)
            //{
            //    textFieldImplementation.Locked = true;
            //}
        }