TEST.prototype.beginEvent = function() { ... button = dialog.findChild("SelectContourButton"); button.setDefaultAction(RGuiAction.getByScriptFile("scripts/Select/SelectContour.js")); ...Q1) How can i execute the Select Contour by pushing a button on my dialog, please?
If my dialog is Modal then it blocks input to other visible windows in the same application, therefore i think I should execute my dialog as a Modeless dialog to then select the countour.
If the dialog is modeless then it is possible to open many instances of the same dialog, that's something I do not want.
Q2) Is it possible to create a singleton instance of a modeless dialog, please?
Thank you in advance for any advice you may have.
Regards,
Plane