Skip to content

Latest commit

 

History

History
53 lines (45 loc) · 1.28 KB

File metadata and controls

53 lines (45 loc) · 1.28 KB

CreateSearchEditBox

Description

Creates a search field control in a dialog layout.

PROCEDURE CreateSearchEditBox(
				dialogID       : LONGINT;
				itemID         : LONGINT;
				promptText     : STRING;
				widthInStdChar : LONGINT);
def vs.CreateSearchEditBox(dialogID, itemID, promptText, 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.
promptText STRING The default prompt text for the search control.
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');
	CreateSearchEditBox(dialog1, 4, 'search', 16);
	SetFirstLayoutItem(dialog1, 4);
	result := RunLayoutDialog(dialog1, Dialog_Handler);
END;
RUN(Example);

See Also

VS Functions: GetDlgCtrlWidthStdCh

Version

Availability: from Vectorworks 2019

Category