AdamsLair.WinForms.PropertyEditing.PropertyEditor.OnMouseMove(System.Windows.Forms.MouseEventArgs)

Here are the examples of the csharp api class AdamsLair.WinForms.PropertyEditing.PropertyEditor.OnMouseMove(System.Windows.Forms.MouseEventArgs) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

16 Examples 7

1. Example

Project: winforms
Source File: BitmaskPropertyEditor.cs
protected internal override void OnMouseMove(MouseEventArgs e)
		{
			base.OnMouseMove(e);
			this.bitmaskSelector.OnMouseMove(e);
		}

2. Example

Project: winforms
Source File: EnumPropertyEditor.cs
protected internal override void OnMouseMove(MouseEventArgs e)
		{
			base.OnMouseMove(e);
			this.stringSelector.OnMouseMove(e);
		}

3. Example

Project: winforms
Source File: LabelPropertyEditor.cs
protected internal override void OnMouseMove(MouseEventArgs e)
		{
			base.OnMouseMove(e);
			this.selectableLabel.OnMouseMove(e);
		}

4. Example

Project: winforms
Source File: NumericPropertyEditor.cs
protected internal override void OnMouseMove(MouseEventArgs e)
		{
			base.OnMouseMove(e);
			this.numEditor.OnMouseMove(e);
		}

5. Example

Project: winforms
Source File: ObjectSelectorPropertyEditor.cs
protected internal override void OnMouseMove(MouseEventArgs e)
		{
			base.OnMouseMove(e);
			this.objSelector.OnMouseMove(e);
		}

6. Example

Project: winforms
Source File: StringPropertyEditor.cs
protected internal override void OnMouseMove(MouseEventArgs e)
		{
			base.OnMouseMove(e);
			this.stringEditor.OnMouseMove(e);
		}

7. Example

Project: duality
Source File: VectorPropertyEditor.cs
protected override void OnMouseMove(MouseEventArgs e)
		{
			base.OnMouseMove(e);
			foreach (NumericEditorTemplate t in this.editor)
				t.OnMouseMove(e);
		}

8. Example

Project: duality
Source File: ImagePreviewPropertyEditor.cs
protected override void OnMouseMove(MouseEventArgs e)
		{
			base.OnMouseMove(e);
			this.subImageSelector.OnMouseMove(e);
		}

9. Example

Project: winforms
Source File: BoolPropertyEditor.cs
protected internal override void OnMouseMove(MouseEventArgs e)
		{
			base.OnMouseMove(e);
			bool lastHovered = this.hovered;
			this.hovered = !this.ReadOnly && this.ClientRectangle.Contains(e.Location);
			if (lastHovered != this.hovered) this.Invalidate();
		}

10. Example

Project: duality
Source File: GameObjectPropertyEditor.cs
protected override void OnMouseMove(MouseEventArgs e)
		{
			base.OnMouseMove(e);
			bool lastActiveHovered = this.activeCheckHovered;
			this.activeCheckHovered = !this.ReadOnly && this.rectCheckActive.Contains(e.Location);
			if (lastActiveHovered != this.activeCheckHovered) this.Invalidate();

			bool lastButtonHovered = this.curButtonHovered;
			int lastButton = this.curButton;
			if (this.ReadOnly || !this.prefabLinked)
			{
				this.curButton = -1;
				this.curButtonHovered = false;
			}
			else if (this.prefabLinkAvailable && (!this.curButtonPressed || this.curButton == 0) && this.rectButtonPrefabShow.Contains(e.Location))
			{
				this.curButton = 0;
				this.curButtonHovered = true;
			}
			else if (this.prefabLinkAvailable && (!this.curButtonPressed || this.curButton == 1) && this.rectButtonPrefabRevert.Contains(e.Location))
			{
				this.curButton = 1;
				this.curButtonHovered = true;
			}
			else if (this.prefabLinkAvailable && (!this.curButtonPressed || this.curButton == 2) && this.rectButtonPrefabApply.Contains(e.Location))
			{
				this.curButton = 2;
				this.curButtonHovered = true;
			}
			else if ((!this.curButtonPressed || this.curButton == 3) && this.rectButtonPrefabBreak.Contains(e.Location))
			{
				this.curButton = 3;
				this.curButtonHovered = true;
			}
			else
			{
				this.curButton = -1;
				this.curButtonHovered = false;
			}
			if (lastActiveHovered != this.curButtonHovered || lastButton != this.curButton) this.Invalidate();
		}

11. Example

Project: duality
Source File: ResourceImportExportPropertyEditor.cs
protected override void OnMouseMove(MouseEventArgs e)
		{
			base.OnMouseMove(e);
			int lastHoveredButton = this.hoveredButton;

			if (this.rectButtonShow.Contains(e.Location) && this.CanShowSourceFiles)
				this.hoveredButton = 0;
			else if (this.rectButtonExport.Contains(e.Location) && this.CanExportResource)
				this.hoveredButton = 1;
			else if (this.rectButtonReImport.Contains(e.Location) && this.CanReImportResource)
				this.hoveredButton = 2;
			else
				this.hoveredButton = -1;

			if (this.hoveredButton != lastHoveredButton)
				this.Invalidate();
		}

