type ICefTextfield = interface(ICefView)
A Textfield supports editing of text. This control is custom rendered with no platform-specific code. Methods must be called on the browser process UI thread unless otherwise indicated.
UNKNOWN
<see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/views/cef_textfield_capi.h">CEF source file: /include/capi/views/cef_textfield_capi.h (cef_textfield_t))
| Public | procedure SetPasswordInput(password_input: boolean); |
| Public | function IsPasswordInput: boolean; |
| Public | procedure SetReadOnly(read_only: boolean); |
| Public | function IsReadOnly: boolean; |
| Public | function GetText: ustring; |
| Public | procedure SetText(const text_: ustring); |
| Public | procedure AppendText(const text_: ustring); |
| Public | procedure InsertOrReplaceText(const text_: ustring); |
| Public | function HasSelection: boolean; |
| Public | function GetSelectedText: ustring; |
| Public | procedure SelectAll(reversed: boolean); |
| Public | procedure ClearSelection; |
| Public | function GetSelectedRange: TCefRange; |
| Public | procedure SelectRange(const range: TCefRange); |
| Public | function GetCursorPosition: NativeUInt; |
| Public | procedure SetTextColor(color: TCefColor); |
| Public | function GetTextColor: TCefColor; |
| Public | procedure SetSelectionTextColor(color: TCefColor); |
| Public | function GetSelectionTextColor: TCefColor; |
| Public | procedure SetSelectionBackgroundColor(color: TCefColor); |
| Public | function GetSelectionBackgroundColor: TCefColor; |
| Public | procedure SetFontList(const font_list: ustring); |
| Public | procedure ApplyTextColor(color: TCefColor; const range: TCefRange); |
| Public | procedure ApplyTextStyle(style: TCefTextStyle; add: boolean; const range: TCefRange); |
| Public | function IsCommandEnabled(command_id: TCefTextFieldCommands): boolean; |
| Public | procedure ExecuteCommand(command_id: TCefTextFieldCommands); |
| Public | procedure ClearEditHistory; |
| Public | procedure SetPlaceholderText(const text_: ustring); |
| Public | function GetPlaceholderText: ustring; |
| Public | procedure SetPlaceholderTextColor(color: TCefColor); |
| Public | procedure SetAccessibleName(const name: ustring); |
| Public | property PasswordInput : boolean read IsPasswordInput write SetPasswordInput; |
| Public | property ReadOnly : boolean read IsReadOnly write SetReadOnly; |
| Public | property Text : ustring read GetText write SetText; |
| Public | property SelectedText : ustring read GetSelectedText; |
| Public | property TextColor : TCefColor read GetTextColor write SetTextColor; |
| Public | property SelectionTextColor : TCefColor read GetSelectionTextColor write SetSelectionTextColor; |
| Public | property SelectionBackgroundColor : TCefColor read GetSelectionBackgroundColor write SetSelectionBackgroundColor; |
| Public | property PlaceholderText : ustring read GetPlaceholderText write SetPlaceholderText; |
| Public | procedure SetPasswordInput(password_input: boolean); |
|
Sets whether the text will be displayed as asterisks. Attributes
| |
| Public | function IsPasswordInput: boolean; |
|
Returns true (1) if the text will be displayed as asterisks. | |
| Public | procedure SetReadOnly(read_only: boolean); |
|
Sets whether the text will read-only. | |
| Public | function IsReadOnly: boolean; |
|
Returns true (1) if the text is read-only. | |
| Public | function GetText: ustring; |
|
Returns the currently displayed text. | |
| Public | procedure SetText(const text_: ustring); |
|
Sets the contents to |text|. The cursor will be moved to end of the text if the current position is outside of the text range. | |
| Public | procedure AppendText(const text_: ustring); |
|
Appends |text| to the previously-existing text. | |
| Public | procedure InsertOrReplaceText(const text_: ustring); |
|
Inserts |text| at the current cursor position replacing any selected text. | |
| Public | function HasSelection: boolean; |
|
Returns true (1) if there is any selected text. | |
| Public | function GetSelectedText: ustring; |
|
Returns the currently selected text. | |
| Public | procedure SelectAll(reversed: boolean); |
|
Selects all text. If |reversed| is true (1) the range will end at the logical beginning of the text; this generally shows the leading portion of text that overflows its display area. | |
| Public | procedure ClearSelection; |
|
Clears the text selection and sets the caret to the end. | |
| Public | function GetSelectedRange: TCefRange; |
|
Returns the selected logical text range. | |
| Public | procedure SelectRange(const range: TCefRange); |
|
Selects the specified logical text range. | |
| Public | function GetCursorPosition: NativeUInt; |
|
Returns the current cursor position. | |
| Public | procedure SetTextColor(color: TCefColor); |
|
Sets the text color. | |
| Public | function GetTextColor: TCefColor; |
|
Returns the text color. | |
| Public | procedure SetSelectionTextColor(color: TCefColor); |
|
Sets the selection text color. | |
| Public | function GetSelectionTextColor: TCefColor; |
|
Returns the selection text color. | |
| Public | procedure SetSelectionBackgroundColor(color: TCefColor); |
|
Sets the selection background color. | |
| Public | function GetSelectionBackgroundColor: TCefColor; |
|
Returns the selection background color. | |
| Public | procedure SetFontList(const font_list: ustring); |
|
Sets the font list. The format is "<FONT_FAMILY_LIST>,[STYLES] <SIZE>", where: - FONT_FAMILY_LIST is a comma-separated list of font family names, - STYLES is an optional space-separated list of style names (case-sensitive "Bold" and "Italic" are supported), and - SIZE is an integer font size in pixels with the suffix "px". Here are examples of valid font description strings: - "Arial, Helvetica, Bold Italic 14px" - "Arial, 14px" | |
| Public | procedure ApplyTextColor(color: TCefColor; const range: TCefRange); |
|
Applies |color| to the specified |range| without changing the default color. If |range| is NULL the color will be set on the complete text contents. | |
| Public | procedure ApplyTextStyle(style: TCefTextStyle; add: boolean; const range: TCefRange); |
|
Applies |style| to the specified |range| without changing the default style. If |add| is true (1) the style will be added, otherwise the style will be removed. If |range| is NULL the style will be set on the complete text contents. | |
| Public | function IsCommandEnabled(command_id: TCefTextFieldCommands): boolean; |
|
Returns true (1) if the action associated with the specified command id is enabled. See additional comments on execute_command(). | |
| Public | procedure ExecuteCommand(command_id: TCefTextFieldCommands); |
|
Performs the action associated with the specified command id. | |
| Public | procedure ClearEditHistory; |
|
Clears Edit history. | |
| Public | procedure SetPlaceholderText(const text_: ustring); |
|
Sets the placeholder text that will be displayed when the Textfield is NULL. | |
| Public | function GetPlaceholderText: ustring; |
|
Returns the placeholder text that will be displayed when the Textfield is NULL. | |
| Public | procedure SetPlaceholderTextColor(color: TCefColor); |
|
Sets the placeholder text color. | |
| Public | procedure SetAccessibleName(const name: ustring); |
|
Set the accessible name that will be exposed to assistive technology (AT). | |
| Public | property PasswordInput : boolean read IsPasswordInput write SetPasswordInput; |
|
Returns true (1) if the text will be displayed as asterisks. | |
| Public | property ReadOnly : boolean read IsReadOnly write SetReadOnly; |
|
Returns true (1) if the text is read-only. | |
| Public | property Text : ustring read GetText write SetText; |
|
Returns the currently displayed text. | |
| Public | property SelectedText : ustring read GetSelectedText; |
|
Returns the currently selected text. | |
| Public | property TextColor : TCefColor read GetTextColor write SetTextColor; |
|
Returns the text color. | |
| Public | property SelectionTextColor : TCefColor read GetSelectionTextColor write SetSelectionTextColor; |
|
Returns the selection text color. | |
| Public | property SelectionBackgroundColor : TCefColor read GetSelectionBackgroundColor write SetSelectionBackgroundColor; |
|
Returns the selection background color. | |
| Public | property PlaceholderText : ustring read GetPlaceholderText write SetPlaceholderText; |
|
Returns the placeholder text that will be displayed when the Textfield is NULL. | |