Skip to main content
6 events
when toggle format what by license comment
Jun 12, 2020 at 21:05 review Low quality posts
Jun 12, 2020 at 21:19
Jun 12, 2020 at 20:55 comment added Mark The return value is used. That is why the programmer called a modal dialog. All user interface runs on the same thread. So it is not common at all for GUI to have multiple threads. The program isn't sleeping it is waiting on a function return, a different thing altogether.
Jun 12, 2020 at 20:49 comment added Socowi I'm very well aware that most applications cannot continue to run without the return value from the modal dialog. However, there still could be workarounds for some cases. a) If the return value is not used, create a modeless dialog and return a dummy value. b) If the return value is absolutely required, but the code creating the modal dialog runs in its own thread (which is pretty common for GUIs) then create a modeless dialog and sleep. When the dialog is closed, an interrupt is sent to the sleeping thread and the data from the modeless dialog is returned.
Jun 12, 2020 at 8:32 comment added Socowi ✱ For instance, "you can only set gamma when the app is full screen" and yet DxWnd can force fullscreen-only applications to run in a window. Also, some applications might not use the return value of the modal dialog at all.
Jun 12, 2020 at 8:32 comment added Socowi Thank you for your reply. However, I do not understand your point. To me it seems like you just quoted a (needlessly long) description of the differences between a modal and non-modal dialog. Yes, there are some technical difficulties like A modeless dialog box cannot return a value but that does not necessarily mean that my request is impossible ✱. Maybe I could understand you, if you shortened the quotes to the relevant parts and added more explanations on how you came to your conclusion.
Jun 12, 2020 at 8:05 history answered Mark CC BY-SA 4.0