Delphi Hotkey Component (Thotkey)

Source: Internet
Author: User

Thotkey Component Properties

Bidimode

Set this property to specify the bidirectional mode of text, control the order of the read text, and position the vertical scroll bar. Alignment does not change the number, date, time, and current value that the component contains.

HotKey

Use this property to set or change hotkey-related key combinations, such as alt+a as the default value

Invalidkeys

Invalid key combination

Modifiers

To modify a key combination

Parentbidimode

Sets whether the component uses the parent component Bidimode property

Example

Modify the default value of the hotkey.

procedure Tform1.newctrla1click (sender:tobject); var   new:tmenuitem;begin  NEW. ShortCut:=hotkey1.hotkey;end;procedure tform1.formcreate (sender:tobject); Begin  Hotkey1.modifiers: =[Hkshift,hkctrl];  Hotkey1.invalidkeys:=[Hcalt];end;end.

Delphi Hotkey Component (Thotkey)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.