modal-dialog

How can I make a JFrame modal like a JOptionPane?

≡放荡痞女 提交于 2019-12-19 10:19:16
问题 First, I will make the question and then I will explain the application. How can I make JFrame s to behave like JOptionPanes ? (tutorial didn't help) i.e. [Show content >> return a value] . Aditionally I need it to be [Show the frame >> Ask information >> Modify an object passed as parameter to the constructor >> return something] I already made the "Ok" button get the answer i want (displaying it in the console), but i cant figure out where to put the return statement i want the function to

Detecting modal dialogs in MFC

隐身守侯 提交于 2019-12-19 09:05:20
问题 How can I programmatically detect if my MFC application currently is displaying a modal dialog or property sheet? Currently I'm using the following, but I feel that the code also triggers for modeless dialogs. bool HasModalDialog(const CWnd* pWnd) { const CWnd* pChildWnd = pWnd ? pWnd->GetNextWindow(GW_HWNDPREV) : NULL; while (pChildWnd) { if (pWnd == pChildWnd->GetTopLevelParent() && (pChildWnd->IsKindOf(RUNTIME_CLASS(CDialog)) || pChildWnd->IsKindOf(RUNTIME_CLASS(CPropertySheet)))) { return

jQuery Token Input (tokenize input) is not working on modal popup, list hidden under popup

∥☆過路亽.° 提交于 2019-12-19 05:42:51
问题 I am using a modal popup up control in jQuery, the popup has an input text powered by jQuery Tokenize input plugin. The problem is when i type something on modal popup text box, the search results by tokenize plugin are shown hidden under the popup. Actually they should apprear on top of all controls. Would someone please help me as I am a beginner. Try to seek help from thread below, zindex is not working. https://github.com/loopj/jquery-tokeninput/issues/190 here is the input control that i

Modal dialogs opened by a fullscreen OpenGL window on Windows 7 are not showing

和自甴很熟 提交于 2019-12-19 04:49:09
问题 It seems that my problem may be the same as an unanswered related question (OpenGL with GLUT on windows 7, fullscreen mode not showing the message box). Since I switched to Win7 as a development environment, and a possible target platform for my applications, I noticed a regression in their behaviour. Whenever I have a fullscreen window containing a fullscreen OpenGL context, the applications have problems displaying modal dialog boxes (such as message boxes, file open dialog, etc.) The

presentModalViewController crashes my app

混江龙づ霸主 提交于 2019-12-19 04:20:32
问题 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];

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

旧巷老猫 提交于 2019-12-19 04:11:04
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last year . 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

Durandal 2.0 custom dialog

北慕城南 提交于 2019-12-19 03:20:49
问题 I wish to make a Durandal custom dialog that adds a window frame with title and footer around an existing composable viewmodel. I have made a customModal.html template <div class="messageBox"> <div class="modal-header"> <h3 data-bind="text: title"></h3> </div> <div class="modal-body"> <!--ko compose: { model: model, template: view }--> <!--/ko--> </div> <div class="modal-footer" data-bind="foreach: options"> <button class="btn" data-bind="click: function () { $parent.selectOption($data); },

Test modal dialog with Qt Test

家住魔仙堡 提交于 2019-12-19 02:28:07
问题 I am trying to write a unit test for a GUI application using the QTestLib. The problem is that one of the slots creates a modal dialog using exec() and I found no possibility to interact with the dialog. The slots which creates the dialog is connected to a QAction. So the first problem is that the test blocks when I trigger the QAction in the test since this results in the call to exec() . Therefore, I tried creating a QThread that performs the interaction. However, this did not help. Things

When is modal UI acceptable?

血红的双手。 提交于 2019-12-18 21:54:26
问题 By and large, modal interfaces suck big rocks. On the other hand, I can't think of a better way to handle File Open... , or Print... and this, I think, is because they are occasional actions, infrequent and momentous, and they are atomic in nature; you either finish specifying all your print options and go through with it, or you cancel the whole show. Let's put together a little style-guide. Suggest any use-cases in which a dialog is the preferred presentation and why it is preferred. Can

How do I fire a modal for the next step in my introjs?

旧街凉风 提交于 2019-12-18 17:26:42
问题 So IntroJS works off of the data-intro and data-step attributes. So for instance my logo looks like this: <h1 id="logo" data-step="1" data-intro="Welcome to MyApp, where you can start creating an album for generations! Let us help you get started."> But for step 3 it is on an element that when pressed, the next step should be on the modal that would appear if the element in Step 3 was pressed. I have this as my Step 4 which doesn't work: <div class="popup" id="add-images-step-1" data-step="4"