TEdit - TObject TComponent TControl TWinControl TCustomEdit
AutoSelect | RW | b | Determines whether all the text in the edit control is automatically selected when the control gets focus. | |
PasswordChar | RW | s | Indicates the character, if any, to display in place of the actual characters typed in the control. |
TCustomEdit ** - TObject TComponent TControl TWinControl
BevelEdges | * | RW | n | Specifies which edges of the control are beveled. |
BevelInner | * | RW | n | Specifies the cut of the inner bevel. |
BevelKind | * | RW | n | Specifies the control’s bevel style. |
BevelOuter | * | RW | n | Specifies the cut of the outer bevel. |
BorderStyle | * | RW | n | Determines whether the edit control has a single line border around the client area. |
CanUndo | RO | b | Indicates whether the edit control contains changes that can be backed out. | |
Clear | ME | Deletes all text from the edit control. | ||
ClearSelection | ME | Removes the selected text from the edit control. | ||
CopyToClipboard | ME | Copies the selected text in the edit control to the Clipboard in CF_TEXT format. | ||
CutToClipboard | ME | Copies the selected text to the Clipboard in CF_TEXT format and then deletes the selection. | ||
HideSelection | * | RW | b | Determines whether the visual indication of the selected text remains when focus shifts to another control. |
MaxLength | * | RW | n | Specifies the maximum number of characters the user can enter into the edit control. |
Modified | RW | b | Indicates whether the user edited the text of the edit control. | |
OnChange | * | EV | Occurs when the text for the edit control may have changed. | |
PasteFromClipboard | ME | Pastes the contents of the Clipboard into edit control, replacing the current selection. | ||
ReadOnly | * | RW | b | Determines whether the user can change the text of the edit control. |
SelLength | RW | n | Specifies the number of characters (bytes) that are selected. | |
SelStart | RW | n | Specifies the position of the first selected character in the text. | |
SelText | RW | s | Specifies the selected portion of the edit control’s text. | |
SelectAll | ME | Selects all text in the edit control. | ||
Text | * | RW | s | Contains a text string that appears within the control. |
Undo | ME | Backs out all changes in the undo buffer. |
TWinControl ** - TObject TComponent TControl
CanFocus | RO | b | Indicates whether a control can receive focus. | |
Focused | RO | b | Determines whether the control has input focus. | |
Handle | RO | n | Provides direct access to the underlying Windows screen object for the control. | |
OnEnter | * | EV | Occurs when a control receives the input focus. | |
OnExit | * | EV | Occurs when the input focus shifts away from one control to another. | |
SetFocus | ME | Gives the input focus to the control. | ||
TabOrder | * | RW | n | Indicates the position of the control in its parent's tab order. |
TabStop | * | RW | b | Determines if the user can tab to a control. |
TControl ** - TObject TComponent
Align | RW | n | Determines how the control aligns within its container (parent control). | |
Anchors | * | RW | n | Specifies how the control is anchored to its parent. |
BringToFront | ME | Puts the control in front of all other controls in its parent control. | ||
ClientHeight | RW | n | Specifies the vertical size of the control's client area in pixels. | |
ClientWidth | RW | n | Specifies the horizontal size of the control's client area in pixels. | |
Color | * | RW | n | Specifies the background color of the control. |
Constraints | * | RO | (TSizeConstraints) | Specifies the size constraints for the control. |
Cursor | RW | n | Specifies the image used to represent the mouse pointer when it passes into the region covered by the control. | |
Enabled | * | RW | b | Controls whether the control responds to mouse, keyboard, and timer events. |
Font | * | RO | (TFont) | Controls the attributes of text written on or in the control. |
Height | RW | n | Specifies the vertical size of the control in pixels. | |
Hide | ME | Makes the control invisible. | ||
Hint | RW | s | Contains the text string that can appear when the user moves the mouse over the control and pauses momentarily. | |
Left | RW | n | Specifies the X coordinate of the top left corner of a control, relative to its parent or containing control in pixels. | |
OnClick | * | EV | Occurs when the user clicks the control. | |
OnDblClick | * | EV | Occurs when the user double-clicks the left mouse button when the mouse pointer is over the control. | |
Parent | RW | [TWinControl] | Indicates the parent of the control. | |
PopupMenu | * | RW | [TPopupMenu] | Identifies the pop-up menu associated with the control. |
SendToBack | ME | Puts a windowed control behind all other windowed controls, or puts a non-windowed control behind all other non-windowed controls. | ||
Show | ME | Makes a control visible. | ||
ShowHint | * | RW | b | Determines whether the control displays a Help Hint when the mouse pointer rests momentarily on the control. |
Top | RW | n | Specifies the Y coordinate of the top left corner of a control, relative to its parent or containing control in pixels. | |
Visible | * | RW | b | Determines whether the component appears onscreen. |
Width | RW | n | Specifies the horizontal size of the control or form in pixels. |
TComponent ** - TObject
Name | RW | s | Specifies the name of the component. | |
Tag | RW | n | Stores an integer value as part of a component. |
TObject ** -
ClassName | RO | s | Returns a string indicating the type of the object instance. |
Determines whether all the text in the edit control is automatically selected when the control gets focus.
Set AutoSelect to select all the text when the edit control gets focus, e.g. when the user is more likely to replace the text in the edit control than to append to it.
Indicates the character, if any, to display in place of the actual characters typed in the control.
Use the PasswordChar property to create an edit control that displays a special character in place of any entered text. If PasswordChar is set to an empty string, the edit control displays its text normally. If PasswordChar is any other character, the edit control displays PasswordChar in place of each character typed. PasswordChar affects the appearance of the edit control only. The value of the Text property reflects the actual characters that are typed.
Specifies which edges of the control are beveled.
Use BevelEdges to get or set which edges of the control are beveled. The BevelInner, BevelOuter, and BevelKind properties determine the appearance of the specified edges.
Specifies the cut of the inner bevel.
Use BevelInner to specify whether the inner bevel has a raised, lowered, or flat look. The inner bevel appears immediately inside the outer bevel. If there is no outer bevel (BevelOuter is bvNone), the inner bevel appears immediately inside the border.
Specifies the control’s bevel style.
Use BevelKind to modify the appearance of a bevel. BevelKind influences how sharply the bevel stands out. BevelKind, in combination with BevelWidth and the cut of the bevel specified by BevelInner or BevelOuter, can create a variety of effects. Experiment with various combinations to get the look you want.
Specifies the cut of the outer bevel.
Use BevelInner to specify whether the outer bevel has a raised, lowered, or flat look. The outer bevel appears immediately inside the border and outside the inner bevel.
TCustomEdit.BorderStyle - RW n
Determines whether the edit control has a single line border around the client area.
Use BorderStyle to affect the sharpness with which the client area of the edit control stands out. BorderStyle can have a value of either bsSingle or bsNone. If BorderStyle is bsSingle, the edit control has a single-line border around the client area. If BorderStyle is bsNone, there will be no border.
Indicates whether the edit control contains changes that can be backed out.
Read CanUndo to determine whether the user has made any changes to the text that can be undone by calling the Undo method. This is useful when enabling or disabling menu items that correspond to these commands.
Deletes all text from the edit control.
Use Clear to replace the Text property with an empty string. Clear removes all text, not just the selected text. To remove just the selected text, use ClearSelection.
TCustomEdit.ClearSelection - ME
Removes the selected text from the edit control.
Use ClearSelection to delete the selected text from the edit control. If no text is selected, ClearSelection does nothing. If all of the text is selected, ClearSelection clears all text, like the Clear method.
TCustomEdit.CopyToClipboard - ME
Copies the selected text in the edit control to the Clipboard in CF_TEXT format.
Use CopyToClipboard to replace the contents of the Clipboard with the selected text. CopyToClipboard does not clear the Clipboard if no text is selected. If no text is selected, CopyToClipboard does nothing.
TCustomEdit.CutToClipboard - ME
Copies the selected text to the Clipboard in CF_TEXT format and then deletes the selection.
Use CutToClipboard to replace the contents of the Clipboard with the selected text while clearing the selected text. If no text is selected, CutToClipboard does nothing.
TCustomEdit.HideSelection - RW b
Determines whether the visual indication of the selected text remains when focus shifts to another control.
Set HideSelection to false to provide visual feedback of the selected portion of the text even when the edit control does not have focus. Set HideSelection to true to show the selection only when the edit control has focus. HideSelection does not affect the actual value of the selection, only the visual indication. Always setting HideSelection to false can make forms with many edit controls look too busy.
Specifies the maximum number of characters the user can enter into the edit control.
Use MaxLength to limit the number of characters that can be entered into the edit control. A value of 0 indicates that there is no application-defined limit on the length. Note: Setting MaxLength will not truncate the existing text, it merely prevents the user from adding more text after reaching the limit of MaxLength characters. Even when MaxLength is 0, there may be limitations imposed by the operating system on the number of characters that may be entered into an edit control.
Indicates whether the user edited the text of the edit control.
Use Modified to determine whether the Text property of the edit control changed. If an application directly alters the Text property of an edit control, it should set the Modified property to true.
Occurs when the text for the edit control may have changed.
Write an OnChange event handler to take specific action whenever the text for the edit control may have changed. Use the Modified property to see if a change actually occurred. The Text property of the edit control will already be updated to reflect any changes. This event provides the first opportunity to respond to modifications that the user types into the edit control.
TCustomEdit.PasteFromClipboard - ME
Pastes the contents of the Clipboard into edit control, replacing the current selection.
Use PasteFromClipboard to replace the selected text with the contents of the Clipboard, or, if no text is selected, to insert the contents of the Clipboard at the cursor. If the Clipboard is empty, or if it does not contain anything in CF_TEXT format, PasteFromClipboard does nothing.
Determines whether the user can change the text of the edit control.
To restrict the edit control to display only, set the ReadOnly property to true. Set ReadOnly to false to allow the contents of the edit control to be edited. Setting ReadOnly to true ensures that the text is not altered, while still allowing the user to select text.
Specifies the number of characters (bytes) that are selected.
Read SelLength to determine the length, in bytes, of the selected text. This is the same as the number of characters, unless you are using a multi-byte character set. Set SelLength to change the selection.
Specifies the position of the first selected character in the text.
Read SelStart to determine the position of the first selected character, where 0 indicates the first character. If there is no selected text, SelStart indicates the position of the cursor. Set SelStart to remove the current selection and position the cursor just before the indicated character. To select a particular range of the text, first set SelStart to position the cursor, and then set SelLength to extend the selection.
Specifies the selected portion of the edit control’s text.
Read SelText to determine the value of the selected text. Set SelText to replace the selected text with a new string. If there is no selection, but the edit control has focus, set SelText to insert a new string into the text at the cursor.
Selects all text in the edit control.
Use SelectAll to select all text in the edit control. To select only part of the text, use the SelStart and SelLength properties.
Contains a text string that appears within the control.
---
Backs out all changes in the undo buffer.
Call Undo to cancel all changes made to the Text property. To determine whether there are any changes in the undo buffer, check the CanUndo property.
Indicates whether a control can receive focus.
Use CanFocus to find out if the control can receive input from the user. CanFocus returns true if both the control and its parent(s) have their Visible and Enabled properties set to true. If any of the Visible and Enabled properties of the control or the controls in which it is contained are not true then CanFocus returns false.
Determines whether the control has input focus.
Use Focused to see if the control is the active control. When Focused returns true, the control has the input focus. If Focused returns false, the user cannot interact with the control.
Provides direct access to the underlying Windows screen object for the control.
---
Occurs when a control receives the input focus.
Use the OnEnter event handler to cause any special processing to occur when a control becomes active. The OnEnter event does not occur when switching between forms or between another application and the application that includes the control. When switching between controls in separate container controls such as the TPanel and the TGroupBox controls, an OnEnter event occurs for the container before the OnEnter event of the contained control.
Occurs when the input focus shifts away from one control to another.
Use the OnExit event handler to provide special processing when the control ceases to be active. The OnExit event does not occur when switching between forms or between another application and your application. When switching between controls in separate container controls such as the TPanel and the TGroupBox controls, an OnExit event occurs for the control inside the container before the OnExit event of the container.
Gives the input focus to the control.
Use SetFocus to change input focus to the control. When a control has focus, it receives keyboard events.
Indicates the position of the control in its parent's tab order.
TabOrder is the order in which child windows are visited when the user presses the Tab key. The control with the TabOrder value of 0 is the control that has the focus when the form first appears. Initially, the tab order is always the order in which the controls were added to the form and each control has a unique tab-order value within its parent. If you change the TabOrder value of one control to be the same as the value of a second control, the values for all the other controls may change.
Determines if the user can tab to a control.
Use the TabStop to allow or disallow access to the control using the Tab key. If TabStop is true, the control is in the tab order. If TabStop is false, the control is not in the tab order and the user can't press the Tab key to move to the control. Note: TabStop is not meaningful for a form unless the form assigns another form to be its parent.
Determines how the control aligns within its container (parent control).
Use Align to align a control to the top, bottom, left, or right of a form or panel and have it remain there even if the size of the form, panel, or component that contains the control changes. When the parent is resized, an aligned control also resizes so that it continues to span the top, bottom, left, or right edge of the parent.
Specifies how the control is anchored to its parent.
Use Anchors to ensure that a control maintains its current position relative to an edge of its parent, even if the parent is resized. When its parent is resized, the control holds its position relative to the edges to which it is anchored. If a control should maintain contact with three edges of its parent, use the Align property instead. Unlike Anchors, Align allows controls to adjust to changes in the size of other aligned sibling controls as well as changes to the parent’s size.
Puts the control in front of all other controls in its parent control.
Call BringToFront to ensure that a form is visible or to reorder overlapping controls within a form. Without BringToFront, controls are stacked in the order they were placed on the form.
Specifies the vertical size of the control's client area in pixels.
Use ClientHeight to read or change the height of the control’s client area. For TControl, ClientHeight is the same as Height. Derived classes may implement a ClientHeight property that differs from Height. For example, the ClientHeight of a form is the value of the Height property minus the height of the resize border and scroll bars.
Specifies the horizontal size of the control's client area in pixels.
Use ClientWidth to read or change the width of the control’s client area. For TControl, ClientWidth is the same as Width. Derived classes may implement a ClientWidth property that differs from Width. For example, the ClientWidth of a form is the value of the Width property minus the width of the resize border and scroll bars.
Specifies the background color of the control.
Use Color to read or change the background color of the control.
TControl.Constraints - RO (TSizeConstraints)
Specifies the size constraints for the control.
Use Constraints to specify the minimum and maximum width and height of the control. When Constraints contains maximum or minimum values, the control cannot be resized to violate those constraints. Warning: Do not set up constraints that conflict with the value of the Align or Anchors property. When these properties conflict, the response of the control to resize attempts is not well-defined.
Specifies the image used to represent the mouse pointer when it passes into the region covered by the control.
Change the value of Cursor to provide feedback to the user when the mouse pointer enters the control.
Controls whether the control responds to mouse, keyboard, and timer events.
Use Enabled to change the availability of the control to the user. To disable a control, set Enabled to false. Disabled controls appear dimmed. If Enabled is false, the control ignores mouse, keyboard, and timer events. To re-enable a control, set Enabled to true. The control is no longer dimmed, and the user can use the control.
Controls the attributes of text written on or in the control.
To modify a font, change the value of the Color, Height, Name, Size, or Style of the TFont object.
Specifies the vertical size of the control in pixels.
Use the Height property to read or change the height of the control.
Makes the control invisible.
Call Hide to hide a control. Hide sets the Visible property of the control to false. Although a control that is hidden is not visible, its properties and methods are still available.
Contains the text string that can appear when the user moves the mouse over the control and pauses momentarily.
---
Specifies the X coordinate of the top left corner of a control, relative to its parent or containing control in pixels.
Use the Left property to determine where the left side of the control begins or to reposition the left side of the control. If the control is contained in another control, the Left and Top properties are relative to the parent control. If the control is contained directly by the form, the property values are relative to the form. For forms, the value of the Left property is relative to the screen in pixels.
Occurs when the user clicks the control.
Use the OnClick event handler to respond when the user clicks the control. Usually OnClick occurs when the user presses and releases the left mouse button with the mouse pointer over the control. This event can also occur when the user presses the accelerator key for a button or check box or when he presses the spacebar while they have focus. The same goes for check boxes and radio buttons when their Checked property is changed.
Occurs when the user double-clicks the left mouse button when the mouse pointer is over the control.
---
TControl.Parent - RW [TWinControl]
Indicates the parent of the control.
Use the Parent property to get or set the parent of this control. The parent of a control is the control that contains the control. For example, if an application includes three radio buttons in a group box, the group box is the parent of the three radio buttons, and the radio buttons are the child controls of the group box. To serve as a parent, a control must be an instance of a descendant of TWinControl. Changing the parent of a control moves the control onscreen so that it is displayed within the new parent. When the parent control moves, the child moves with the parent.
TControl.PopupMenu - RW [TPopupMenu]
Identifies the pop-up menu associated with the control.
Assign a value to PopupMenu to make a pop-up menu appear when the user selects the control and clicks the right mouse button.
Puts a windowed control behind all other windowed controls, or puts a non-windowed control behind all other non-windowed controls.
Use SendToBack to change the order of overlapping controls or forms. The order in which controls stack on top of each other (Z order) depends on the order the controls are placed on the form. Call the SendToBack method for the top object to move it below the other object. The stacking order of two windowed controls is the same as the stacking of two non-windowed controls, but the two cannot be mingled. For example, if you put a memo, a windowed control, on a form, and then put a label, a non-windowed control, on top of it, the label disappears behind the memo and calling the memo's SendToBack method does nothing, the label remains behind the memo. If the control has the input focus when the SendToBack method executes, it loses the input focus.
Makes a control visible.
Use the Show method to make visible a control that was previously hidden. The Show method sets the control’s Visible property to true and ensures that the parent control is also visible.
Determines whether the control displays a Help Hint when the mouse pointer rests momentarily on the control.
The Help Hint is the value of the Hint property, which is displayed in a box just beneath the control. Use ShowHint to determine whether a Help Hint appears for the control.
Specifies the Y coordinate of the top left corner of a control, relative to its parent or containing control in pixels.
Use Top to locate the top of the control or reposition the control to a different Y coordinate. The Top property, like the Left property, is the position of the control relative to its container. Thus, if a control is contained in a TPanel, the Left and Top properties are relative to the panel. If the control is contained directly by the form, it is relative to the form. For forms, the value of the Top property is relative to the screen in pixels.
Determines whether the component appears onscreen.
Use the Visible property to control the visibility of the control. If Visible is true, the control appears. If Visible is false, the control is not visible. Calling the Show method sets the control's Visible property to true. Calling the Hide method sets it to false.
Specifies the horizontal size of the control or form in pixels.
Use the Width property to read or change the width of the control.
Specifies the name of the component.
---
Stores an integer value as part of a component.
Tag has no predefined meaning. The Tag property is provided for the convenience of developers and can be used for storing an additional integer value.
Returns a string indicating the type of the object instance.
---