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

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