Esempio n. 1
0
 void IMouseProcessor.PreprocessGiveFeedback(GiveFeedbackEventArgs e)
 {
 }
Esempio n. 2
0
 internal void OnGiveFeedbackInternal(GiveFeedbackEventArgs e)
 {
     OnGiveFeedback(e);
 }
Esempio n. 3
0
 private void ListBoxItem_PreviewGiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
 }
Esempio n. 4
0
 public virtual void GiveFeedback(GiveFeedbackEventArgs args)
 {
     args.UseDefaultCursors = true;
 }
Esempio n. 5
0
 private static void DragSource_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
     DDW.MoveToMousePosition();
     e.Handled = true;
 }
Esempio n. 6
0
 internal void InternalOnGiveFeedback(GiveFeedbackEventArgs theArgs)
 {
     OnGiveFeedback(theArgs);
 }
Esempio n. 7
0
		public virtual void OnGiveFeedback (Glyph g, GiveFeedbackEventArgs e)
		{
			throw new NotImplementedException ();
		}
Esempio n. 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);
Esempio n. 9
0
 public DDFeedback GetDragDropFeedback(GiveFeedbackEventArgs e, object dragDropObject)
 {
     return(null);
 }
Esempio n. 10
0
 private void DragScope_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
 }
 public void PreprocessGiveFeedback(GiveFeedbackEventArgs e)
 {
 }
Esempio n. 12
0
 protected override void OnGiveFeedback(GiveFeedbackEventArgs e)
 {
     e.UseDefaultCursors = e.Effect == DragDropEffects.None;
     base.OnGiveFeedback(e);
 }
Esempio n. 13
0
 private void Sensor1_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
     this.toolStripStatusLabel.Text = "feedback_E";
 }
Esempio n. 14
0
 private void Appliance1_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
     this.toolStripStatusLabel.Text = "feedback_S";
 }
Esempio n. 15
0
 protected override void OnPreviewGiveFeedback(GiveFeedbackEventArgs e)
 {
     base.OnPreviewGiveFeedback(e);
 }
Esempio n. 16
0
 /// <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;
 }
Esempio n. 18
0
 private void textBox1_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
     this.OnGiveFeedback(e);
 }
Esempio n. 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);
                }
            }
        }
Esempio n. 20
0
 protected override void OnGiveFeedback(GiveFeedbackEventArgs e)
 {
     e.UseDefaultCursors = true;
     base.OnGiveFeedback(e);
 }
Esempio n. 21
0
 internal void OnGiveFeedback(GiveFeedbackEventArgs e)
 {
     TextEditorDragDrop.OnGiveFeedback(_uiScope, e);
 } 
Esempio n. 22
0
 /// <summary>
 ///     IBranch interface implementation.
 /// </summary>
 public virtual void /* IBranch */ OnGiveFeedback(GiveFeedbackEventArgs args, int row, int column)
 {
 }
Esempio n. 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.
 }
Esempio n. 24
0
 void ITableControlEventProcessor.PostprocessGiveFeedback(ITableEntryHandle entry, GiveFeedbackEventArgs args)
 {
 }
Esempio n. 25
0
 public void GiveFeedback(GiveFeedbackEventArgs e)
 {
     e.UseDefaultCursors = false;
     Cursor.Current      = feedbackCursor;
 }
Esempio n. 26
0
 //evento giveFeedback
 private void JTextField_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
     e.UseDefaultCursors = false;
 }
Esempio n. 27
0
 private void ListBox_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
     Mouse.SetCursor(Cursors.Help);
     e.Handled = true;
 }
Esempio n. 28
0
 protected override void OnGiveFeedback(GiveFeedbackEventArgs giveFeedbackEvent)
 {
     base.OnGiveFeedback(giveFeedbackEvent);
 }
Esempio n. 29
0
 protected override void OnGiveFeedback(GiveFeedbackEventArgs gfbevent)
 {
     base.OnGiveFeedback(gfbevent);
     myUpToDate = false;
     this.Invalidate();
 }
Esempio n. 30
0
 private void OnGiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
     OnGiveFeedback(e);
 }
 private void TimestepEditor_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
 }
Esempio n. 32
0
 protected virtual void OnGiveFeedback(GiveFeedbackEventArgs e)
 {
     e.UseDefaultCursors = false;
 }
 private void TextBox_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
 }
Esempio n. 34
0
 /// <summary>
 /// Give feedback postprocess handler
 /// </summary>
 /// <param name="e">Event args</param>
 public virtual void PostprocessGiveFeedback(GiveFeedbackEventArgs e)
 {
 }
Esempio n. 35
0
 protected override void OnGiveFeedback(GiveFeedbackEventArgs e)
 {
     MultiPanePageDesigner aDsgn_Sel = GetSelectedPageDesigner();
     if (aDsgn_Sel != null)
         aDsgn_Sel.InternalOnGiveFeedback(e);
 }
Esempio n. 36
0
 void carreau_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
     e.UseDefaultCursors = false;
 }
Esempio n. 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);
 }
Esempio n. 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);
         }
     }
 }
Esempio n. 40
0
 private void Tree_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
 }
Esempio n. 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);
            }
        }
Esempio n. 42
0
		protected override void OnGiveFeedback(GiveFeedbackEventArgs gfbevent) {
			calls.Add(String.Format("OnGiveFeedback"));
			base.OnGiveFeedback (gfbevent);
		}