Description | Hierarchy | Fields | Methods | Properties |
type TGUIEditBox = class(TGUIElement)
Single line edit box for editing simple text.
![]() |
function GetTextDimension: TSize; inline; |
![]() |
procedure EnabledOverrideColor(Enable: Boolean=True); inline; |
![]() |
procedure SetOverrideColor(Color: TARGBColor); inline; |
![]() |
procedure SetOverrideFont(Font: TGUIFont); inline; |
![]() |
procedure SetPasswordChar(PWC: WideChar); inline; |
![]() |
procedure SetTextAlignment(Horizontal, Vertical: TGUIAlignment); inline; |
![]() |
property AutoScroll: Boolean read IsAutoScrollEnabled write EnableAutoScroll; |
![]() |
property DrawBorder: Boolean write SetDrawBorder; |
![]() |
property IsPasswordBox: Boolean read GetIsPasswordBox write SetIsPasswordBox; |
![]() |
property Maximum: LongWord read GetMax write SetMax; |
![]() |
property MultiLine: Boolean read IsMultiLineEnabled write SetMultiLine; |
![]() |
property WordWrap: Boolean read IsWordWrapEnabled write SetWordWrap; |
![]() |
function GetTextDimension: TSize; inline; |
Gets the size area of the text in the edit box in pixels. |
![]() |
procedure EnabledOverrideColor(Enable: Boolean=True); inline; |
Sets if the text should use the override color or the color in the gui skin. Parameters
|
![]() |
procedure SetOverrideColor(Color: TARGBColor); inline; |
Sets another color for the text. Parameters
|
![]() |
procedure SetOverrideFont(Font: TGUIFont); inline; |
![]() |
procedure SetPasswordChar(PWC: WideChar); inline; |
Switches to password box mode and sets a custom mask character. |
![]() |
procedure SetTextAlignment(Horizontal, Vertical: TGUIAlignment); inline; |
Sets text justification mode. Parameters |
![]() |
property AutoScroll: Boolean read IsAutoScrollEnabled write EnableAutoScroll; |
If set to true, the output scrolls automatically if the cursor outruns the screen. |
![]() |
property DrawBorder: Boolean write SetDrawBorder; |
Shows or hides the border around the edit box. |
![]() |
property IsPasswordBox: Boolean read GetIsPasswordBox write SetIsPasswordBox; |
If set to true, all characters will be masked with '*'; additionally, MultiLine, WordWrap and Ctrl-C / Ctrl-V will be disabled. |
![]() |
property Maximum: LongWord read GetMax write SetMax; |
The |
![]() |
property MultiLine: Boolean read IsMultiLineEnabled write SetMultiLine; |
If set to true, multi-line editing is enabled. |
![]() |
property WordWrap: Boolean read IsWordWrapEnabled write SetWordWrap; |
If set to true, lines exceeding the control width will be automatically wrapped around. |