#show_modal - HtmlDialog vs. WebDialog
-
Speaking to a few of the users of the Truss Plugin it still seems I have issues with Mac users when it comes to the WebDialog menus, the show_modal method does not work correctly and does not block the code which creates all sorts of havoc.
I am wondering if the newer HtmlDialog finally resolves this issue for MacOS, if so I would like to switch to the newer UI system even though it will probably break the plugin for all users of older version of SU.
-
Yes, WebDialogs are not truly modal on Mac. So you have two problems:
- The code processing continues after you called wldg.show_modal. You thus have to implemnet a
callback in your Web dialog class to tell the main code when the dialog box is dismissed. - Visually the web dialog appears on top but does not prevent to use other elements of the GUI.
Although the user may not do that naturally, he could technically.
It seems that HTML dialog has addressed the problem on Mac, that is blocking code and dialog box preempting the focus and events.
Fredo
- The code processing continues after you called wldg.show_modal. You thus have to implemnet a
Advertisement