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 might use an EditMask to format a telephone number or date automatically as the user enters it.
EditMask property |
Datatype |
Description |
---|---|---|
Integer |
Specifies the ASCII value of the key you want to assign as the accelerator key for the control. |
|
String |
A description of the control and/or its purpose for use by accessibility tools such as readers for visually impaired users. |
|
String |
A label that briefly describes the control, such as the text in a button or the name of a menu item. |
|
AccessibleRole (enumerated) |
Describes what kind of user interface element the control is. |
|
Alignment (enumerated) |
Specifies the alignment of text in the control. Values are:
|
|
Boolean |
Specifies whether PowerBuilder automatically scrolls left or right when data is entered into or deleted from the control. Values are:
|
|
Boolean |
Specifies whether to skip to the next control when the last character in the edit mask has been entered. Values are:
|
|
Boolean |
Specifies whether PowerBuilder automatically scrolls up or down when data is entered into or deleted from the control. Values are:
|
|
Long |
Specifies the numeric value of the background color: –2 to 16,777,215. For more information about color, see the RGB function in the PowerScript Reference. |
|
Boolean |
Specifies whether the control has a border. Values are:
|
|
BorderStyle (enumerated) |
Specifies the style of the border of the control. Values are:
|
|
Boolean |
Specifies whether PowerBuilder moves the control to the top of the front-to-back order in the window:
|
|
Long |
Specifies the numeric value of the background color of the calendar: -2 to 16,777,215. For more information about color, see the RGB function in the PowerScript Reference. The default is Window Background. |
|
Long |
Specifies the numeric value of the color of text in the calendar: -2 to 16,777,215. For more information about color, see the RGB function in the PowerScript Reference. The default is Window Text. |
|
Long |
Specifies the numeric value of the background color of the calendar’s title: -2 to 16,777,215. For more information about color, see the RGB function in the PowerScript Reference. |
|
Long |
Specifies the numeric value of the color used for text in the calendar’s title: -2 to 16,777,215. For more information about color, see the RGB function in the PowerScript Reference. |
|
Long |
Specifies the numeric value of the color used for leading and trailing days in the calendar: -2 to 16,777,215. For more information about color, see the RGB function in the PowerScript Reference. |
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing information about the class definition of the object or control. |
DisplayData |
String |
Specifies the data that initially displays in the control. |
Boolean |
Specifies whether the text in the control is display-only and cannot be changed by the user. Values are:
|
|
Boolean |
Specifies whether PowerBuilder puts the control automatically into Drag mode. Values are:
|
|
String |
Specifies the name of the stock icon or the file containing the icon you want to display when the user drags the control (the ICO file). The default icon is a box the size of the control. When the user drags the control, the icon displays when the control is over an area in which the control can be dropped (a valid drop area). When the control is over an area that is not a valid drop area, the No-Drop icon displays. |
|
Boolean |
Whether a drop-down calendar displays in a control with a Date or DateTime edit mask. Values are:
|
|
Boolean |
Specifies whether the drop-down calendar is aligned with the right or left side of the control. Values are:
|
|
Boolean |
Specifies whether the control is enabled (can be selected):
|
|
String |
Specifies the name of the typeface in which the text of the control displays (for example, ARIAL or COURIER). |
|
FontCharSet (enumerated) |
Specifies the font character set used for the text in the control. For a complete list of possible values, see the list of properties for the FontCharSet variable on the Enumerated tab page of the Browser. |
|
FontFamily (enumerated) |
Specifies the font family (type style) used for the text in the control. Values are:
|
|
FontPitch (enumerated) |
Specifies the pitch (spacing) of the font used for the text in the control. Values are:
|
|
Integer |
Specifies the height of the control, in PowerBuilder units. |
|
Boolean |
Specifies whether a horizontal scroll bar displays in the control when all the data cannot be displayed at one time. Values are:
|
|
Boolean |
Specifies whether selected text stays selected (highlighted) even when the control does not have focus:
|
|
Boolean |
Specifies whether the Clicked event for the window’s Default command button is triggered when user presses Enter. Values are:
|
|
ImeMode |
Integer |
Specifies the input method editor mode. This property is relevant only to applications running on a Japanese version of PowerBuilder. |
Double |
Specifies the increment of the spin. |
|
Boolean |
Specifies whether the text in the control is italic. Values are:
|
|
Integer |
Specifies the maximum number of characters (0 to 32,767) that can be entered in the control (0 means unlimited). |
|
String |
Specifies the mask to use to format and edit data in the control. |
|
MaskDataType (enumerated) |
Specifies the datatype of the control. Values are:
|
|
String |
Specifies the minimum and maximum values for the spin. |
|
String |
Specifies the name of the stock pointer or the file containing the pointer used for the control. |
|
RightToLeft |
Boolean |
Specifies that characters should be displayed in right-to-left order. The application must be running on an operating system that supports right-to-left display. Values are:
|
Boolean |
Specifies whether to scroll through the spin values. Values are:
|
|
Integer |
Specifies the tab value of the control within the window (0 means the user cannot tab to the control). |
|
Integer |
Specifies the positions of tab stops in the control. |
|
String |
Specifies the tag value assigned to the control. |
|
String |
Specifies the text that displays in the control. |
|
Long |
Specifies the color to be used for the text in the control. For more information about color, see the RGB function in the PowerScript Reference. |
|
TextCase (enumerated) |
Specifies the case used to display text the user enters. Values are:
|
|
Integer |
Specifies the size of the text in the control, in points. For backward compatibility, the size is stored as a negative number; for example, 10-point text size is stored as -10. For information about TextSize and EditMask behavior, see online Help. |
|
Boolean |
Specifies whether the text in the control is underlined.. Values are:
|
|
Boolean |
Specifies whether PowerBuilder uses the code table for the column to validate data. Values are:
|
|
Boolean |
Specifies whether the control is visible. Values are:
|
|
Boolean |
Specifies whether a vertical scroll bar displays in the control when not all the data can be displayed at one time. Values are:
|
|
Integer |
Specifies the stroke weight of the text in the control; for example, 400 for normal or 700 for bold. |
|
Integer |
Specifies the width of the control, in PowerBuilder units. |
|
Integer |
Specifies the X position (the distance from the left edge of the window), in PowerBuilder units. |
|
Integer |
Specifies the Y position (the distance from the top of the window), in PowerBuilder units. |
EditMask event |
Occurs |
---|---|
Immediately before the Open event occurs in the window. |
|
Immediately after the Close event occurs in the window. |
|
When a dragged control is dropped on the control. |
|
When a dragged control enters a target control. |
|
When a dragged control leaves the control. |
|
When a dragged control is within the control. |
|
Just before the control receives focus (before it is selected and becomes active). |
|
When the user presses the F1 key or drags the context help button (question mark) from the title bar to a menu item or control. |
|
When the control loses focus (becomes inactive) |
|
When a control has been changed and loses focus (becomes inactive). |
|
When a Windows message occurs that is not a PowerBuilder event. |
|
When the right mouse button is pressed on the control. |
EditMask function |
Datatype returned |
Description |
---|---|---|
Boolean |
Returns true if the Undo function can be used to undo the last edit in the control and returns false if it cannot. |
|
String |
Returns the name assigned to the control. |
|
Integer |
Clears the selected text (if any) from the control but does not place it in the clipboard. |
|
Integer |
Copies (but does not delete) the selected text (if any) from the control to the clipboard. |
|
Integer |
Cuts (deletes) the selected text (if any) from the control and places it in the clipboard. |
|
Integer |
Starts or ends the dragging of the control. |
|
Integer |
Creates a reference to a context-specific instance of the specified service. |
|
Integer |
Obtains the unformatted data in the control. |
|
PowerObject |
Returns a reference to the name of the parent object. |
|
Integer |
Makes the control invisible. |
|
Integer |
Returns the number of lines in the EditMask in the window. |
|
Integer |
Returns the length of the line in which the cursor is positioned. |
|
Integer |
Moves the control to the specified location. |
|
Integer |
Inserts the contents of the clipboard at the insertion point in the specified control. |
|
Integer |
Returns the distance the pointer is from the left edge of the control. |
|
Integer |
Returns the distance the pointer is from the top of the control. |
|
Integer |
Returns the position of the insertion point in the control. |
|
Boolean |
Adds the specified event to the end of the message queue for the control. |
|
Integer |
Prints the control. |
|
Integer |
Replaces the currently selected text with the specified string. If no text is selected, inserts the text at the insertion point. |
|
Integer |
Changes the width and height of the control. |
|
Integer |
Moves the contents of the control up or down the specified number of lines. |
|
Integer |
Returns the total number of characters and spaces (length) in the selected text in the control. |
|
Integer |
Returns the number of the line where the insertion point is located in the control. |
|
Integer |
Returns the position of the first character in the selected text in the control. |
|
String |
Determines what if any text is selected in the control. |
|
Integer |
Selects text in the control beginning at the specified position and continuing for the specified number of characters. |
|
Integer |
Sets focus to the control. |
|
Integer |
Specifies the contents and datatype of the edit mask for the control. |
|
Integer |
Specifies the position of the control in the front-to-back order of the window. |
|
Integer |
Controls automatic redrawing of the control after each change in its properties. |
|
Integer |
Makes the control visible. |
|
String |
Returns the entire text of the line in which the insertion point is currently located. |
|
Integer |
Triggers a specified event in the control and executes the script for the event. |
|
Object |
Returns the type of the control. |
|
Integer |
Cancels the previous editing function performed in the control. |