Exemple #1
0
 /// <summary> Initializes an new instance of an ExtendedTextBox. </summary>
 /// <extdoc href="..\..\..\..\Docs\DAE.Client.Controls\DBTextBox.dxd"/>
 public ExtendedTextBox() : base()
 {
     CausesValidation                = false;
     _valueBackColor                 = BackColor;
     _readOnlyBackColor              = SystemColors.InactiveBorder;
     _widthRange                     = new WidthRange(this);
     _widthRange.OnUpdateWidth      += new EventHandler(WidthRangeUpdate);
     _widthRange.OnInternalSetWidth += new InternalSetWidthEventHandler(InternalSetWidth);
     _widthRange.OnMeasureWidth     += new MeasureWidthEventHandler(MeasureWidth);
 }
Exemple #2
0
 /// <summary> Initializes a new instance of a DBText control. </summary>
 /// <extdoc href="..\..\..\..\Docs\DAE.Client.Controls\DBText.dxd"/>
 public DBText() : base()
 {
     SetStyle(ControlStyles.SupportsTransparentBackColor, true);
     SetStyle(ControlStyles.UserPaint, true);
     CausesValidation                = false;
     _link                           = new FieldDataLink();
     _link.OnFieldChanged           += new DataLinkFieldHandler(FieldChanged);
     AutoSize                        = false;
     _widthRange                     = new WidthRange(this);
     _widthRange.OnInternalSetWidth += new InternalSetWidthEventHandler(InternalSetWidth);
     _widthRange.OnMeasureWidth     += new MeasureWidthEventHandler(MeasureWidth);
     ForeColor                       = Color.Navy;
 }