Regular API function

simDisplayDialog / sim.displayDialog

Description Deprecated. See simUI.msgBox or simUI.inputDialog instead.
C/C++
synopsis
simInt simDisplayDialog(const simChar* titleText,const simChar* mainText,simInt dialogType,const simChar* initialText,void* nullptr,void* nullptr,void* nullptr)
C/C++
parameters
titleText: Title bar text
mainText: Information text
dialogType: generic dialog style
initialText: Initial text in the edit box if the dialog is of type sim_dlgstyle_input. Can be nullptr
C/C++
return value
handle of generic dialog if operation was successful, -1 otherwise.
Lua synopsis int dialogHandle=sim.displayDialog(string titleText,string mainText,int dialogType,bool modalDialog,string initialText)
Lua parameters
titleText: Title bar text
mainText: information text
dialogType: generic dialog style
modalDialog: specifies whether the dialog is modal. Modal dialogs are only allowed when not called from the main thread.
initialText: Initial text in the edit box if the dialog is of type sim_dlgstyle_input. Can be nil or omitted
Lua return values
dialogHandle: handle of generic dialog