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