70002712 Mouse buttons to do different things with keyboard shift buttons

Article 70002712
Type Wish
Product Engine
Date Added 6/16/2025 12:00:00 AM
Fixed 11.4.4 (6/18/2025 12:00:00 AM)
Submitted by Graham Parker

Summary

Mouse buttons to do different things with keyboard Shift buttons

Solution

In Version 11.4.4
more enum values was added to vdDocument.PanMouseButton and
a also new vdDocument.OsnapDialogButton property was added to be used in combination with vdDocument.OsnapDialogKey
Default value for vdDocument.PanMouseButton is vdDocument.PanMouseButtons.Middle
Default value for vdDocument.OsnapDialogKey is System.Windows.Forms.Keys.Control
Default value for vdDocument.OsnapDialogButton is System.Windows.Forms.MouseButtons.Right
Default value for vdDocument.OrbitActionKey is vdDocument KeyWithMouseStroke.AltLeft


Example

vdDocument document;

document.PanMouseButton = vdDocument.PanMouseButtons.ShiftRight
document.OrbitActionKey = vdDocument KeyWithMouseStroke.ShiftLeft

//do not display Osnap Dialog
document.OsnapDialogKey = System.Windows.Forms.Keys.None
vdDocument.OsnapDialogButton = System.Windows.Forms.MouseButtons.None

Send comments on this topic.