Modeless dialog box problem while invoking Function app from the code
|
12-20-2019, 09:40 PM
Post: #1
|
|||
|
|||
Modeless dialog box problem while invoking Function app from the code
I attempted to write an application which would optimize the function, and then display it on the screen using built-in Function app.
It worked functionally, but I ran into UI problems I could not work around. Here is a simple application illustrating the problem: Code:
After the program is finished, it displays the dialog box. This dialog box can be used for displaying additional info, like in the example. The problem is with the behavior of the screen after the dialog box is displayed. This dialog box is *not* a modal one, like one could expect. If you start making sweeping gestures on the screen when it's displayed, the screen moves, and its contents get badly distorted. When the dialog box is closed (either by pressing soft Okay of hard Enter), the screen remains damaged, and to fix it you have to move it such that the distorted area is shifted out of the display area. Technically a small thing, but very annoying. Does anybody know of a better way to deal with a problem of invoking Function app from the code? Darius |
|||
12-21-2019, 12:56 AM
Post: #2
|
|||
|
|||
RE: Modeless dialog box problem while invoking Function app from the code
Interesting, same thing happens with MSGBOX (if used instead of RETURN). I expected both cases to disable the touchscreen above the menu area.
Actually the CHOOSE command behaves similarly as well, in that case I expected the touchscreen only inside the choose box and within menu area to respond. |
|||
12-21-2019, 02:02 AM
(This post was last modified: 12-21-2019 02:18 AM by DrDarius.)
Post: #3
|
|||
|
|||
RE: Modeless dialog box problem while invoking Function app from the code
I am suspecting this is happening because all dialog box-like objects objects in the Prime code must be derived from the same type of object which happens to be modal; inheritance takes care of replicating this unwanted issue to child objects.
(I am drawing this conclusion based on the snippet of the code posted once by Cyrille--it looked like C++ to me.) Darius |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)