Accusoft ImagXpress 13
KeysSetEnabled Method
An enumKeys value which determines the type of keys.
A boolean value which is True to enable a specific type of key, False is disabled.
Description
Enables or disable specific types of keys.
Syntax
Visual Basic
Public Sub KeysSetEnabled( _
   ByVal Key As enumKeys, _
   ByVal newVal As Boolean _
) 
Parameters
Key
ValueDescription
KEYS_ACCELERATORSAccelerator keys such as Ctrl-S to save the file.
KEYS_ACCELERATORS_FORWARDForward accelerator key messages to the Key Events.
KEYS_SYSTEMSystem keys such as Break.
KEYS_SYSTEM_FORWARDForward system key messages to the Key Events.
An enumKeys value which determines the type of keys.
newVal
A boolean value which is True to enable a specific type of key, False is disabled.
Remarks

Example
‘ Alt+F4 will now exit Application when Alt+F4 is pressed and ImagXpress has the focus.
ImagXpress1.KeysSetEnabled(KEYS_SYSTEM, TRUE)

‘ Determine if pressing TAB key will change focus to next control.
Enabled = ImagXpress1.KeysGetEnabled(KEYS_ACCELERATOR)

' Don’t fire the ImagXpress key events when Alt+F4 is pressed.
ImagXpress1.KeysSetEnabled(KEYS_SYSTEM_FORWARD, FALSE)

‘ Determine if the key events will be fired by pressing a TAB key.
Enabled = ImagXpress1.KeysGetEnabled(KEYS_ACCELERATOR_FORWARD)
See Also

ImagXpress Object  | ImagXpress Members

 

 


©2015. Accusoft Corporation. All Rights Reserved.

Send Feedback