Windows 11, XOJO 25r3.
I have a app that opens another window (movable window).
In that window there will be a call to a MessageDialog.
How can I make sure that the MessageDialog will be inside that window.
Thanks
Regards
Etienne
Windows 11, XOJO 25r3.
I have a app that opens another window (movable window).
In that window there will be a call to a MessageDialog.
How can I make sure that the MessageDialog will be inside that window.
Thanks
Regards
Etienne
Windows doesn’t have the concept of a “MessageDialog within a Window” the way macOS does. The Xojo framework can only show the MessageDialog modally for the whole application on Windows.
I thiiiiiink you can use declares to position the dialog or even attach it to the parent window “in a type of way”; but it’s not the same framework-level ShowModalWithin feature.
All that said, you can use the cross-platform “within” functionality, they’ve just made it an undocumented signature of MessageDialog.ShowModal(withinParent as DesktopWindow) now. This will correctly show up within the Window on macOS and will be globally modal on Windows (the best it can do).
If you’re looking for something better than that, I do not have an answer for you sorry ![]()
Me, must look into this. This is very interesting.
@Tim,
Thank you very much for the reply.
I will check it.
@DetlefK,
Whenever you find a better solution, please let me know.
Regards
Etienne
(Xojo 2025r2.1)
its maybe the parent but it does not change the position
i think you need to create your own dialog window
it would be open
var w as new MyDialogWindow
w.Left=self.Left
w.Top=self.Top
w.InitSomething
w.ShowModal
memory the button / return value in this dialog window and hide it
read public property or call a method in w. here
w.close