Skip to content

Latest commit

 

History

History
55 lines (44 loc) · 1.18 KB

File metadata and controls

55 lines (44 loc) · 1.18 KB

SelectEditText

Description

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

Parameters

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.

Examples

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)

Version

Availability: from Vectorworks 2010

Category