• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Forms.GiveFeedbackEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Windows.Forms.GiveFeedbackEventArgs的典型用法代码示例。如果您正苦于以下问题:C# GiveFeedbackEventArgs类的具体用法?C# GiveFeedbackEventArgs怎么用?C# GiveFeedbackEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



GiveFeedbackEventArgs类属于System.Windows.Forms命名空间,在下文中一共展示了GiveFeedbackEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: treeView_GiveFeedback

        private void treeView_GiveFeedback(object sender, GiveFeedbackEventArgs e)
        {
            // 드래그 드랍을 받는 타겟에서 드랍 가능 여부를 e.Effect로 알수 있다.

            Debug.WriteLine("\t Source Give Feedback : " + e.Effect);

            // 드랍 가능 여부 상태에 따라서 마우스 커서의 모양을 바꿔줄 수 있다.

            Cursor MyNormalCursor = null;
            Cursor MyNoDropCursor = null;
            try
            {

                MyNormalCursor = new Cursor("AllowDrop.cur");
                MyNoDropCursor = new Cursor("NoDrop.cur");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }

            // Sets the custom cursor based upon the effect.
            e.UseDefaultCursors = false;
            if ((e.Effect & DragDropEffects.All) == DragDropEffects.All)
                Cursor.Current = MyNormalCursor;
            else
                Cursor.Current = MyNoDropCursor;
        }
开发者ID:WeDoCrm,项目名称:MessengerSocket,代码行数:28,代码来源:SourceForm.cs


示例2: ActionHolder_GiveFeedback

 private void ActionHolder_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
     if (dragging)
     {
         this.Location = new Point(this.Location.X, dragStartY + Cursor.Position.Y - dragStartMouseY);
         Refresh();
     }
 }
开发者ID:thomaswp,项目名称:StoryArc,代码行数:8,代码来源:ActionHolder.cs


示例3: OleGiveFeedback

 public int OleGiveFeedback(int dwEffect) {
     GiveFeedbackEventArgs gfbevent = new GiveFeedbackEventArgs((DragDropEffects) dwEffect, true);
     peer.OnGiveFeedback(gfbevent);
     if (gfbevent.UseDefaultCursors) {
         return DragDropSUseDefaultCursors;
     }
     return 0;
 }
开发者ID:JianwenSun,项目名称:cc,代码行数:8,代码来源:DropSource.cs


示例4: componentsListView_GiveFeedback

 private void componentsListView_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
     if (null != draggedImg)
     {
         e.UseDefaultCursors = false;
         Cursor.Current = new Cursor(new Bitmap(draggedImg, 32, 32).GetHicon());
     }
 }
开发者ID:vladislav-horbatiuk,项目名称:time-series-forecasting,代码行数:8,代码来源:MainForm.cs


示例5: checkedVersesCheckedListBox_GiveFeedback

 private void checkedVersesCheckedListBox_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
     if (e.Effect == DragDropEffects.Move)
     {
         Cursor.Current = Cursors.Hand;
     }
     else
     {
         Cursor.Current = Cursors.Default;
     }
 }
开发者ID:sorvis,项目名称:Fast-Script,代码行数:11,代码来源:SelectedVersesControl.cs


示例6: ListDragSource_GiveFeedback

 private void ListDragSource_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
     // Use custom cursors if the check box is checked.
     if (UseCustomCursorsCheck.Checked)
     {
         // Sets the custom cursor based upon the effect.
         e.UseDefaultCursors = false;
         if ((e.Effect & DragDropEffects.Move) == DragDropEffects.Move)
             Cursor.Current = MyNormalCursor;
         else
             Cursor.Current = MyNoDropCursor;
     }
 }
开发者ID:chanfengsr,项目名称:AllPrivateProject,代码行数:13,代码来源:Form1.cs


