Author Topic: Display Function centers on Primary monitor  (Read 6273 times)


  • Newbie
  • *
  • Posts: 1
Display Function centers on Primary monitor
« on: April 15, 2015, 01:53:48 pm »
I am using Dynamic Dialogs in many of my projects.  Often I need to display a message to the user, and I use the display function:  Display(3,"This is the Title","This is the message")

The problem I run into is that the display message always shows centered in the primary monitor.  It doesn't matter what monitor the compiled exe is displaying on.

Most of our users have 2 monitors, some have 3 and a few have 4.  Displaying a message 3 monitors away from the program doesn't work very well and makes my projects look unprofessional.

I can control the display location of child Dialog windows, is there any way to control where a display message shows?


  • Tech Support
  • *****
  • Posts: 4444
    • WinBatch
Re: Display Function centers on Primary monitor
« Reply #1 on: April 16, 2015, 06:43:34 am »
Since you are already familiar with WIL dialogs, the most elegant solution might be to  create your own Display function using a WIL dialog box. 
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade


  • Full Member
  • ***
  • Posts: 125
Re: Display Function centers on Primary monitor
« Reply #2 on: December 23, 2015, 05:10:15 pm »
You have probably sorted this out by now, but I just posted a custom message dialog function in the Script Exchange section that will do what you want... look for "Message Dialog with bells and whistles"

Nothing sucks more than that moment during an argument when you realize you're wrong. :)