@TIG
Thanks for the hint, unfortunately it doesn't help, I'm getting the correct values for face and dist outputs. BUT, I tried to call message box in others callbacks, it worked in every case.
So what was wrong with this particular callback ? Guess what, one CANNOT call a UI.messagebox after a webdialog (or html dialog) closes, modal or non-modal.
There's some kind of logic here...
This doesn't work:
# callback cancel
@web_dialog.add_action_callback("dlg_cancel_settings") { |d, p|
@web_dialog.close()
r=UI.messagebox("Are you sure ?",MB_YESNO)
}
This works:
# callback cancel
@web_dialog.add_action_callback("dlg_cancel_settings") { |d, p|
r=UI.messagebox("Are you sure ?",MB_YESNO)
@web_dialog.close()
}