Creates an password text field control in a dialog layout.
PROCEDURE CreateEditPassword(
dialogID : LONGINT;
itemID : LONGINT;
widthInStdChar : LONGINT);def vs.CreateEditPassword(dialogID, itemID, widthInStdChar):
return None| Name | Type | Description |
|---|---|---|
| dialogID | LONGINT | The index of the dialog layout containing the control. |
| itemID | LONGINT | The index that will identify the control item. |
| widthInStdChar | LONGINT | The width of the displayed text in standard character count. See GetDlgCtrlWidthStdCh. |
PROCEDURE Example;
VAR
dialog1 :INTEGER;
result :INTEGER;
PROCEDURE Dialog_Handler(VAR item :LONGINT; data :LONGINT);
BEGIN
END;
BEGIN
dialog1 := CreateLayout('Example Dialog', FALSE, 'OK', 'Cancel');
CreateEditPassword(dialog1, 4, 16);
SetFirstLayoutItem(dialog1, 4);
result := RunLayoutDialog(dialog1, Dialog_Handler);
END;
RUN(Example);VS Functions: GetDlgCtrlWidthStdCh
Availability: from Vectorworks 2019