Skip to content

Latest commit

 

History

History
51 lines (43 loc) · 1.17 KB

File metadata and controls

51 lines (43 loc) · 1.17 KB

CreateEditPassword

Description

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

Parameters

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.

Examples

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);

See Also

VS Functions: GetDlgCtrlWidthStdCh

Version

Availability: from Vectorworks 2019

Category