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 number returnValue=sim.msgBox(number dlgType,number buttons,string title,string message)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page