Showing results for 
Search instead for 
Do you mean 

OK Callback C++ NX Open NX 8.5

Goodmorning everyone, 
is it possible, working with nx open( c++) to manage the "ok" callback avoiding both dialog box closure at click and the error message?


More in general, how can I manage the "OK" key in a dialog window created with block UI Styler?


Re: OK Callback C++ NX Open NX 8.5

You do have access to the ok_cb.  Default behavior is to call the apply_cb and then close the dialog.  If you return an errorCode different from 0, the dialog will not close.


Make sure the OK is turned to True in the Code Generation tab of the Block UI Styler, under Dialog Callbacks.