Comments (3)
I've done a bit more testing and I think this is due to a misunderstanding I had regarding modal dialogs in wxWidgets - I thought creating a modal dialog only blocked input to the parent window heirarchy, however they generally seem to actually block interaction with all other windows in the application (tested on GTK, Windows and macOS).
So I suppose the wxHtmlHelpController
window having to also be modal relative to the creating modal dialog is an unfortunate side-effect of that design... still feels a bit like a bug for both the event binding reason above and not allowing the user to interact with the modal they are trying to read the manual for.
I've changed my settings dialog to be non-modal instead as a workaround. In my unqualified opinion, the best outcome here would be for the help window itself to somehow be a non-modal window which still allows setting up event bindings and the user to interact with modal windows in the program.
from wxwidgets.
This is known as app-model vs window-modal and default modality is app modal because it's expected that ShowModal()
only returns when the dialog is dismissed. There is wxDialog::ShowWindowModal()
but you'd have to use it for the dialog itself and not (just) the help window.
from wxwidgets.
Thanks for the tip about wxDialog::ShowWindowModal()
- I thought that was the behaviour of ShowModal()
.
I already worked around this problem in my application by making my dialog non-modal, so this is no longer an issue for me, but I tried using ShowWindowModal()
and on GTK at least, the resulting dialog is still app-modal rather than window-modal, and the call to wxHTMLHelpController::Display()
continues to block until the help window is closed (and blocks interaction with the previous modal dialog).
from wxwidgets.
Related Issues (20)
- most samples build failed in universal build: mnemonics.cpp and notifmsg had not been compiled HOT 4
- [macOS] widgets sample crashes immediately HOT 2
- [macOS?] Sizers are not setting the size of windows correctly HOT 2
- [macOS] Alignment of a slider's current value looks strange HOT 1
- [macOS] Ugly drawing of slider's ticks HOT 4
- Calendar reports invalid date format when using ca_ES locale HOT 4
- [macOS] Wrong calculation of slider's vertical label positions (in case of a horizontal slider)
- [macOS] Slider value and value label do not match
- [regex] wxRegex::Compile will always popup a message box if the pattern was not valid HOT 1
- Documentation typo - wxListColumnFormat HOT 8
- wxGridBagSizer item clipping when vgap/hgap are different and some items span multiple rows/cols HOT 3
- regression: 3.2.5 kicad/gtk plot window is not shown correct. HOT 16
- `wxDialog` ignores the specified position with GTK3 HOT 4
- Memory leak in wxSearchCtrl with autocomplete HOT 8
- [macOS] wxRichTextCtrl doesn't position and show candidate of IME correctly on macOS HOT 2
- wxBitmapComboBox flickers on Windows. HOT 2
- wxGrid should disable ime input on read-only cells HOT 8
- Unpredictable crash when assigning a toolbar to a frame on macOS 14 (Sonoma) HOT 8
- wxBitmapComboBox bitmaps are rendered at x4 size at x2 window scaling on wxGTK HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wxwidgets.