just found out, I can use a MessageDialog as ShowModalWithin inside a container control without having to know the window name.
I used ‘self.window’ for the message dialog in the container control, works perfect.
You should better use self.TrueWindow as a containerControl can contain other ContainerControls.
So if your ContainerControl is on another ContainerControl then the messageDialog will not be shown Within the window but just as a modal dialog.
thanks Markus,
as I said, I just discovered it and nobody is telling that to the beginners, so I thought I put it into the forum, some other newcomers might not know it.
You might file a request to have it added to the docs
MessageDialog.ShowModalWithin and ContainerControl.TrueWindow are both already in the Language Reference.