Jump to content
drjdpowell

Duelling Dialogs

Recommended Posts

Does anyone have a solution to the problem of ordering of floating windows, where for example a modal dialog box is behind another floating window, and thus can never be dismissed?  Or a floating window opens a file-selection dialog, and it opens behind the first window.  Is there a way to determine which modal window has control (and must be dismissed first) and then force that to the front?

Share this post


Link to post
Share on other sites

James, not exactly solving your problem, but...

What I usually do is only make the dialogs modal during exe building (i.e. set their FP property in the build only). This prevents the issue of things being hidden behind other things and locking the developer out of LabVIEW.

Share this post


Link to post
Share on other sites

Now that you mention it, I recall a work around I had to put in place some time ago on a touch screen only application. Sometimes my custom dialogs got hidden behind the main panel, the way we solved it in the end (ugly but worked), was just to periodically force all the dialogs to be on top. Each dialogue type actor was responsible for getting itself on top. Not pretty...

Share this post


Link to post
Share on other sites

The problem is, if there are two dialogue actors, which should be on top.  Only one dialog can be interacted with, but that one isn't necessarily on top.

Share this post


Link to post
Share on other sites

Here are my ugly hacks:

  1. Only one active panel at a time. If user input is required for a dialog, it is on top, all other panels are disabled.
  2. In Windows, a system call to bring the window on top is used, instead of LV's bring to front. This gets me somewhat more consistent results than the LV function.
  3. If there are two (or more) active panels, the newest one is enabled, the others are disabled.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.