modal-dialog

Show input dialog in WinForms

守給你的承諾、 提交于 2019-12-22 08:20:40
问题 I'd like to show an input modal in my WinForm application. I have looked around the web, but haven't found a good pattern for doing this. I understand I'd have to create another Form, and use the ShowDialog method. 回答1: You are correct. Note that modal dialogs are not automatically disposed when closed (unlike non-modal dialogs), so you want a pattern like: using (FrmModal myForm = new FrmModal()) { DialogResult dr = myForm.ShowDialog(); if (dr == DialogResult.OK) { // ... } else { // ... } }

How to display a partial view as a popup/modal on button click using bootstrap or jquery?

老子叫甜甜 提交于 2019-12-22 08:11:36
问题 I realize that this could be repetitive question but I failed to find an answer so putting a new question. I am pretty new to web development and trying to hard to get this trivial scenario work: I want to display some information to the user when he clicks on a button. The information should be presented like a popup: it would close only when user clicks on close( X ) on top right or ok button at bottom. I have tried implementing this using different ways I came across on various SO answers

Prevent bootstrap-3 modal from closing when the form has changes

本秂侑毒 提交于 2019-12-22 07:50:08
问题 I'm trying to prevent the bootstrap-3 modal from closing without warning when there are changes made to the form inside the modal. However when I listen to the events fired by the modal and return false it will prevent the modal from closing ever. Here's my code: $(function() { $('body').live('shown.bs.modal', '#quickbutton-create', function () { $(this).find('#quickbutton-create form').monitor(); }); $('body').live('hide.bs.modal', '#quickbutton-create', function () { if ($(this).find('

Modal Segue Chain

两盒软妹~` 提交于 2019-12-22 06:49:30
问题 I have an iOS app that has a log in view ( LognnViewController ) and once a user is successfully authenticated they are taken to another view ( DetailEntryViewController ) to enter some simple details. Once the details are entered the user is taken to the main part of the app that consists of a tab controller ( TabViewController ) that holds a variety of other views. The LogInViewController performs a modal segue to the DetailEntryViewController and the DetailEntryViewController then performs

Retrieve input entered in a JDialog

和自甴很熟 提交于 2019-12-22 06:36:01
问题 I extended JDialog to create a custom dialog where the user must fill some fields : How should I retrieve the data entered ? I came up with a solution that works. It mimics JOptionPane but the way I do it looks ugly to me because of the static fields involved... Here is roughly my code : public class FObjectDialog extends JDialog implements ActionListener { private static String name; private static String text; private JTextField fName; private JTextArea fText; private JButton bAdd; private

Replacing UITextField input with a UIDatePicker

守給你的承諾、 提交于 2019-12-22 05:31:59
问题 I have a table view controller with (among others) a cell that is to represent a date. I followed this post "How do I make a modal date picker that only covers half the screen?" and I have it working with one big exception - I can't get the picker to disappear! I tried registering for the event UIControlEventTouchUpOutside, but it seems that this is not generated by the picker (or at least in the mode that I am using it). How can I recognize that the user has finished selecting a date? Also,

Dojo “loading”-message

倾然丶 夕夏残阳落幕 提交于 2019-12-22 05:19:24
问题 I'm new to Dojo, so I need a little help. Some of my links takes a while (when the user clicks, it takes several seconds before the page starts loading), and I'd like to add a "loading"-message. I can do it the "old fashion way", but I want to learn the new, easier, smarter Dojo-way. Exactly how it works is not important right now, but I imagine something like this: A rectangle appears in the middle of the browser-windows. (Not the middle of the document.) It has an animated gif, and a

Making only portion of screen modal with jQuery UI

一世执手 提交于 2019-12-22 04:48:23
问题 Is there any way to create a modal 'scope' for jQuery dialogs? As a somewhat contrived example, I've got a page: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Console</title> <link href="console.css" rel="stylesheet" type="text/css" /> <link href="libs/jquery-ui/jquery-ui-1.8.13.custom.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="libs/jquery/jquery-1.6.1.min.js"></script> <script type="text/javascript

jQuery Bootstrap multiple modals, how to hide active/top modal only

左心房为你撑大大i 提交于 2019-12-22 04:33:15
问题 I've got a modal form that sometimes requires a second modal to be opened to set or display some data. I'm able to launch the first and second modals OK, but when I close the 'top' modal, both modals are hidden. Is it possible to hide one modal at a time? Show Modal One: $('#content').on('click', "a#AddItemModal", function () { var id = $(this).attr('value'); var val = '/AddItems/id:' + id; $('#addItemBody').load(val); $('#addItemModal').modal({}); }); Modal One: <div class="modal fade hide"

Convert a modeless dialog to modal at runtime

半世苍凉 提交于 2019-12-22 04:05:57
问题 I have a dialog (CDialog derived class) that can be used in two different ways (edition mode and programming mode). When the dialog is open to be used in programming mode it is a modeless dialog that it is used for modifying the main view (kind of a toolbar). When it is open in edition mode the user can change the configuration of the dialog itself and in this case it is a modal dialog. Right now they are two different dialogs with few differences and I would like to have just want dialog and