Exemple #1
0
 /// <summary>
 /// Add a label to this control
 /// </summary>
 /// <param name="text">The text of the label</param>
 /// <param name="d">The distance between the label and the control</param>
 /// <param name="moveCtrl">Whether the control should be moved or not</param>
 /// <param name="labelWidth">The width of the label. Set to 0 to keep the original width</param>
 public void AddLabel(string text, int d = Btn.distance, bool moveCtrl = true, int labelWidth = 0)
 {
     if (this.Label != null)
     {
         this.Parent.Controls.Remove(this.Label);
     }
     this.Label = Btn.AddLabel(this, text, d, moveCtrl, labelWidth);
 }