![]() | DIAdem 2017 Help |
![]() | DIAdem 2018 Help |
![]() | DIAdem 2019 Help |
![]() | DIAdem 2020 Help |
![]() | DIAdem 2020 SP1 Help |
Triggers in user dialog boxes when a function key is pressed. You can use this event anywhere, for any purpose.
EventFuncKeyPressed(ByRef This, KeyName, Ctrl, Shift, ByRef DoProceed)
This | Object that triggers this event. |
KeyName | Name of the function key that is pressed. The name can range from "F1" to "F24". |
Ctrl | Specifies whether <Ctrl> is pressed at the same time. |
Shift | Specifies whether <Shift> is pressed at the same time. |
DoProceed | Specifies whether the user dialog box processes the shortcut. |
The following example displays a message that depends on which function key the user presses in the dialog box:
Sub Dialog_EventFuncKeyPressed(ByRef This, KeyName, Ctrl, Shift, ByRef DoProceed) Select Case KeyName Case "F1" Call MsgBoxDisp("F1 pressed")
Case "F2" Call MsgBoxDisp("F2 pressed, Ctrl: "& Ctrl & ", Shift: "&Shift) Case Else
Call MsgBoxDisp("KeyName: " & KeyName) End Select End Sub
Checking a User Dialog Box Entry | Closing a User Dialog Box with a Script | Creating a Dynamic User Dialog Box | Creating a Non-Modal User Dialog Box | Creating a Procedure in the Script of a User Dialog Box | Creating a User Dialog Box without Linking Variables | Creating a User Dialog Box | Creating an Extended Table | Displaying Graphics in Selection Lists | Enabling Controls | Opening the Dialog Editor | Responding to Cancellation of a User Dialog Box | Responding to User Entries in User Dialog Boxes | Saving and Restoring the Last Dialog Box Position | Saving Control Groups for User Dialog Boxes | Specifying the Default Button | Tabulator Order in a User Dialog Box | Transferring a Parameter to a User Dialog Box | Transferring User Dialog Box Entries to DIAdem | Using a Script to Fill a Selection List | Using Channel Selection Lists | Using Hotkeys in a User Dialog Box | Using the Flex Properties
Helpful
Not Helpful