EditMask control
An EditMask is a box similar to a SingleLineEdit in which the user
can enter and edit one line of text. The type and number of characters
entered is restricted by the edit mask, and the appearance of the text is
specified by the edit mask. For example, you can use an EditMask to format
a telephone number or date automatically as the user enters it.
Properties
|
EditMask 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 |
|
|
Alignment (enumerated) |
Specifies the alignment of text in the control. Center! Justify! Left! Right! |
|
|
Boolean |
Specifies whether PowerBuilder automatically TRUE — Scrolls FALSE — Does not scroll |
|
|
Boolean |
Specifies whether to skip to the next control when TRUE — Skip to the next control FALSE — Do not skip to the next |
|
|
Boolean |
Specifies whether PowerBuilder automatically TRUE — Scrolls vertically FALSE — Scrolling 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 FALSE — Control not moved to |
|
|
Long |
Specifies the numeric value of the background color This property does not work on the |
|
|
Long |
Specifies the numeric value of the text color in This property does not work on the Windows |
|
|
Long |
Specifies the numeric value of the background color This property does not work |
|
|
Long |
Specifies the numeric value of the color used for This property does not work |
|
|
Long |
Specifies the numeric value of the color used for This property does not work |
|
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing |
|
DisplayData |
String |
Specifies the data that initially displays in the |
|
Boolean |
Specifies whether the text in the control is TRUE — Text is display only. FALSE |
|
|
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 |
Whether a drop-down calendar displays in a control Yes No — |
|
|
Boolean |
Specifies whether the drop-down calendar is aligned TRUE — The calendar is aligned with the right FALSE — The calendar is |
|
|
Boolean |
Specifies whether the control is enabled (can be TRUE — Control is FALSE — Control is not |
|
|
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 a horizontal scroll bar displays TRUE — Horizontal scroll bar FALSE — Horizontal scroll bar not |
|
|
Boolean |
Specifies whether selected text stays selected TRUE — Text does not stay FALSE — Text stays |
|
|
Boolean |
Specifies whether the Clicked event for the TRUE — Do not trigger Clicked FALSE — Trigger |
|
|
ImeMode |
Integer |
Specifies the input method editor mode. This |
|
Double |
Specifies the increment of the spin. |
|
|
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 |
|
|
String |
Specifies the mask to use to format and edit data |
|
|
MaskDataType (enumerated) |
Specifies the datatype of the control. Values DateMask! DateTimeMask! DecimalMask! NumericMask! StringMask! TimeMask! |
|
|
String |
Specifies the minimum and maximum values for the |
|
|
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 |
|
|
Boolean |
Specifies whether to scroll through the spin TRUE — Scroll through the spin FALSE — Do not scroll through the spin |
|
|
Integer |
Specifies the tab value of the control within the |
|
|
Integer |
Specifies the positions of tab stops in the |
|
|
String |
Specifies the tag value assigned to the |
|
|
String |
Specifies the text that displays in the |
|
|
Long |
Specifies the color to be used for the text in the |
|
|
TextCase (enumerated) |
Specifies the case used to display text the user AnyCase! Lower! Upper! |
|
|
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 PowerBuilder uses the code table TRUE — FALSE — Does not |
|
|
Boolean |
Specifies whether the control is visible. Values TRUE — Control is visible. FALSE |
|
|
Boolean |
Specifies whether a vertical scroll bar displays in TRUE — Vertical scroll bar is FALSE — Vertical scroll bar is not |
|
|
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
|
EditMask 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 a target |
|
|
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 a control has been changed and loses focus |
|
|
When a Windows message occurs that is not a |
|
|
When the right mouse button is pressed on the |
Functions
|
EditMask 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 the |
|
|
Integer |
Creates a reference to a context-specific instance |
|
|
Integer |
Obtains the unformatted data in the |
|
|
PowerObject |
Returns a reference to the name of the parent |
|
|
Integer |
Makes the control invisible. |
|
|
Integer |
Returns the number of lines in the EditMask in the |
|
|
Integer |
Returns the length of the line in which the cursor |
|
|
Integer |
Moves the control to the specified |
|
|
Integer |
Inserts the contents of the clipboard at the |
|
|
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 the specified event to the end of the message |
|
|
Integer |
Prints the control. |
|
|
Integer |
Replaces the currently selected text with the |
|
|
Integer |
Changes the width and height of the |
|
|
Integer |
Moves the contents of the control up or down the |
|
|
Integer |
Returns the total number of characters and spaces |
|
|
Integer |
Returns the number of the line where the insertion |
|
|
Integer |
Returns the position of the first character in the |
|
|
String |
Determines what if any text is selected in the |
|
|
Integer |
Selects text in the control beginning at the |
|
|
Integer |
Sets focus to the control. |
|
|
Integer |
Specifies the contents and datatype of the edit |
|
|
Integer |
Specifies the position of the control in the |
|
|
Integer |
Controls automatic redrawing of the control after |
|
|
Integer |
Makes the control visible. |
|
|
String |
Returns the entire text of the line in which the |
|
|
Integer |
Triggers a specified event in the control and |
|
|
Object |
Returns the type of the control. |
|
|
Integer |
Cancels the previous editing function performed in |