SingleLineEdit control
A SingleLineEdit is a box in which the user can enter a single line
of text. You typically use a SingleLineEdit as an input field.
Properties
|
SingleLineEdit property |
Datatype |
Description |
|---|---|---|
|
Integer |
Specifies the ASCII value of the key you want to |
|
|
String |
A description of the control and/or its purpose for |
|
|
String |
A label that briefly describes the control, such as |
|
|
AccessibleRole (enumerated) |
Describes what kind of user interface element the |
|
|
Boolean |
Specifies whether the control automatically scrolls TRUE — Control automatically scrolls FALSE — Control does not |
|
|
Long |
Specifies the numeric value of the background |
|
|
Boolean |
Specifies whether the control has a border. Values TRUE — Control has a border. FALSE |
|
|
BorderStyle (enumerated) |
Specifies the style of the border of the control. StyleBox! StyleLowered! StyleRaised! StyleShadowBox! |
|
|
Boolean |
Specifies whether PowerBuilder moves the control to TRUE — Control moved to top. FALSE |
|
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing |
|
Boolean |
Specifies whether the text in the control is TRUE — Text cannot be changed by FALSE — Text can be changed by |
|
|
Boolean |
Specifies whether PowerBuilder puts the control TRUE — FALSE — When the control is clicked, the |
|
|
String |
Specifies the name of the stock icon or the file When the user drags the control, the |
|
|
Boolean |
Specifies whether the control is enabled (can be TRUE — Control can be FALSE — Control cannot be |
|
|
String |
Specifies the name of the typeface in which the |
|
|
FontCharSet (enumerated) |
Specifies the font character set used for the text |
|
|
FontFamily (enumerated) |
Specifies the font family (type style) used for the AnyFont! Decorative! Modern! Roman! Script! Swiss! |
|
|
FontPitch (enumerated) |
Specifies the pitch (spacing) of the font used for Default! Fixed! Variable! |
|
|
Integer |
Specifies the height of the control, in |
|
|
Boolean |
Specifies whether selected text stays selected TRUE — Text does not stay FALSE — Text stays |
|
|
ImeMode |
Integer |
Specifies the input method editor mode. This |
|
Boolean |
Specifies whether the text in the control is TRUE — Text is FALSE — Text is not italic. |
|
|
Integer |
Specifies the maximum number of characters (0 to |
|
|
Boolean |
Specifies whether the control is a password field TRUE — Control is a password FALSE — Control is not a password |
|
|
String |
Specifies a short description for the expected |
|
|
String |
Specifies the name of the stock pointer or the file |
|
|
Boolean |
Specifies that characters should be displayed in TRUE — Characters display in right-to-left FALSE — Characters display in left-to-right |
|
|
Integer |
Specifies the tab value of the control within the |
|
|
String |
Specifies the tag value assigned to the |
|
|
String |
Specifies the text that displays in the |
|
|
TextCase (enumerated) |
Specifies the case in which text entered in the AnyCase! Lower! Upper! |
|
|
Long |
Specifies the numeric value of the color used for |
|
|
Integer |
Specifies the size of the text in the control, in |
|
|
Boolean |
Specifies whether the text in the control is TRUE — Text is FALSE — Text is not |
|
|
Boolean |
Specifies whether the control is visible. Values TRUE — Control is visible. FALSE |
|
|
Integer |
Specifies the stroke weight of the text in the |
|
|
Integer |
Specifies the width of the control, in PowerBuilder |
|
|
Integer |
Specifies the X position (the distance from the |
|
|
Integer |
Specifies the Y position (the distance from the top |
Events
|
SingleLineEdit event |
Occurs |
|---|---|
|
Immediately before the Open event occurs in the |
|
|
Immediately after the Close event occurs in the |
|
|
When a dragged control is dropped on the |
|
|
When a dragged control enters the |
|
|
When a dragged control leaves the |
|
|
When a dragged control is within the |
|
|
Just before the control receives focus (before it |
|
|
When the user presses the F1 key or drags the |
|
|
When the control loses focus (becomes |
|
|
When the control text has been changed and the user |
|
|
When a Windows message occurs that is not a |
|
|
When the right mouse button is pressed on the |
Functions
|
SingleLineEdit function |
Datatype returned |
Description |
|---|---|---|
|
Boolean |
Returns true if the Undo function can be used to |
|
|
String |
Returns the name assigned to the |
|
|
Integer |
Clears the selected text (if any) from the control |
|
|
Integer |
Copies (but does not delete) the selected text (if |
|
|
Integer |
Cuts (deletes) the selected text (if any) from the |
|
|
Integer |
Starts or ends the dragging of a |
|
|
Integer |
Creates a reference to a context-specific instance |
|
|
PowerObject |
Returns a reference to the name of the parent |
|
|
Integer |
Makes the control invisible. |
|
|
Integer |
Moves the control to a specified |
|
|
Integer |
Inserts the contents of the clipboard (if any) at |
|
|
Integer |
Returns the distance of the pointer from the left |
|
|
Integer |
Returns the distance of the pointer from the top of |
|
|
Integer |
Returns the position of the insertion point in the |
|
|
Boolean |
Adds an event to the end of the message queue for |
|
|
Integer |
Prints the control. |
|
|
Integer |
Replaces the currently selected text (if any) with |
|
|
Integer |
Changes the size of the control. |
|
|
Integer |
Returns the length of the selected text (if any) in |
|
|
Integer |
Returns the starting position of the selected text |
|
|
String |
Returns a string with the selected text (if any) |
|
|
Integer |
Selects the text in the control specified by the |
|
|
Integer |
Sets focus to the control. |
|
|
Integer |
Specifies the position of the control in the |
|
|
Integer |
Controls automatic redrawing of the control after |
|
|
Integer |
Makes the control visible. |
|
|
Integer |
Triggers a specified event in the control and |
|
|
Object |
Returns the type of the control. |
|
|
Integer |
Cancels the previous editing function performed in |