Activates the given text component and selects its text. [MaKro] Hint: Can be used to set the cursor at end of text when used in combination with VS:DeselectEditText
PROCEDURE SelectEditText(
dialogID : LONGINT;
componentID : LONGINT);def vs.SelectEditText(dialogID, componentID):
return None| Name | Type | Description |
|---|---|---|
| dialogID | LONGINT | the dialog identifier given by CreateLayout or CreateResizableLayout |
| componentID | LONGINT | The identifier of the component that is to be activated and selected. |
SetupDialogC: BEGIN
SetItemText(dialogID, 4, Num2StrF (0));
SetItemText(dialogID, 6, Num2StrF (0));
SetBooleanItem(dialogID, 7, FALSE);
SelectEditText(dialogID, 4);
END;
SelectEditText(dialogID, method + 5);
END; {of SetUpDialogC}
BEGIN
EnableDis;
SelectEditText(selectSymbol, kSyms);
END;import vs
# Activates the given text component and selects its text.
dialogID = 1
componentID = 2
vs.SelectEditText(dialogID, componentID)Availability: from Vectorworks 2010