12. Example

Project: duality
Source File: AudioDataPreviewPropertyEditor.cs
protected override void OnMouseMove(MouseEventArgs e)
		{
			base.OnMouseMove(e);
			if (this.rectPrevSound.Contains(e.Location))
				this.PlayPreviewSound();
			else
				this.StopPreviewSound();
		}

13. Example

Project: winforms
Source File: GroupedPropertyEditor.cs
protected internal override void OnMouseMove(MouseEventArgs e)
		{
			base.OnMouseMove(e);
			PropertyEditor lastHoverEditor = this.hoverEditor;
			
			if (!this.hoverEditorLock) this.UpdateHoverEditor(e);

			if (this.hoverEditor != null)
			{
				this.hoverEditor.OnMouseMove(e);
			}
			else
			{
				bool lastExpandHovered = this.expandCheckHovered;
				bool lastActiveHovered = this.activeCheckHovered;
				Rectangle expandHotSpot = new Rectangle(this.expandCheckRect.X, this.headerRect.Y, this.expandCheckRect.Width, this.headerRect.Height);
				Rectangle activeHotSpot = new Rectangle(this.activeCheckRect.X, this.headerRect.Y, this.activeCheckRect.Width, this.headerRect.Height);
				this.expandCheckHovered = this.CanExpand && (this.Hints & HintFlags.ExpandEnabled) != HintFlags.None && expandHotSpot.Contains(e.Location);
				this.activeCheckHovered = !this.ReadOnly && (this.Hints & HintFlags.ActiveEnabled) != HintFlags.None && activeHotSpot.Contains(e.Location);
				if (lastExpandHovered != this.expandCheckHovered) this.Invalidate();
				if (lastActiveHovered != this.activeCheckHovered) this.Invalidate();

				// Indent expand button
				if (this.UseIndentChildExpand)
				{
					foreach (PropertyEditor child in this.propertyEditors)
					{
						this.IndentChildExpandOnMouseMove(e, child as GroupedPropertyEditor);
					}
				}
			}
		}

14. Example

Project: duality
Source File: IColorDataPropertyEditor.cs
protected override void OnMouseMove(MouseEventArgs e)
		{
			base.OnMouseMove(e);

			bool lastCDiagButtonHovered = this.buttonCDiagHovered;
			bool lastCPickButtonHovered = this.buttonCPickHovered;
			bool lastPanelHovered = this.panelHovered;
			this.buttonCDiagHovered = !this.ReadOnly && this.rectCDiagButton.Contains(e.Location);
			this.buttonCPickHovered = !this.ReadOnly && this.rectCPickButton.Contains(e.Location);
			this.panelHovered = this.rectPanel.Contains(e.Location);

			if (lastCDiagButtonHovered != this.buttonCDiagHovered ||
				lastCPickButtonHovered != this.buttonCPickHovered || 
				lastPanelHovered != this.panelHovered) 
				this.Invalidate();
			
			if (this.panelDragBegin != Point.Empty)
			{
				if (Math.Abs(this.panelDragBegin.X - e.X) > 5 || Math.Abs(this.panelDragBegin.Y - e.Y) > 5)
				{
					DataObject dragDropData = new DataObject();
					dragDropData.SetIColorData(new[] { this.value });
					this.ParentGrid.DoDragDrop(dragDropData, DragDropEffects.All | DragDropEffects.Link);
				}
			}
		}

15. Example

Project: winforms
Source File: PropertyGrid.cs
protected override void OnMouseMove(MouseEventArgs e)
		{
			if (!this.mouseInside) this.OnMouseEnte/n ..... /n //View Source file for more details /n }

16. Example

Project: duality
Source File: ObjectRefPropertyEditor.cs
protected override void OnMouseMove(MouseEventArgs e)
		{
			base.OnMouseMove(e);

			bool lastButtonResetHovered = this.buttonResetHovered;
			bool lastButtonShowHovered = this.buttonShowHovered;
			bool lastPanelHovered = this.panelHovered;

			this.buttonResetHovered = !this.ReadOnly && this.rectButtonReset.Contains(e.Location);
			this.buttonShowHovered = this.rectButtonShow.Contains(e.Location);
			this.panelHovered = this.rectPanel.Contains(e.Location);

			if (lastButtonResetHovered != this.buttonResetHovered || 
				lastButtonShowHovered != this.buttonShowHovered || 
				lastPanelHovered != this.panelHovered)
				this.Invalidate();

			if (this.rectPrevSound.Contains(e.Location))
				this.PlayPreviewSound();
			else
				this.StopPreviewSound();
			
			if (this.panelDragBegin != Point.Empty)
			{
				if (Math.Abs(this.panelDragBegin.X - e.X) > 5 || Math.Abs(this.panelDragBegin.Y - e.Y) > 5)
				{
					DataObject dragDropData = new DataObject();
					this.SerializeToData(dragDropData);
					//dragDropData.SetAllowedConvertOp(ConvertOperation.Operation.Convert);
					this.panelDragBegin = Point.Empty;
					this.ParentGrid.DoDragDrop(dragDropData, DragDropEffects.All | DragDropEffects.Link);
				}
			}
		}