|
Summary
Configure keyboard mappings.
Syntax
Boolean ConfigureKeyboard ()
Description
To map the keys on the keyboard, call the ConfigureKeyboard method. This action will cause the ActiveX control to bring up a dialog box that allows the user to select new settings. The dialog
displays a "keyboard" and lets the user map any key, or any key in combination with the shift, ctrl or shift ctrl to a custom command or setting. For example a user can configure the keyboard to send
"ls" every time shift "l" is pressed.
The ConfigureKeyboard method takes no parameters and returns a boolean. If the keyboard can be successfully mapped, then the method returns True; otherwise, it returns False. The application should
ensure that the method was successfully executed by checking the return value.
Calling this method is equivalent to setting the VtAction property to VT_CONFIGURE_KEYBOARD. This method can only be called after the VT220 emulation window has been created and initialized.
Example
Result = VT220Client.ConfigureKeyboard () If Result = False Then MsgBox "Unable to configure the keyboard", 64, "Sample Program" End If
|