I have next problem:
I have one modal dialog over main app, but I need to show help dialog of that modal dialog in front of anything (even that modal dialog).
Is there a way to accomplish this without making my modal dialog non-modal.
Thanks
If the help dialog would be in front of the modal dialog, how could the user close the modal dialog? The user could not interact with the help dialog in any way. I wouldn't recommend making a user interface that works differently than all other similar interfaces with modal dialogs.
Maybe you could move the help text from the help dialog to the modal dialog?
Just create another modal style dialog for the help dialog from within the dialog you've already created. You couldn't select select help from anything but that anyway.
Related
Scrolling becomes disabled when opening a jQuery UI dialog, even when it's open as non Modal.
It doesn't seem to be any option to control this behaviour.
How to prevent that?
I've found a working solution myself.
Just after opening the dialog, add this piece of code:
$("html,body").css("scroll", "auto");
IMO, it has no sense at all to block scrolling when opening a non modal dialog. I'd say this is a bug or a missunderstanding of what a non-modal dialog is.
I used bootstrap 3 modal dialog for search function in my asp.net inventory application.When I press the search button on my modal content whole popup up dialog went disappeared.I want to lock the the modal dialog in my current page window.How can I resolve this using bootstrap.I tried putting data-backdrop: static.But it's still not work for me.
Try also passing the
{keyboard: false}
Option as well as data-backdrop: false. Technically speaking data-backdrop should be solving your problem. Is theres something that makes your project unique?
I am working on a Qt application and developing a context sensitive help solution. When a Modal Dialog is active and F1 is pressed, I would desire to be able to interact with the Modal Dialog and help at the same time until the help solution is no longer needed. If I make the Modal Dialog Non-Modal with the F1 event, this allows the parent window to be manipulated which defeats the purpose of making it Modal to begin with.
Does someone have a good solution that allows a user to interact with Help and a Modal Dialog that is better than simply swapping Modality between the Modal Dialog and the Help Dialog? (This is done by setting the Help Dialog property to Qt::ApplicationModal, then when Help Dialog is closed, the Modal behavior returns to the previous Modal Dialog)
Thanks in advance.
You could just use an external help viewer which runs as a different process. If the number of parent dialogs change or the relationship, the developer needs to go back and fix all the windows intended to be non-active.
I need to know in my app if a modal window is opened when I click on a button.
So I'm searching for a method which permits to know if a modal window is opened in my application or no, and which returns the window (or NULL)
Is it possible?
See QApplication's static activeModalWidget
I have several modal dialogs and main dialog where I exec() modal. How do I know if a main window blocked by modal or not?
You can check if there is an active modal dialog with QApplication::activeModalWidget().