RAD Studio VCL Reference
|
Returns the default style of the HTML control to use for editing this adapter field.
function GetInputStyleType(const AAdapterMode: string): TAdapterInputHTMLElementType; override;
virtual __fastcall TAdapterInputHTMLElementType GetInputStyleType(const AnsiString AAdapterMode);
GetInputStyleType returns the recommended type of control to use for editing this field's value in HTML forms.
AAdapterMode indicates the current mode of the parent dataset adapter. It is one of the following values:
Value |
Mode |
Meaning |
Insert |
amInsert |
The control is to be used for entering a field value in a newly inserted record. |
Edit |
amEdit |
The control is to be used for editing the current field value. |
Browse |
amBrowse |
The control is to be used for read-only display. |
Query |
amQuery |
The control is to be used for entering a criterion to use in a generated query. |
GetInputStyleType returns htmliSelect (a single-selection list box) if the ValuesList property provides a list of possible values for the field. Otherwise, GetInputStyleType returns htmliTextInput (a single-line edit control).
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|