예제 #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
파일: Label.cs 프로젝트: rickyah/UnityForms
 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();
 }