Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 1.27 KB

File metadata and controls

48 lines (38 loc) · 1.27 KB

RunLayoutDialogN

Description

Displays the specified dialog and initiates the dialog event loop. The dialog event loop is specified in a procedure subroutine that is passed as a parameter to the function.

FUNCTION RunLayoutDialogN(
				dialogID             : LONGINT;
				callback             : PROCEDURE;
				enableContextualHelp : BOOLEAN): LONGINT;
def vs.RunLayoutDialogN(dialogID, callback, enableContextualHelp):
    return LONGINT

Parameters

Name Type Description
dialogID LONGINT The index of the dialog to be displayed.
callback PROCEDURE The event loop subroutine for the dialog.
enableContextualHelp BOOLEAN Determines whether or not contextual help is accessible

Examples

resultN := RunLayoutDialogN(1, callback, TRUE);
import vs

# Displays the specified dialog and initiates the dialog event loop.
def handle_object(objHandle):
    vs.Message('Processing: ' + str(objHandle))

dialogID = 1
callback = handle_object
enableContextualHelp = True

resultN = vs.RunLayoutDialogN(dialogID, callback, enableContextualHelp)
vs.Message('RunLayoutDialogN returned: ' + str(resultN))

Version

Availability: from Vectorworks 2018

Category