modal-dialog

Cocoa: how to run a modal window while performing a background task?

六眼飞鱼酱① 提交于 2019-12-01 01:37:05
I've tried calling modalSession=[NSApp beginModalSessionForWindow:conversionWindow]; [NSApp runModalForWindow:conversionWindow]; in order to get a modal conversionWindow that prevents the user to interact with the rest of the application, but this also seems to block code execution. What I mean is that the code that comes after the code shown above isn't executed at all. How can I fix this? I'm sure this is possible because many applications show some progress while performing some big task, like video conversion etc... Rob Keniger Please don't use an app-modal window unless it's absolutely

AngularJS Modal not showing up when templateUrl changes

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 01:36:41
So far, what I have is straight off the Angular UI example: Controller: var ModalDemoCtrl = function ($scope, $modal) { $scope.open = function () { var modalInstance = $modal.open({ templateUrl: 'myModalContent.html', controller: ModalInstanceCtrl }); }; }; var ModalInstanceCtrl = function ($scope, $modalInstance) { $scope.close = function () { $modalInstance.dismiss('cancel'); }; }; And this section, which is just in sitting in the .html for the whole page this modal is on. Html: <script type="text/ng-template" id="myModalContent.html"> <div class="modal-header"> <h3 class="modal-title">I'm a

presentModalViewController crashes my app

放肆的年华 提交于 2019-12-01 01:16:15
It's one of the simplest things to do, I know. But I've been banging my head against this for days. I've done it plenty of times in the past, but for some reason trying to present a modal view controller just crashes the app to a black screen. Nothing reported in the console or anything. I'm hoping someone might have had this problem and has some advice. This code is called from a UIViewController class: MFMailComposeViewController *controller = [[MFMailComposeViewController alloc] init]; controller.mailComposeDelegate = self; [controller setSubject:@"test subject"]; [controller setMessageBody

angular-ui-bootstrap modal not passing back result

巧了我就是萌 提交于 2019-12-01 00:36:16
问题 I am running into a problem with the modal service from Angular-ui-bootstrap. I have set up the modal according to the example on : http://angular-ui.github.io/bootstrap/ but i can not get a result back from the modal if i remove the list items from the modal content and replace them with a text area and a different ng-model. I would setup a jsfiddle but i do not know how to include specific libraries (like angular-ui-bootstrap) that are necessary to show what i want. I do have a screenshot

go back to the previous form (c#)

风流意气都作罢 提交于 2019-12-01 00:25:21
I know how to go to another form in modal mode just like what I did below: public partial class Form1 : Form { public Form1() { InitializeComponent(); } Form2 myNewForm = new Form2(); private void button1_Click(object sender, EventArgs e) { this.Hide(); myNewForm.ShowDialog(); } } This is my second form, how do I go back to the previous form? public partial class Form2 : Form { public Form2() { InitializeComponent(); } private void Form2_Load(object sender, EventArgs e) { } private void button1_Click(object sender, EventArgs e) { this.Hide(); // what should i put here to show form1 again } }

Best option for modal popup window in ASP.NET? [closed]

北慕城南 提交于 2019-12-01 00:18:46
This question was asked a few years ago, so I'm going to ask it again. I'm looking for the best/cleanest option to display a modal popup window upon the click event of an ASP Button control. The contents of the window will be an aspx page. Cross-browser compatibility is a requirement jquery/plugins aren't out of the question if they fit the mold. There are a host of options in the jQuery field: jQueryUI's dialog Wijmo's Dialog SimpleModal These are just three options out of many. jQueryUI is pretty easy to use out of the box, but isn't as customizable (or easy to) and "pretty" as SimpleModal.

How to set the input value in a modal dialogue?

只愿长相守 提交于 2019-12-01 00:12:33
问题 I'm working on 'add a link' functionality. For that I'm using Modal plugin from Twitter Boostrap JS. On the main page there's only the 'link' field to fill, when a user clicks 'add link' button, a modal pops up, and the user sees the complete form to fill 3 fields: link, title, tags. However, I want the link field to be pre-filled with the value from the previous step. It's similar to what happens when you 'save a link' on delicious.com. Thanks to Joe's help (previous question) I can print

Problems in Showmodal after assigning to Setparent(..)

醉酒当歌 提交于 2019-12-01 00:00:57
I created two application MainApps and SubApps, the SubApps has a modal type dialogbox such as login/logout form etc. and its working fine. After I attach it to the MainApps, the Modal Dialog box shows like normal box form. It behaves like "DIALOG.SHOW" instead of "DIALOG.SHOWMODAL"; I am using delphi compiler SubApps buttonclick; begin with TfrmDialog.Create(Self, dtLogout) do try iMsgResult := ShowModal; finally Free; end; if iMsgResult = mrOk then begin dmVoca.FHomeworkXMLDoc.Active := False; //Disabled Double Login dmVoca.tmrDoubleLogin.Enabled := False; ................ end; end; MainApps

How to close a modal by clicking outside the modal window?

偶尔善良 提交于 2019-11-30 23:38:12
问题 In a very simple jQuery modal, I close the modal by clicking on CLOSE as $('#close').click(function(e) { e.preventDefault(); $('#overlay, #alertModalOuter').fadeOut(400, function() { $(this).remove(); }); }); How can I close the modal by clicking whether on CLOSE button (which is inside the modal windows) OR clicking anywhere outside the modal window. 回答1: Changing your function like so should work: $('#close, #overlay').click(function(e) { e.preventDefault(); $('#overlay, #alertModalOuter')

Reparent non-modal form to existing application

懵懂的女人 提交于 2019-11-30 21:59:58
I would like to be able to show a non-modal form in an already existing application. At the moment I can do something like: myform.ShowDialog(handleToApp); but that will create a modal form parented to the application and what I'm really looking for something that isn't modal so when the form loses focus it won't break the flow of control and pester the user about not being closed. Does anyone know how or if I can do what I'm looking for? I found what I was looking for, you have to make a class which looks like this: public class MapinfoWindowHandle : System.Windows.Forms.IWin32Window {