Hi Manfred,
Thanks for your answer but that's what I've done already and my question was too brief.
The slot onShowMessageBox implements:
// Obtain access to the root object.
var Core::Root rootObject = GetRoot();
// Create a new instance of a message box component.
var Example::MessageBox messageBox = new Example::MessageBox;
// Initialize it (e.g. define position on the screen,
// or content of the message box, etc.)
messageBox.Bounds.origin = <25,280>;
messageBox.Caption = "Test";
messageBox.Message = "This is a test of a message box with a long long line of text";
messageBox.Visible = true;
// Eventually connect the message box with a slot method to execute
// when the user has confirmed the message, etc. Within this method
// the message box will end the modal state and disappear.
messageBox.OnExit = onHideMessageBox;
// Add the message box component directly to the application component.
// Thereupon the message box will appear.
rootObject.Add( messageBox, 0 );
// And route keyboard events to it
rootObject.Focus = messageBox;
// ... and finally make the message box component modal, so no other
// component receives user inputs as long as the message box is modal.
rootObject.BeginModal( messageBox );
Now if I run the application it shows the message box but if I use the touch screen I'm able to slide and moe it to a different position on the screen.
That's not what I want, I want it to be fixed at the specified position. Basically the user should not be able to move the positon of my modal message box (the user is only allowed to press the Ok button to exit the modal message box).
What is the best way to achieve this?
Kind regards,
Robert