Replies: 4 comments 1 reply
-
You can use PopupWindow, ref: https://releases.slint.dev/1.7.2/docs/slint/src/language/builtins/elements.html#popupwindow. |
Beta Was this translation helpful? Give feedback.
-
I want to have a modal popup that is equivalent to what you get in WIndows |
Beta Was this translation helpful? Give feedback.
-
I was able to hack something together that will create a real Win32 modal dialog with Slint that properly blocks the underlying Window. I'm hoping that there will be a better way to do this because:
|
Beta Was this translation helpful? Give feedback.
-
Yes, that is extremely relevant - my hacky solution creates an object whose sole purpose is to reenable the window ( |
Beta Was this translation helpful? Give feedback.
-
Is there a canonical technique to create modal dialogs in Slint?
I can't speak for other platforms, but on Windows this requires passing specific parameters to the API that creates a window (
CreateWindowEx
), and I suspect that this might be quite gross if I tried to do it on my own.Beta Was this translation helpful? Give feedback.
All reactions