EnableKeyboard property (Main Control)

C++ Builder example

Delphi example

Builder Syntax

bool EnableKeyboard

Delphi Syntax

EnableKeyboard: Boolean

Overview

Refer to Displaying an Image.

Remarks

(Persistent property, available at design time) Enables or disables the LEADTOOLS Main VCL control's automatic processing of the arrow and page-up/page-down keys, as scroll messages, when an image is displayed larger than the control. In order to enable automatic keyboard processing, the EnableKeyboard property, the AutoScroll property and the EnableScroll property must all be set to True. Possible values for the EnableKeyboard property are:

Value

Meaning

TRUE

Process the keys and scroll the image. (Default)

FALSE

Ignore the keys.

When automatic keyboard processing is enabled, the Main Control will process the following keys as scroll messages:

Key

Event

PageUp

Scroll up/left one item (depends on scroll style)

Up Arrow

 

Left Arrow

 

PageDown

Scroll down/right one item (depends on scroll style)

Down Arrow

 

Right Arrow

 

See Also

Elements:

EnableScroll Property, AutoScroll property

Topics:

Raster Images: Displaying Images