Author Topic: How to center a pop-up confirmation dialogue on screen in current monitor?  (Read 1774 times)


  • New Member
  • *
  • Posts: 40
Is there an established technique to make a dialogue pop up where I want it?

First of all, I'd like it to appear in the same monitor where the main form is currently located. It's really easy to miss, and frustrating when a confirmation dialogue pops up on screen in a different monitor. (As an aside - this happens a lot for apps in general, even with some big commercial apps).

And I'd like it centered on screen in that monitor, rather than any random location away at the edge somewhere as is happening now, with maybe 90 percent of the dialogue off-screen.

How can I control these things? An example would be great.
« Last Edit: July 31, 2012, 08:55:55 am by dahaiou »


  • Hero Member
  • *****
  • Posts: 1791
    • Nxpascal home
You should look into TForm.Position property. There are different centering options available.


  • Sr. Member
  • ****
  • Posts: 422
If you are talking about MessageDlg you can't control them, they are system based.
If you are talking about CreateMessageDialog then you can control the resulting TForm as you control a normal TForm, set size, move on the screen, add or remove buttons, change captions ecc...


TinyPortal © 2005-2018