Accusoft ImagXpress 12
KeysGetEnabled Method
See Also  Example  Send comments on this topic.
Key
An enumKeys option value to determine the enabled state of.
AccusoftImagXpress12 ActiveX DLL > ImagXpress Object : KeysGetEnabled Method

Glossary Item Box

Description

Check the enabled state of a particular key type.

Syntax

Visual Basic
Public Function KeysGetEnabled( _
   ByVal Key As enumKeys _
) 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 option value to determine the enabled state of.

Return Type

  • When KeysEnabled is True for the special keys, the keys will be processed by the default container handling.
  • When KeysEnabled is False for the special keys, the keys will not be processed by the default container handling.
  • When KeysEnabled is True for the key forwards, then the special keys will be forwarded to the regular ImagXpress Key Events provided that the Key Events are enabled with the EventSetEnabled method.
  • When KeysEnabled is False for the key forwards, then the special keys will NOT be forwarded to the regular Key Events no matter how the Key Events are set with the EventSetEnabled method.

Remarks

Example

VB example of KeysGetEnabled/KeysSetEnabled (Visual Basic)Copy Code
‘ 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

©2013. Accusoft Corporation. All Rights Reserved.