wodTelnetDLX ActiveX Control - KeyPressSpecial Event
    
 

Description

Fires when special key is pressed.


Syntax

Private Sub object_KeyPressSpecial(KeyNum)



The KeyPressSpecial Event syntax has these parts:

Part Description
object A wodTelnetDLX object.
KeyNum A SpecialKeysEnum enumeration, as described in settings. Represents special key that was pressed.

Settings

The settings for KeyNum are:

Constant Value Description
 specNone 0
 specTAB 1
 specEND 2
 specHOME 3
 specLEFT 4
 specUP 5
 specRIGHT 6
 specDOWN 7
 specPAGEUP 8
 specPAGEDOWN 9
 specINSERT 10
 specDELETE 11
 specLWIN 12
 specRWIN 13
 specAPPS 14
 specF1 15
 specF2 16
 specF3 17
 specF4 18
 specF5 19
 specF6 20
 specF7 21
 specF8 22
 specF9 23
 specF10 24
 specF11 25
 specF12 26
 specCTRL 4096
 specALT 8192
 specSHIFT 16384

Remarks

This event is only available in OCX (GUI) version of the component.

Not all keys can be handled by KeyPress event. For example, if user press TAB key, your application may try to change focus inside application window, or, for example, if user press F10 it may try to show some menu. If you want to process these special keys, then you should intercept them in this event, and implement some code for keys you're interested in. For example, you can make F10 close the application you're currently running on the server.

wodTelnetDLX will (when TerminalEmulation is set to VT100Emulation or LinuxEmulation) handle several special keys, such as arrow keys, function keys, etc. When they are pressed, it will send ANSI escape codes for those keys to the server. If you don't want wodTelnetDLX to handle some special key, you should set KeyNum value to 0, in which case wodTelnetDLX will just ignore it.

If user presses combination of CTRL, ALT or SHIFT key together with some other key, KeyNum will contain OR value of these two (or more) keys. For example, if you want to handle ALT+F4 to end your application, you can use code like this:

Private Sub wodTelnetDLX1_KeyPressSpecial(KeyNum As WODTELNETDLXCtl.SpecialKeysEnum)
      If KeyNum = specALT + specF4 Then End
End Sub