示例7: OnGiveFeedback

        protected override bool OnGiveFeedback(GiveFeedbackEventArgs gfbevent)
        {
            base.OnGiveFeedback(gfbevent);

            if (this.draggedDesignerImages != null)
            {
                gfbevent.UseDefaultCursors = false;
                if ((gfbevent.Effect & DragDropEffects.Move) == DragDropEffects.Move)
                    Cursor.Current = FreeFormDragDropManager.DragMoveCursor;
                else if ((gfbevent.Effect & DragDropEffects.Copy) == DragDropEffects.Copy)
                    Cursor.Current = FreeFormDragDropManager.DragCopyCursor;
                else
                    Cursor.Current = Cursors.No;

                return true;
            }

            return false;
        }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:19,代码来源:FreeFormDragDropManager.cs


示例8: OnGiveFeedback

		protected virtual void OnGiveFeedback (GiveFeedbackEventArgs giveFeedbackEvent)
		{
			GiveFeedbackEventHandler eh = (GiveFeedbackEventHandler)(Events[GiveFeedbackEvent]);
			if (eh != null)
				eh (this, giveFeedbackEvent);
		}
开发者ID:Clancey,项目名称:MonoMac.Windows.Form,代码行数:6,代码来源:ToolStripItem.cs


示例9: OnGiveFeedback

 bool IWorkflowDesignerMessageSink.OnGiveFeedback(GiveFeedbackEventArgs e)
 {
     try
     {
         OnGiveFeedback(e);
     }
     catch
     {
     }
     return true;
 }
开发者ID:nlh774,项目名称:DotNetReferenceSource,代码行数:11,代码来源:ActivityDesigner.cs


示例10: ShellTreeView_GiveFeedback

		private void ShellTreeView_GiveFeedback(object sender, GiveFeedbackEventArgs e) {
			e.UseDefaultCursors = true;
			var doo = new System.Windows.Forms.DataObject(this._DataObject);
			if (doo.GetDataPresent("DragWindow")) {
				IntPtr hwnd = ShellView.GetIntPtrFromData(doo.GetData("DragWindow"));
				User32.PostMessage(hwnd, 0x403, IntPtr.Zero, IntPtr.Zero);
			} else {
				e.UseDefaultCursors = true;
			}

			if (ShellView.IsDropDescriptionValid(this._DataObject)) {
				e.UseDefaultCursors = false;
				Cursor.Current = Cursors.Arrow;
			} else {
				e.UseDefaultCursors = true;
			}

			if (ShellView.IsShowingLayered(doo)) {
				e.UseDefaultCursors = false;
				Cursor.Current = Cursors.Arrow;
			} else {
				e.UseDefaultCursors = true;
			}

			base.OnGiveFeedback(e);
		}
开发者ID:Gainedge,项目名称:BetterExplorer,代码行数:26,代码来源:ShellTreeViewEx.cs


示例11: OnGiveFeedback

        /// <summary>
        /// 
        /// </summary>
        /// <param name="args"></param>
        protected override void OnGiveFeedback(GiveFeedbackEventArgs args)
        {
            base.OnGiveFeedback(args);

            if (this.DropSink != null)
                this.DropSink.GiveFeedback(args);
        }
开发者ID:ZlayaZhaba,项目名称:XervBackup,代码行数:11,代码来源:ObjectListView.cs


示例12: OnGiveFeedback

		//-------------------------------------------------------------------------------------
		/// <summary>
		/// 
		/// </summary>
		/// <param name="e"></param>
		protected override void OnGiveFeedback(GiveFeedbackEventArgs e)
		{
			if(allowInternalDragDrop)
			{
				Rectangle r = treeView.RectangleToScreen(treeView.ClientRectangle); 
				if(r.Contains(Control.MousePosition))
				{
					e.UseDefaultCursors = false;
					r = new Rectangle(20,20,r.Width - 40, r.Height - 40);
					Point p = treeView.PointToClient(Control.MousePosition);
					if(p.Y < r.Y)
						WinAPI.APIWrappers.SendMessage(treeView.Handle, WinAPI.WM.VSCROLL, 0, 0);
					if(p.Y > r.Height)
						WinAPI.APIWrappers.SendMessage(treeView.Handle, WinAPI.WM.VSCROLL, 1, 0);
					if(p.X < r.X)
						WinAPI.APIWrappers.SendMessage(treeView.Handle, WinAPI.WM.HSCROLL, 0, 0);
					if(p.X > r.Width)
						WinAPI.APIWrappers.SendMessage(treeView.Handle, WinAPI.WM.HSCROLL, 1, 0);
				}
			}
			else
				base.OnGiveFeedback(e);
		}
