示例#1
0
 private void chatControl1_SendMessage(UnityForms.Control sender, UnityForms.ChatControl.ChatEventArgs e)
 {
     if (this.SendMessage != null)
     {
         this.SendMessage(sender, e);
     }
 }
示例#2
0
 // 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");
        }
示例#4
0
        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;
                }
            }
        }
示例#5
0
 public void ClearToolTip()
 {
     this.visible = false;
     this.control = null;
 }
示例#6
0
 public RadioButton(string text, Control parent)
     : base(text, parent)
 {
 }
示例#7
0
 public Label(string text, Control parent)
     : base(text, parent)
 {
 }
示例#8
0
 public ButtonBase(string text, Control parent)
     : base(text, parent)
 {
 }
示例#9
0
        internal void RemoveDictionaryControl(Control source)
        {
            string id = source.ID;

            if (this.controlDictionary.ContainsKey(id))
            {
                this.controlDictionary.Remove(id);
            }
        }
示例#10
0
 internal void AddDictionaryControl(Control source)
 {
     this.controlDictionary.Add(source.ID, source);
 }
示例#11
0
 public ControlEventArgs(Control control)
 {
     this.Control = control;
 }
示例#12
0
 /// <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();
 }