Пример #1
0
        protected override Control GetFreeTextBox()
        {
            if (_FreeTextEntryBox == null)
            {
                _FreeTextEntryBox = new FreeTextEntryBox();
                _FreeTextEntryBox.ApplyValue += ApplyFreeTextValue;
                _FreeTextEntryBox.RevertValue += RevertFreeTextValue;
                _FreeTextEntryBox.LostFocus += FreeTextLostFocus;
                _FreeTextEntryBox.IncreaseValue += FreeTextIncreaseValue;
                _FreeTextEntryBox.DecreaseValue += new EventHandler(FreeTextDecreaseValue);
                _FreeTextEntryBox.BorderStyle = BorderStyle.None;
                _FreeTextEntryBox.ReadOnly = !this.LockUpdateChecked;
                if (this.InputHorizontalAlignment == eHorizontalAlignment.Right)
                    _FreeTextEntryBox.TextAlign = HorizontalAlignment.Right;
                else if (this.InputHorizontalAlignment == eHorizontalAlignment.Center)
                    _FreeTextEntryBox.TextAlign = HorizontalAlignment.Center;
                else if (this.InputHorizontalAlignment == eHorizontalAlignment.Left)
                    _FreeTextEntryBox.TextAlign = HorizontalAlignment.Left;

                this.Controls.Add(_FreeTextEntryBox);
            }

            return _FreeTextEntryBox;
        }
Пример #2
0
 protected override Control GetFreeTextBox()
 {
     if (_FreeTextEntryBox == null)
     {
         _FreeTextEntryBox = new FreeTextEntryBox();
         _FreeTextEntryBox.ApplyValue += ApplyFreeTextValue;
         _FreeTextEntryBox.RevertValue += RevertFreeTextValue;
         _FreeTextEntryBox.LostFocus += FreeTextLostFocus;
         _FreeTextEntryBox.BorderStyle = BorderStyle.None;
         this.Controls.Add(_FreeTextEntryBox);
     }
     
     return _FreeTextEntryBox;
 }