04-02-2018, 04:25 PM
Wait, it CAN be done!
In a callback for e.g. a text field called when settings change, add something like this:
Of course, you'll want to add more code so the temporary art is removed after each update or cancel, but kept if the user clicks OK. At least with simple art redraws there's no discernible flickering of the dialog.
Simple, but by golly, it works! :-)
In a callback for e.g. a text field called when settings change, add something like this:
Code:
this->myModalDlg.dismiss();
goDrawStuff();
HDI_CORE_ILLUSTRATOR->currentDocument()->redraw();
this->myModalDlg.show();
Of course, you'll want to add more code so the temporary art is removed after each update or cancel, but kept if the user clicks OK. At least with simple art redraws there's no discernible flickering of the dialog.
Simple, but by golly, it works! :-)