Regular API function

simGetDialogResult (remote API equivalent: simxGetDialogResult)

Description Queries the result of a dialog box. To be used after simDisplayDialog was called
C synopsis simInt simGetDialogResult(simInt genericDialogHandle)
C parameters
genericDialogHandle: handle of the generic dialog
C return value
result of the dialog or -1 in case of an error.

Note. If the return value is sim_dlgret_still_open, the dialog was not closed and no button was pressed. Otherwise, you should free resources with simEndDialog (the dialog might not be visible anymore, but is still present)
Lua synopsis number result=simGetDialogResult(number genericDialogHandle)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page