Your Products have been synced, click here to refresh
Imports System.Text Imports System.Runtime.InteropServices Imports System.ComponentModel Public Class PcdHelper #Region "Global Vars" 'Globals Private ParentHandle As IntPtr Private pcdTask As Integer Public PcdWindows() As String = { "Auto Feature",'00 "Alignment Utilities",'01 "Probe Utilities",'02 "CAD Transform",'03 "CAD Assembly",'04 "CAD and Graphic Setup",'05 "Angle",'06 "Angularity",'07 "Circularity",'08 "Coaxiality",'09 "Concentricity",'10 "Cylindricity",'11 "Distance",'12 "Flatness",'13 "Feature Location",'14 "Parallelism",'15 "Perpendicularity",'16 "Position",'17 "Position In-Between",'18 "Line Profile",'19 "Surface Profile",'20 "Circular Runout",'21 "Total Runout",'22 "Straightness",'23 "Symmetry",'24 "Pattern Offset",'25 "Hide and Show Graphics",'26 "Dimensional Keyin",'27 "No Task Found" '28 Must remain last and must not change! } Enum KeyModifier None = 0 Alt = &H1 Control = &H2 Shift = &H4 Winkey = &H8 End Enum 'This enum is just to make it easier to call the registerHotKey function: The modifier integer codes are replaced by a friendly "Alt","Shift" etc. Private Const BM_CLICK As Integer = &HF5 Public Const WM_HOTKEY As Integer = &H312 'Find virtual key codes here: https://docs.microsoft.com/en-us/windows/desktop/inputdev/virtual-key-codes using decimal values use this http://www.bluesock.org/~willg/dev/ascii.html Public Const VK_ESCAPE As Integer = 27 'Escape Key Public Const VK_RETURN As Integer = 13 ' Return Key #End Region
Imports System.Text Imports System.Runtime.InteropServices Imports System.ComponentModel Public Class PcdHelper #Region "Global Vars" 'Globals Private ParentHandle As IntPtr Private pcdTask As Integer Public PcdWindows() As String = { "Auto Feature",'00 "Alignment Utilities",'01 "Probe Utilities",'02 "CAD Transform",'03 "CAD Assembly",'04 "CAD and Graphic Setup",'05 "Angle",'06 "Angularity",'07 "Circularity",'08 "Coaxiality",'09 "Concentricity",'10 "Cylindricity",'11 "Distance",'12 "Flatness",'13 "Feature Location",'14 "Parallelism",'15 "Perpendicularity",'16 "Position",'17 "Position In-Between",'18 "Line Profile",'19 "Surface Profile",'20 "Circular Runout",'21 "Total Runout",'22 "Straightness",'23 "Symmetry",'24 "Pattern Offset",'25 "Hide and Show Graphics",'26 "Dimensional Keyin",'27 "No Task Found" '28 Must remain last and must not change! } Enum KeyModifier None = 0 Alt = &H1 Control = &H2 Shift = &H4 Winkey = &H8 End Enum 'This enum is just to make it easier to call the registerHotKey function: The modifier integer codes are replaced by a friendly "Alt","Shift" etc. Private Const BM_CLICK As Integer = &HF5 Public Const WM_HOTKEY As Integer = &H312 'Find virtual key codes here: https://docs.microsoft.com/en-us/windows/desktop/inputdev/virtual-key-codes using decimal values use this http://www.bluesock.org/~willg/dev/ascii.html Public Const VK_ESCAPE As Integer = 27 'Escape Key Public Const VK_RETURN As Integer = 13 ' Return Key #End Region
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |