private void chatControl1_SendMessage(UnityForms.Control sender, UnityForms.ChatControl.ChatEventArgs e) { if (this.SendMessage != null) { this.SendMessage(sender, e); } }
// eliminar esto public void RaiseButtonClickEvent(Control source, MouseButton button, int index) { if (this.ButtonClick != null) { this.ButtonClick(source, new ToolClickEventArgs(button, this, index)); } }
public override Control Add(Control control) { if (control is ToolButton) { return base.Add(control); } throw new ArgumentException("the control must be a ToolButton", "control"); }
public void ShowToolTip(Control control) { if (control != null && this.control != control) { this.control = control; this.visible = control.ShowToolTip && !string.IsNullOrEmpty(control.ToolTip); this.showTime = Time.time; this.labelSize = this.Skin.box.CalcSize(new GUIContent(control.ToolTip)); if (this.labelSize.x < this.minWidth) { this.labelSize.x = this.minWidth; } } }
public void ClearToolTip() { this.visible = false; this.control = null; }
public RadioButton(string text, Control parent) : base(text, parent) { }
public Label(string text, Control parent) : base(text, parent) { }
public ButtonBase(string text, Control parent) : base(text, parent) { }
internal void RemoveDictionaryControl(Control source) { string id = source.ID; if (this.controlDictionary.ContainsKey(id)) { this.controlDictionary.Remove(id); } }
internal void AddDictionaryControl(Control source) { this.controlDictionary.Add(source.ID, source); }
public ControlEventArgs(Control control) { this.Control = control; }
/// <summary> /// Begins a drag-and-drop operation. /// </summary> /// <remarks> /// The allowedEffects parameter determines which drag operations can /// occur. If the drag operation needs to interoperate with applications in /// another process, data should either be a base managed class (String, Bitmap, /// or Metafile), or an object that implements ISerializable or IDataObject. /// </remarks> /// <param name="data"> /// The control to drag. /// </param> /// <param name="allowedEffects"> /// One of the DragDropEffects values. /// </param> /// <returns> /// A value from the DragDropEffects enumeration that represents the /// final effect that was performed during the drag-and-drop operation. /// </returns> public DragDropEffects DoDragDrop(Control data, DragDropEffects allowedEffects) { throw new NotImplementedException(); }