"hasSelectedText"
The attribute "hasSelectedText"; returns TRUE if the text of a textEdit has been selected.
Synopsis
getValue(string shape, "hasSelectedText", bool &selText);
Parameter
Parameter | Description |
---|---|
shape | Name of the object |
selText | Is a text selected (TRUE) or not (FALSE). |
Description
The attribute "hasSelectedText"; returns TRUE if the text of a textEdit has been selected.
Example
In the following example, the code returns TRUE if the text of a textEdit is selected and FALSE if not.
main(bool enter)
{
string sn = "TEXT_EDIT1";
bool st;
getValue(sn,"hasSelectedText", st);
DebugN("Is the text selected", st);
}
Assignment
TextEdit