IgnoreDefaultButton
property for PowerScript controls
Applies to
EditMask, MultiLineEdit controls
Description
The IgnoreDefaultButton property specifies whether the Clicked event
for the window’s default button is triggered when user presses
Enter.
When this property is enabled, pressing Enter does not trigger the
Clicked event, but instead adds a new line in the control.
When this property is not enabled, pressing Enter does trigger the
Clicked event and a new line is not added in the control.
Usage
In a painter
To set the IgnoreDefaultButton property:
-
Select the Ignore Default Button check box on the General page
of the control’s Properties view.
In scripts
The IgnoreDefaultButton property takes a boolean value. The default
is false.
The following example specifies that pressing Enter does not trigger
the Clicked event for the window’s default button and adds a new line in
the MultiLineEdit control instead:
|
1 |
mle_1.IgnoreDefaultButton = TRUE |