XE8 Development of Android II: Buttons and several common properties of Tedit controls

Source: Internet
Author: User

Several common properties for buttons and Tedit controls

Android program development must use the button, a more important property of the button is Stylelookup, preset
A series of commonly used icon style, the artist is not good, you can use more ah, such as:

The other 2 commonly used properties are GroupName and ispressed: A set of buttons takes the same GroupName,
Control only one of them is pressed.
The distribution of buttons is generally in the following ways:
1, freely placed, that is, in the form of free placement.
2, placed in the Tgridlayout control, automatically arranged by the Tgridlayout, through ItemHeight and Itemwidth
Controls the size of each lattice.
3, placed in the Ttoolbar control, such as:

Delphi XE6 The Tedit control has a useful property: Keyboardtype, such as:

This property determines when the program runs when the input focus enters the Tedit, the system pops up the Input method form, the different fetching
Values will display different input method forms, such as:

You can choose according to different needs, or you can change the value at run time by placing a tpopupbox
Control to set the design interface as follows:

The code is as follows:
Procedure Tfrmkeyboard.popupbox1change (Sender:tobject);
Begin
Case Popupbox1.itemindex of
0:edit2.keyboardtype: = FMX. Types.TVirtualKeyboardType.vktDefault;
1:edit2.keyboardtype: = FMX. Types.TVirtualKeyboardType.vktNumbersAndPunctuation
2:edit2.keyboardtype: = FMX. Types.TVirtualKeyboardType.vktNumberPad;
3:edit2.keyboardtype: = FMX. Types.TVirtualKeyboardType.vktPhonePad;
4:edit2.keyboardtype: = FMX. Types.TVirtualKeyboardType.vktAlphabet;
5:edit2.keyboardtype: = FMX. Types.TVirtualKeyboardType.vktURL;
6:edit2.keyboardtype: = FMX. Types.TVirtualKeyboardType.vktNamePhonePad;
7:edit2.keyboardtype: = FMX. Types.TVirtualKeyboardType.vktEmailAddress;
End
End

XE8 Development of Android II: Buttons and several common properties of Tedit controls

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.