Regular API function

simMsgBox / sim.msgBox

Description Opens a modal message box for interaction with the user. See also sim.fileDialog and sim.displayDialog
C synopsis simInt simMsgBox(simInt dlgType,simInt buttons,const simChar* title,const simChar* message)
C parameters
dlgType: the message box type.
buttons: the buttons to display.
title: title of the dialog
message: the message to display
C return value
a message box return value. When the <esc> key, or the dialog close button was pressed, then the return value is:
yes/no dialog: sim.msgbox_return_no
ok dialog: sim.msgbox_return_ok
ok/cancel dialog: sim.msgbox_return_cancel
yes/no/cancel dialog: sim.msgbox_return_cancel
Lua synopsis int returnValue=sim.msgBox(int dlgType,int buttons,string title,string message)
Lua parameters
Similar to the C-function counterpart
Lua return values
Similar to the C-function counterpart