开发者ID:GoldMax,项目名称:Pulsar.NET,代码行数:28,代码来源:SimTreeView.cs


示例13: GiveFeedback

 /// <summary>
 /// Change the cursor to reflect the current drag operation.
 /// </summary>
 /// <remarks>You only need to override this if you want non-standard cursors.
 /// The standard cursors are supplied automatically.</remarks>
 /// <param name="args"></param>
 public virtual void GiveFeedback(GiveFeedbackEventArgs args)
 {
     args.UseDefaultCursors = true;
 }
开发者ID:seriesrenamer,项目名称:seriesrenamer,代码行数:10,代码来源:DropSink.cs


示例14: GridControl_GiveFeedback

		private void GridControl_GiveFeedback(object sender, GiveFeedbackEventArgs e)
		{
			if (_downHitInfo == null) return;
			e.UseDefaultCursors = false;
			Cursor.Current = _dragRowCursor;
		}
开发者ID:w01f,项目名称:VolgaTeam.Dashboard,代码行数:6,代码来源:GridDragDropHelper.cs


示例15: OnGiveFeedback

 private void OnGiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
     if (m_dragData != null)
     {
         DropDescriptionHelper.DefaultGiveFeedback(m_dragData, e);
     }
 }
开发者ID:JanDeHud,项目名称:LevelEditor,代码行数:7,代码来源:DragDropExtender.cs


示例16: OnGiveFeedback

 protected override void OnGiveFeedback(GiveFeedbackEventArgs gfbevent)
 {
     base.OnGiveFeedback(gfbevent);
     using (WorkflowMessageDispatchData data = new WorkflowMessageDispatchData(this, gfbevent))
     {
         foreach (WorkflowDesignerMessageFilter filter in data.Filters)
         {
             if (((IWorkflowDesignerMessageSink) filter).OnGiveFeedback(gfbevent))
             {
                 return;
             }
         }
     }
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:14,代码来源:WorkflowView.cs


示例17: lvFileList_GiveFeedback

 private void lvFileList_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
     try
     {
         if (m_isDragDropInsideControls && e.Effect == DragDropEffects.Copy)
         {
             Cursor.Current = MoveDrop;
             e.UseDefaultCursors = false;
         }
         else
             e.UseDefaultCursors = true;
     }
     catch (Exception ex)
     {
         Logging.LogException(ex);
         e.UseDefaultCursors = true;
     }
 }
开发者ID:tmbx,项目名称:kwm-release,代码行数:18,代码来源:AppKfsControl.cs


示例18: ListView_GiveFeedback

 private void ListView_GiveFeedback(object sender,
     GiveFeedbackEventArgs e)
 {
     e.UseDefaultCursors = false;
     if (e.Effect == DragDropEffects.Copy)
     {
         Bitmap selected = (Bitmap) imageList.Images[listView.SelectedItems[0].ImageKey];
         if (selected != null)
             Cursor.Current = new Cursor(selected.GetHicon());
     }
 }
开发者ID:SanderBouwman,项目名称:KantoorInrichting,代码行数:11,代码来源:GridFieldView.cs


示例19: OnGiveFeedback

 protected override void OnGiveFeedback(GiveFeedbackEventArgs gfbevent)
 {
     base.OnGiveFeedback(gfbevent);
     myUpToDate = false;
     this.Invalidate();
 }
开发者ID:ticobro,项目名称:toggldesktop,代码行数:6,代码来源:AlphaBlendTextBox.cs


示例20: listBox1_GiveFeedback

 private void listBox1_GiveFeedback(object sender, GiveFeedbackEventArgs e)
 {
     if (timetableControl1.ShowDragGhost && DragCursor_ != null)
     {
         e.UseDefaultCursors = false;
         Cursor.Current = DragCursor_;
     }
 }
开发者ID:Jaren14,项目名称:unitimetable,代码行数:8,代码来源:FormMain.cs



注:本文中的System.Windows.Forms.GiveFeedbackEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Forms.GroupBox类代码示例发布时间:2022-05-26
下一篇:
C# Forms.FormClosingEventArgs类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap