I want to be able to close an alert box automatically using javascript after a certain amount of time or on a specific event (i.e. onkeypress). From my research, it doesn't look like that's possible with the built-in alert() function. Is there a way to override it and have control over the dialog box that it opens?
Also, I don't want ...
Question:
Does anyone know how to change the current directory of an already running open file dialog?
Details:
I have a customized open file dialog (using a custom template to add extra controls) that also has all the validation, existing checks, and creation tests turned off (via the OpenFileName flags).
Turning those things off di...
I'm looking to create a generic confirmation box that can be used by multiple widgets easily, but I'm running into problems with scope and was hoping for a clearer way of doing what I'm trying to do.
Currently I have the following -
(function() {
var global = this;
global.confirmationBox = function() {
config = {
...
I am writing my first application in WPF and want to have the user input some data on a modal dialog window. Apparently, this is not simple to do in WPF, because the parent window stays fully enabled, and the method that created the new child window doesn't stop and wait for the child window to call Close(). Instead it just keeps going...
I'm creating a Java application that will do some processing then needs to display a message to give the user feedback.
However, it appears to be incredibly slow - taking over two seconds to return.
I stripped the source down to the apparent culprit, and here is the code used:
package SwingPlay;
import javax.swing.JFrame;
public cla...
Currently it seems that I can only use effects in their most basic form when using the Dialog widget. For example, the following will use the drop effect for both showing and hiding the dialog box:
$('#dialog').dialog({show:'drop', hide:'drop'});
However, the default for the drop method always drops to the left. What I really want i...
Assuming the code:
MessageBox.Show(this,
"Would you like the differential girdle spring on the up-end of the grammeters?",
"Smi-Boloid Stater Slots",
MessageBoxButtons.YesNo,
MessageBoxIcon.Warning);
If the user presses Escape, i want it to close the message box, and the Show() method can return Dialo...
I have an MSI dialog for validating an installation key. The dialog contains:
a text field (for the user to enter the key)
a label (to display error information, like if the key is invalid or expired)
a button (the "Next" button)
When the user clicks the "Next" button, the key is validated, and, if it is invalid or expired, the label...
Hi all,
I have created a dialog box (cMyDialog). I am planning to duplicate cMyDialog and called it cMyDialog2. Can I know in MFC, how can I do inheritance? I want the cMyDialog2 to inherit all the IDDs from cMyDialog1 so that I do not have to copy and paste the codes from cMyDialog1 and cMyDialog2. The purpose of cMyDialog2 is to inhe...
I like the "Add Connection" or "SQL Connection" dialog that is in Visual Studio in Server Explorer window.
I also like the one in CodeSmith.
I would like to have that same dialog or simular functionality in my windows application.
I need it to work with SQL Server, and SQL Server Express Database files (*.mdf).
My clients have .NET 3....
I try to automatically parse/submit web page using MSHTML (in C#.Net 3.1 WPF WebBrowser control). I can fill the forms, click buttons, naviagate pages without problems.
But do not know how to automatically click "ok" button on javascript confirmation dialog which appear when I click "Submit" button.
C# code:
mshtml.IHTMLDocument2 doc =...
After calling DoModal() on a dialog, and calling a delay function. how do you close the dialog.
m_dlg.DoModal();
Sleep(1000);
.
.
.
...
Is there a way to create a modeless dialog box in C++ MFC which always stays on top of the other windows in the application? I'm thinking sort of like the Find dialog in Visual Studio 2005 - where it stays on top, but you can still edit the underlying text.
(If it makes any difference, it's not MDI; it's a dialog-based app)
...
I am writing a class in wxPython that displays error dialogs. Here is my code:
import wx
class Error:
def __init__(self, number, string):
self.error_type = number
self.error_message = string
self.choose_error()
def choose_error(self):
if self.error_type == 1:
self.DisplayMessage1()
elif sel...
I've got a WPF application with these three types of things...
WindowMain
UserControlZack
WindowModal
UserControlZack1 sits on my WindowMain...
<Window x:Class="WindowMain"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr...
I'm trying to set the text on the "save" button of the Windows "Save file as..." dialog.
I've set up the hook, received the message, found the button (nb. If I call "GetWindowText()" I see "&Save" so I know it's the right button).
Next I changed the text using "SetWindowText()" (and called "GetWindowText()" to check it - the text is co...
Well my problem is this: I set the AcceptButton on a form and this gives me the nice effect that it triggers the buttons Click event, but if I'm on a MultiLine textbox I don't want this to happen. Then I just want it to put a enter in it.
Is there any way to do this?
...
Currently I'm using jQuery on my asp.net content page (using master). I am creating a modal dialog using jquery. The div that is defined with the following code
<div id="example" class="flora" title="Information" style="display:none; visibility:hidden; text-align:left;">
<asp:Panel ID="Panel" runat="server">
Is the...
In general, I have no trouble using a dijit.form.VerticalSlider (with right decorations). Everything usually works fine in Firefox, Safari, IE6 or IE7.
Things go pear-shaped in IE6 or IE7 when I try to put that VerticalSlider inside a dijit.Dialog. In that scenario, it still works great in FF and Safari, but in IE 6 and 7, there are a...
Hello,
Can someone please guide me on how to pass the reference pointer to the dialog class so that it can call DoModal?
e.g.
EditorSvr.cpp -- implementation of the interface class (which is also located in a DLL)
CDialogClass1.cpp -- Dialog class that will receive the pointer from EditorSvr.cpp
I tried to search the whole google bu...