예제 #1
0
 void IMouseProcessor.PreprocessGiveFeedback(GiveFeedbackEventArgs e)
 {
 }
예제 #2
0
 internal void OnGiveFeedbackInternal(GiveFeedbackEventArgs e)
 {
     OnGiveFeedback(e);
 }
예제 #3
0
 private void ListBoxItem_PreviewGiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
 }
예제 #4
0
 public virtual void GiveFeedback(GiveFeedbackEventArgs args)
 {
     args.UseDefaultCursors = true;
 }
예제 #5
0
파일: DragDrop2.cs 프로젝트: lanicon/Ginger
 private static void DragSource_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
     DDW.MoveToMousePosition();
     e.Handled = true;
 }
예제 #6
0
 internal void InternalOnGiveFeedback(GiveFeedbackEventArgs theArgs)
 {
     OnGiveFeedback(theArgs);
 }
예제 #7
0
파일: Behavior.cs 프로젝트: nlhepler/mono
		public virtual void OnGiveFeedback (Glyph g, GiveFeedbackEventArgs e)
		{
			throw new NotImplementedException ();
		}
예제 #8
0
 /// <summary>
 ///  The AdornerWindow hooks all Drag/Drop notification so they can be forwarded to the appropriate
 ///  Behavior via the BehaviorService.
 /// </summary>
 protected override void OnGiveFeedback(GiveFeedbackEventArgs e) => _behaviorService.OnGiveFeedback(e);
예제 #9
0
 public DDFeedback GetDragDropFeedback(GiveFeedbackEventArgs e, object dragDropObject)
 {
     return(null);
 }
예제 #10
0
 private void DragScope_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
 }
 public void PreprocessGiveFeedback(GiveFeedbackEventArgs e)
 {
 }
예제 #12
0
 protected override void OnGiveFeedback(GiveFeedbackEventArgs e)
 {
     e.UseDefaultCursors = e.Effect == DragDropEffects.None;
     base.OnGiveFeedback(e);
 }
예제 #13
0
 private void Sensor1_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
     this.toolStripStatusLabel.Text = "feedback_E";
 }
예제 #14
0
 private void Appliance1_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
     this.toolStripStatusLabel.Text = "feedback_S";
 }
예제 #15
0
 protected override void OnPreviewGiveFeedback(GiveFeedbackEventArgs e)
 {
     base.OnPreviewGiveFeedback(e);
 }
예제 #16
0
파일: HeaderBranch.cs 프로젝트: phekmat/ef6
 /// <summary>
 ///     IBranch interface implementation.
 /// </summary>
 public void OnGiveFeedback(GiveFeedbackEventArgs args, int row, int column)
 {
 }
 private void OnGiveFeedBack(object sender, GiveFeedbackEventArgs e)
 {
     // disable switching to default cursors
     e.UseDefaultCursors = false;
     TreeView.Cursor = Cursors.Arrow;
     e.Handled = true;
 }
예제 #18
0
 private void textBox1_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
     this.OnGiveFeedback(e);
 }
예제 #19
0
        /// <summary>
        /// Provides a default GiveFeedback event handler for drag sources.
        /// </summary>
        /// <param name="data">The associated data object for the event.</param>
        /// <param name="e">The event arguments.</param>
        public static void DefaultGiveFeedback(IDataObject data, GiveFeedbackEventArgs e)
        {
            // For drop targets that don't set the drop description, we'll
            // set a default one. Drop targets that do set drop descriptions
            // should set an invalid drop description during DragLeave.
            bool setDefaultDropDesc = false;
            bool isDefaultDropDesc = IsDropDescriptionDefault(data);
            DropImageType currentType = DropImageType.Invalid;
            if (!IsDropDescriptionValid(data) || isDefaultDropDesc)
            {
                currentType = GetDropImageType(data);
                setDefaultDropDesc = true;
            }

            if (IsShowingLayered(data))
            {
                // The default drag source implementation uses drop descriptions,
                // so we won't use default cursors.
                e.UseDefaultCursors = false;
                Cursor.Current = Cursors.Arrow;
            }
            else
                e.UseDefaultCursors = true;

            // We need to invalidate the drag image to refresh the drop description.
            // This is tricky to implement correctly, but we try to mimic the Windows
            // Explorer behavior. We internally use a flag to tell us to invalidate
            // the drag image, so if that is set, we'll invalidate. Otherwise, we
            // always invalidate if the drop description was set by the drop target,
            // *or* if the current drop image is not None. So if we set a default
            // drop description to anything but None, we'll always invalidate.
            if (InvalidateRequired(data) || !isDefaultDropDesc || currentType != DropImageType.None)
            {
                InvalidateDragImage(data);

                // The invalidate required flag only lasts for one invalidation
                SetInvalidateRequired(data, false);
            }

            // If the drop description is currently invalid, or if it is a default
            // drop description already, we should check about re-setting it.
            if (setDefaultDropDesc)
            {
                // Only change if the effect changed
                if ((DropImageType) e.Effect != currentType)
                {
                    if (e.Effect == DragDropEffects.Copy)
                        data.SetDropDescription(DropImageType.Copy, "Copy", "");
                    else if (e.Effect == DragDropEffects.Link)
                        data.SetDropDescription(DropImageType.Link, "Link", "");
                    else if (e.Effect == DragDropEffects.Move)
                        data.SetDropDescription(DropImageType.Move, "Move", "");
                    else if (e.Effect == DragDropEffects.None)
                        data.SetDropDescription(DropImageType.None, null, null);
                    SetDropDescriptionIsDefault(data, true);

                    // We can't invalidate now, because the drag image manager won't
                    // pick it up... so we set this flag to invalidate on the next
                    // GiveFeedback event.
                    SetInvalidateRequired(data, true);
                }
            }
        }
