EnableKeyboard property (Main Control)

Visual Basic example
Visual C++ 4.0 example

Syntax BOOL EnableKeyboard

Overview:  Refer to Displaying an Image.

Remarks

(persistent property, available at design time) Enables or disables the Main 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:

Setting

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:

Key

Event

PageUp

Up Arrow

Left Arrow

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

PageDown

Down Arrow

Right Arrow

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

 

See Also

Elements:  EnableScroll property, AutoScroll property

Topics:  Raster Images: Displaying Images