modal-dialog

Force MessageBox to be on top of application window in .net/WPF

无人久伴 提交于 2019-11-29 06:25:22
问题 In my WPF app, I sometimes being up a System.Windows.MessageBox . When it is initially displayed, it is shown on top of my main application window, as I would like. Is there a way that I can force it to ALWAYS remain top of the main window? The problem I have is that when a MessageBox is displayed, users can then click on the main app window and bring it to the front, meaning the MessageBox becomes hidden from view. In this case the user might not realize it's there, or forget about it, and

Fake modal dialog using Show?

喜欢而已 提交于 2019-11-29 05:02:06
My application have several modules, each in one tab on the mainform. When using a dialog it is convenient to call ShowModal because you know when the dialog is finished. But for the user it is not good as it lock the whole program until the dialog closes. I want to have a locally modal dialog. So one module can open a dialog and it locks current module only. The user can still switch to another module and continue to work. If the user return to the first module the dialog is there waiting for close before the user can continue to work in that module. I have to make some kind of framework for

How can I change the width of a Bootstrap 3 modal in IE8?

北城以北 提交于 2019-11-29 04:46:09
问题 I have to support IE8. The modal itself works fine, but my attempts to resize it (which work fine in Firefox) don't work in IE8. I'm just adding a class (wide-modal in this example) to the modal-dialog div (the 2nd nested one in the Bootstrap structure) and applying a width via CSS, nothing fancy. HTML: <div class="modal fade" id="modalTest" role="dialog"> <div class="modal-dialog wide-modal"> <div class="modal-content "> <div class="modal-header"> <button type="button" class="close" data

WinForms programming - Modal and Non-Modal forms problem

六眼飞鱼酱① 提交于 2019-11-29 04:36:56
I have a problem with modality of the forms under C#.NET. Let's say I have main form #0 (see the image below). This form represents main application form, where user can perform various operations. However, from time to time, there is a need to open additional non-modal form to perform additional main application functionality supporting tasks. Let's say this is form #1 in the image. On this #1 form there might be opened few additional modal forms on top of each other (#2 form in the image), and at the end, there is a progress dialog showing a long operation progress and status, which might

When are modal dialogs truly necessary?

旧巷老猫 提交于 2019-11-29 04:08:59
Modal dialogs are evil, but I keep reading "You should remove modal dialogs when possible " When isn't it possible to remove modal dialogs? I mean, what are some truly modal tasks that force us to use evil modal dialogs? The most common given example is the "Do you want to Save?" I think this is the problem of the concept of having the user hit Save instead of remembering that user input is sacred . If you just saved automatically with the ability to "undo" or have revisions, then you don't ever need ask the user if they want to save. "Are you sure you want to delete?" Undelete "Are you sure

Bootstrap modal opening on page load [duplicate]

杀马特。学长 韩版系。学妹 提交于 2019-11-29 04:06:47
This question already has an answer here: Launch Bootstrap Modal on page load 17 answers I got a page with a bootstrap modal on it (manual: http://getbootstrap.com/javascript/#modals ). I would like to have this modal open on page load. However this is not happening. <!-- Modal --> <div class="modal fade" id="memberModal" tabindex="-1" role="dialog" aria-labelledby="memberModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span><

MFC - dim main window when showing modal dialog

给你一囗甜甜゛ 提交于 2019-11-29 04:03:23
问题 I have a fairly standard MFC application that consists of a main window, and occasionally brings up modal dialogs. As we all know nothing can be done outside a modal dialog until it is closed. Therefore, a nice UI feature is to "dim" the rest of the main window behind the dialog, to visually indicate you can't use it until you're done with the modal dialog. Some web apps and java/mac apps do this, but I've never seen it done in a traditional C++/MFC application. I'd like to give it a try,

How to center a modal window on a page?

北城以北 提交于 2019-11-29 03:59:47
I am trying center a modal window in the browser page. I just want to center it, so that it should be responsive for all the screens. With position:absolute Assuming your modal is 300x300 .modal { width: 300px; height: 300px; position: absolute; left: 50%; top: 50%; margin-left: -150px; margin-top: -150px; } With display:table An alternative way for that is to make display table <div class="modal"> <div class="body"> <div class="content"> Content goes here </div> </div> </div> <style> .modal {display:table;} .body {display:table-cell; vertical-align:middle; text-align:center;} </style> .modal

jquery fancybox - prevent close on click outside of fancybox

一世执手 提交于 2019-11-29 03:53:32
I'm using the Fancybox plugin for my modal windows. It seems like no matter what options I use I can't prevent the fancybox modal window from closing when the user clicks outside of the fancybox modal window (grayed out area). Is there a way to force the user to click the X or a button that I trigger the close event? This seems like it should be simple so I'm hoping I'm just reading the examples wrong. I've tried hideOnContentClick: false but that doesn't seem to be working for me. Any ideas? There is no option for that. You will have to change the source code. In jquery.fancybox-1.2.1.js you

Using Modal Window inside ng-repeat

旧城冷巷雨未停 提交于 2019-11-29 03:48:20
问题 I have a ng-repeat and I am trying to add a modal that passes the same scope variable to the modal window. I am able to get the modal window to open but the scope value from ng-repeat is not showing inside the modal. Hopefully my code explains better. This is what I have so far: <div ng-controller="CustomerController"> <div ng-repeat="customer in customers"> <button class="btn btn-default" ng-click="open()">{{ customer.name }}</button> <!--MODAL WINDOW--> <script type="text/ng-template" id=