DIAdem Help

Object: Dialog

  • Updated2024-09-12
  • 2 minute(s) read

Object: Dialog

The Dialog object provides access to a user dialog box in DIAdem VIEW. You use the Dialog object to define the size of the dialog box and the basic properties of the user dialog box, and also variables and properties. You can design the user dialog box with the dialog editor in DIAdem SCRIPT.

The following example assigns a dialog box to the active area and displays this dialog box in red:

VBScriptPython

 

Dim oMySheet, oMyObj
Call View.NewLayout()
Set oMySheet = View.ActiveSheet
View.ActiveSheet.ActiveArea.DisplayObjType = "Dialog"
Set oMyObj = oMySheet.ActiveArea.DisplayObj
oMyObj.FileName = ProgramDrv & "Libr/Documents/ViewTemplate.sud"
oMyObj.DlgName = "Dlg1"
oMyObj.Dialog.Color = RGB(255, 0, 0)

Methods

ShowDialogDlg