WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Miscellaneous

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Message Boxes are Off the Screen


Question:

Not really a coding problem but a pain in the behind nonetheless. Whenever I use message boxes in my Winbatch script (compiled or interpreted) the message boxes are displayed WAY off the viewable screen. I can only access it by using ALT-SPACE-M so that the MOVE menu is visable and then I drag it onto the viewable desktop.

Does anyone know where the setting is for the default location for message boxes?

Answer:

Generally the message boxes are centered. First I recommend rebooting the system, this might clear it up.

Some video drivers (mostly for multiple monitor systems) have an override for the requested placement of stuff like message boxes and attempt to center the message boxes in the application.

However WinBatch is running down in the task bar as an icon. And if the video driver tries to re-center the message box on that, well, it is not in a very viewable place.

To test this add


BoxOpen("Hi","There")
to the top of your script and test again. Does it work now?

You may wish to investigate various setting in the control panel that control this behavior. Sometimes you can "opt out" of this auto re-center activity on a program by program basis


Question:

I am having a problem with this basic function -'message("title","text")' in that upon execution I cannot see the message box on the screen. It's almost as if it's "off screen" or minimized. The same happens with the command "AskYesNo", but does not happen with with "AskLine" or "Display". Any ideas? I am using winbatch 2004F.

Answer:

WinBatch has supported multi monitor systems since 2002 and I have been using it on multi monitor systems since that time. I can't say that I have ever seen the behavior you describe nor do I recall anyone reporting such behavior in the past.

There have been a few multi monitor bug fixes over the years but I know of none that effect the functions in question. The functions you are using should just default to displaying on the primary monitor.

There must be something unique about your setup that is causing this problem. It could have something to do with how secondary monitors are placed in relation to the primary monitor or perhaps a device driver problem.

You might try using IntControl 63 to change the positioning of the "ask" dialogs and report back any settings that make those dialogs viewable on your system.


Article ID:   W16501
File Created: 2007:11:09:10:35:44
Last Updated: 2007:11:09:10:35:44