Forms and dialog boxes are either modal or modeless. A modal form or dialog box must be closed or hidden before you can continue working with the rest of the application. Modeless forms let you shift the focus between the form and another form without having to close the initial form. The user can continue to work elsewhere in any application while the form is displayed.
Questions tagged [modeless-dialog]
18 questions
3
votes
2 answers
How to create a modeless dialog box within a C# console app
I want to create a modeless dialog box with below code.
However, the form seems not responding after creation.
I guess the message loop may be blocked if I create it in this way.
Anyone knows how to create it in the correct way?
class Program
{
…

shi frank
- 51
- 1
- 1
- 4
2
votes
3 answers
Block ESC and Enter keys in modeless dialog box (Win32, non-MFC)
There're some articles written on this subject, but none of them worked in my case. I'm writing the following using Win32 (no MFC). The goal is to prevent ESC or ENTER keys from closing the modeless dialog box.
Here's the dialog…

c00000fd
- 20,994
- 29
- 177
- 400
2
votes
1 answer
Non-modal WPF dialog hosted in a Win32 app doesn't receive keyboard events
I've got a WPF dialog that I want to display in a Win32 app as a non-modal Window.
Calling window.Show() correctly displays the window, and all mouse events are handled properly by it, but all keyboard event are handled by the parent Win32 window,…

ndeslandes
- 195
- 1
- 13
1
vote
1 answer
Accelerator keys not working when modeless popup has the focus
My main CDialog sometimes displays a child modeless dialog like this:
It is only displayed if the user has configured it to automatically display.
It gets displayed via the main dialogs OnInitDialog where this function is called:
void…

Andrew Truckle
- 17,769
- 16
- 66
- 164
1
vote
1 answer
"ScriptError: Authorisation is required to perform that action." when running google.script.run from Library
Regards,
I have found several questions regarding this error :
"ScriptError: Authorisation is required to perform that action." but I can't find one that is about my issue.
What I am trying to do is call a function .gs file from .html file using…

Bismuth Habs
- 21
- 9
1
vote
0 answers
How to create a modeless text-editing dialog in Flutter like Cut/Copy/Paste?
The Flutter TextField has a really nice modeless dialog that appears above the field and stays visible even when the view is scrolled:
I need to create something very similar for when the user taps in a TextField (not when they select characters,…

buttonsrtoys
- 2,359
- 3
- 32
- 52
1
vote
2 answers
Is there a built-in shortcut key for selecting the owner of the currently active form?
I have a main form with two child modeless forms, e.g. all of the forms can be active simultaneously:
class MainForm : Form
{
Form child1;
Form child2;
public MainForm()
{
Text = "MainForm";
child1 = new Form { Text…

glopes
- 4,038
- 3
- 26
- 29
1
vote
1 answer
Make focused modeless dialog topmost
So I have my main dialog that calls modeless dialogs through this function (this is the legacy code on the project):
void MyClass::ShowDialog(CDialog* dialog)
{
if (!IsWindow(dialog->m_hWnd))
{
return;
}
int nCmdshow1 =…

Alan Gorsuch
- 29
- 3
0
votes
1 answer
How to create multiple instances of the same Dialog Procedure in win32?
Within a modeless DialogBoxProcedure(), I implemented two main functions:
Constant movement along the X and Y axis using SetWindowPos(), each movement activated by a timer. (Essentially making the Dialog Box bounce around the screen). I did this by…

bugger
- 137
- 5
0
votes
1 answer
Using a dialog box as a main window. Not receiving WM_INITDIALOG messages
I have created a modeless dialog as a main window, but the window procedure isn't being sent WM_INITDIALOG messages.
Here's what I've done.
Created a dialog template using Visual Studio's resource editor, and
set its class name to a custom…

Ron Francis
- 11
- 3
0
votes
1 answer
Automatically Move Focus Between Dialogs
I have a modal dialog that shows a modeless 'companion dialog' on a button press. To make the UI more intuitive and fluid I'd like the focus to follow the mouse and move between the dialogs without requiring an extra click.
Is there a simple message…

Kyudos
- 625
- 4
- 18
0
votes
1 answer
How to use the Enter key in a modeless dialog?
I've been working on a WinAPI Project for university and we are asked to implement the full program in a dialog box. At first, I used a modal dialog box and everything worked fine, except that there was no icon in the taskbar for the dialog box…

Madv0x
- 23
- 5
0
votes
0 answers
How to properly wait for input from modeless window
I have an application that has two mode-less windows. The first window, has a button to take input from the other window. My question is what is (is there?) the right way to call the second window for input and block the caller until user provides…

Ehsan Iran-Nejad
- 1,697
- 1
- 15
- 20
0
votes
1 answer
Is there a way to create a modeless dialog in an Angular/Electron app?
Is there a way to create a modeless dialog in an Angular/Electron app?
I'm looking at the samples below, and they're all modal:
https://material.angular.io/components/dialog/overview
I need to be able to open multiple windows at the same time and…

Stout
- 463
- 8
- 19
0
votes
1 answer
hide modeless userform if range is nothing
This macro searches a range for cells containing errors, if a cell with error is found the userform allows you to change that cell to "Yes", "no", or "review later" via 3 different command buttons. If there are no erros found (ie. CheckRange is…

Ryan S
- 55
- 8