modal-dialog

JavaFX Modal Window ownership to Swing

梦想与她 提交于 2019-12-23 12:32:42
问题 I have an application built on Swing integrated with JavaFX. Swing's JFrame is the top-level window, with JFXPanel housing different JavaFX controls. Now, I am also integrating JavaFX's new Alert API, and currently having difficulty in setting Alert's ownership when shown. That is, I would like to make JFrame as the owner of Alert. JFXPanel fxPanel = new JFXPanel(); Platform.runLater(() -> { Button button = new Button("Alert"); button.setOnAction(evt -> { Alert alert = new Alert(Alert

Centering modal in twitter-bootstrap

大城市里の小女人 提交于 2019-12-23 11:46:21
问题 I can't center my modal in twitter-bootstrap with various sizes. You can see live example here and here. (just click on the picture or "Report this image"). You'll see that modal is there working like charm, but it isn't horizontally centered. I tried everything: margins, float, text-align and even <center> .modal: .modal { position: fixed; top: 10%; z-index: 1050; width: auto; background-color: #ffffff; border: 1px solid #999; border: 1px solid rgba(0, 0, 0, 0.3); *border: 1px solid #999;

Centering modal in twitter-bootstrap

岁酱吖の 提交于 2019-12-23 11:46:21
问题 I can't center my modal in twitter-bootstrap with various sizes. You can see live example here and here. (just click on the picture or "Report this image"). You'll see that modal is there working like charm, but it isn't horizontally centered. I tried everything: margins, float, text-align and even <center> .modal: .modal { position: fixed; top: 10%; z-index: 1050; width: auto; background-color: #ffffff; border: 1px solid #999; border: 1px solid rgba(0, 0, 0, 0.3); *border: 1px solid #999;

How do I discover if my delphi application currently has a modal window?

空扰寡人 提交于 2019-12-23 09:57:43
问题 I've got a timer running in my Delphi MDI application and I'd like to use it to pop up a message if something changes in the background. But I don't want that message to pop up when the the application has a modal dialog in the foreground because the user couldn't do anything about it. So what I'd like to know is how can I check for the existence of a modal dialog in my application? 回答1: You could try with this code: var ActForm: TCustomForm; begin ActForm := Screen.ActiveForm; if (ActForm =

How to make modal scroll with main page

我与影子孤独终老i 提交于 2019-12-23 09:03:39
问题 I have a modal with the contents taller than the browser height, as a result I have some contents which cannot be displayed. (seems like the modal position is fixed and cannot be scrolled as a whole) How can I make the modal scrollable with the main page so that I can actually view the contents below? 回答1: What you could do is set the modal's CSS position to absolute instead of fixed. To do this, just get the class name of the modal or ID like this and set it to absolute : .modal { position:

Yii2 modal with composite key

巧了我就是萌 提交于 2019-12-23 04:22:30
问题 Can anyone help me with the composite key? I am not able to function properly. function init_click_handlers(){ $(".button-endereco").click(function(e) { var fcodigo = $(this).closest("tr").data("codigo"); var fcodigopessoa = $(this).closest("tr").data("codigopessoa"); var map = {codigo: $(this).closest("tr").data("codigo"), codigopessoa: $(this).closest("tr").data("codigopessoa")}; $.get( "update ", { codigo: fcodigo codigopessoa: fcodigopessoa }, function (data) { $("#endereco-modal").find("

How to make a modeless form “block”?

三世轮回 提交于 2019-12-23 03:46:28
问题 I have an application that displays two forms/windows at the same time. The first one is shown with the Form.Show() method, so it is modeless and floats off to one side. The second form is shown with Form.ShowDialog(), so it is modal, and it blocks. The fact that it blocks is important, because unlike the first form (which is basically just decoration), the second form acquires important information, so I don't want my program to continue running until it closes. Unfortunately, I now need to

Bootstrap modal opening on second click / modal inside modal

时光毁灭记忆、已成空白 提交于 2019-12-23 03:24:14
问题 I have two modals, one inside another. The first modal contains a form and on submit I want another modal with a message in it to open. I made this with Bootstrap. First modal opens when this button is clicked : <button class="contact-button" data-toggle="modal" data-target="#contact-modal">Contactează-ne</button> And this is the first modal: <div id="contact-modal" class="modal fade" role="dialog"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type

Webdriver 3.14 IE11: session lost when click link/button that opens a window/popup

荒凉一梦 提交于 2019-12-23 03:23:15
问题 My Internet Explorer Options: var optionsIE = new InternetExplorerOptions(); optionsIE.IntroduceInstabilityByIgnoringProtectedModeSettings = true; optionsIE.EnsureCleanSession = true; string IE_DRIVER_PATH = SolutionDirectory + @"\\..\\packages\\Selenium.WebDriver.IEDriver.3.14.0\\driver\\"; InternetExplorerDriverService service = InternetExplorerDriverService.CreateDefaultService(IE_DRIVER_PATH); service.Port = port; driver = new InternetExplorerDriver(service, optionsIE); When click on link

JInternalFrame As Modal

混江龙づ霸主 提交于 2019-12-23 03:22:17
问题 I Have the following code: import java.awt.AWTEvent; import java.awt.ActiveEvent; import java.awt.Component; import java.awt.EventQueue; import java.awt.MenuComponent; import java.awt.event.MouseEvent; import javax.swing.JInternalFrame; import javax.swing.SwingUtilities; public class modalInternalFrame extends JInternalFrame { // indica si aquest es modal o no. boolean modal = false; @Override public void show() { super.show(); if (this.modal) { startModal(); } } @Override public void