예제 #20
0
 protected override void OnGiveFeedback(GiveFeedbackEventArgs e)
 {
     e.UseDefaultCursors = true;
     base.OnGiveFeedback(e);
 }
예제 #21
0
 internal void OnGiveFeedback(GiveFeedbackEventArgs e)
 {
     TextEditorDragDrop.OnGiveFeedback(_uiScope, e);
 } 
예제 #22
0
 /// <summary>
 ///     IBranch interface implementation.
 /// </summary>
 public virtual void /* IBranch */ OnGiveFeedback(GiveFeedbackEventArgs args, int row, int column)
 {
 }
예제 #23
0
 /// <summary>
 /// Handles the GiveFeedback event of the NodesTV control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.Windows.Forms.GiveFeedbackEventArgs"/> instance containing the event data.</param>
 protected virtual void NodesTV_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
     // overridden by sub-class.
 }
예제 #24
0
 void ITableControlEventProcessor.PostprocessGiveFeedback(ITableEntryHandle entry, GiveFeedbackEventArgs args)
 {
 }
예제 #25
0
 public void GiveFeedback(GiveFeedbackEventArgs e)
 {
     e.UseDefaultCursors = false;
     Cursor.Current      = feedbackCursor;
 }
예제 #26
0
 //evento giveFeedback
 private void JTextField_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
     e.UseDefaultCursors = false;
 }
예제 #27
0
 private void ListBox_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
     Mouse.SetCursor(Cursors.Help);
     e.Handled = true;
 }
예제 #28
0
 protected override void OnGiveFeedback(GiveFeedbackEventArgs giveFeedbackEvent)
 {
     base.OnGiveFeedback(giveFeedbackEvent);
 }
예제 #29
0
 protected override void OnGiveFeedback(GiveFeedbackEventArgs gfbevent)
 {
     base.OnGiveFeedback(gfbevent);
     myUpToDate = false;
     this.Invalidate();
 }
예제 #30
0
 private void OnGiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
     OnGiveFeedback(e);
 }
 private void TimestepEditor_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
 }
예제 #32
0
 protected virtual void OnGiveFeedback(GiveFeedbackEventArgs e)
 {
     e.UseDefaultCursors = false;
 }
 private void TextBox_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
 }
예제 #34
0
 /// <summary>
 /// Give feedback postprocess handler
 /// </summary>
 /// <param name="e">Event args</param>
 public virtual void PostprocessGiveFeedback(GiveFeedbackEventArgs e)
 {
 }
예제 #35
0
 protected override void OnGiveFeedback(GiveFeedbackEventArgs e)
 {
     MultiPanePageDesigner aDsgn_Sel = GetSelectedPageDesigner();
     if (aDsgn_Sel != null)
         aDsgn_Sel.InternalOnGiveFeedback(e);
 }
예제 #36
0
 void carreau_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
     e.UseDefaultCursors = false;
 }
예제 #37
0
 private void Form1_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
     Console.WriteLine("GiveFeedback");
 }
 private void Rad_Item_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
     SetMenuItemSelected(sender);
     WriteDebug("Item_GiveFeedback: {0} {1}", sender, e.Effect);
 }
예제 #39
0
 /// <summary>
 /// Provides a default GiveFeedback event handler for drag sources.
 /// </summary>
 /// <param name="sender">The object that raised the event. Should be set to the drag source.</param>
 /// <param name="e">The event arguments.</param>
 public static void DefaultGiveFeedbackHandler(object sender, GiveFeedbackEventArgs e)
 {
     Control control = sender as Control;
     if (control != null)
     {
         if (s_dataContext.ContainsKey(control))
         {
             DefaultGiveFeedback(s_dataContext[control].data, e);
         }
     }
 }
예제 #40
0
 private void Tree_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
 }
예제 #41
0
        /// <summary>
        ///     Virtual method reporting the give feedback is going to happen
        /// </summary>
        protected override void OnGiveFeedback(GiveFeedbackEventArgs e)
        {
            base.OnGiveFeedback(e);

            if (e.Handled)
            {
                return;
            }

            if (_textEditor != null)
            {
                _textEditor.OnGiveFeedback(e);
            }
        }
예제 #42
0
파일: events.cs 프로젝트: hitswa/winforms
		protected override void OnGiveFeedback(GiveFeedbackEventArgs gfbevent) {
			calls.Add(String.Format("OnGiveFeedback"));
			base.OnGiveFeedback (gfbevent);
		}