Ask Your Question
0

ensuring my dialog is always opened on top of every other open form/screen/window

asked 2016-02-25 00:16:13 +0200

jay Arr gravatar image

updated 2016-02-25 00:21:00 +0200

I've been developing a general purpose dialog replacement substitute for the LO BASE runtime routine MSGBOX - see this forum entry - It has more buttons up to 4, each with their own macro controlled text labels , ability to have the background & icon under macro control and has a scrollable text area

However, when testing I have noticed that sometimes, when I have other forms belonging to my application open it does not always open on top of everything else. This is important because, as you probably know, dialogs are by default monadic and have to be responded to before anything else. If they are hidden behind other forms/windows then it can appear to the user that his/her system has frozen - this is NOT A GOOD THING.

My question is: how can I ensure that my dialog always opens on top?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2016-03-07 19:31:16 +0200

Ratslinger gravatar image

Dialogs are set to modal or modeless by design/usage. For example using Find/Replace in a Writer doc brings up a modeless dialog. When a dialog is modal, the calling object cannot be accessed until the dialog is closed. Your dialog is modal to the form calling it (tested with a dummy form). However this does not stop anyone from opening another form which is not a parent to the dialog and hiding the dialog beneath. The same is true if you start another application. The opened dialog is not a child of this other application. I don't know of any way to make this dialog a child of the operating system - this is apparently what you are looking for.

edit flag offensive delete link more

Comments

Thank you for this explanation, it has reset my expectation of how dialogs behave.

jay Arr gravatar imagejay Arr ( 2016-03-08 09:49:04 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-02-25 00:16:13 +0200

Seen: 254 times

Last updated: Mar 07 '16