Paradox (9) and multiple monitors

25 views
Skip to first unread message

Jure Zorko

unread,
Apr 16, 2025, 6:33:56 AMApr 16
to TheDBCommunity
One of my customers has tvo displays connected to computer.
It works OK, when he works in the office.
Looksup open on second monitor, but they are OK with it.

But when customer works from home, where he has only one monitor, problem starts.

He connects to work computer, main screen, and when he open some lookups, they open on second monitro in office.
He can not see them.

Question:
Can I somehow position paradox forms on "main" display, using form.open.....  or something?
Od is there a "windows" way to deactivate second screen, when remoting from home?

Thx Jure

TheDBCommunity

unread,
Apr 16, 2025, 9:45:43 AMApr 16
to TheDBCommunity
Look up the window and form method "setPosition" and "getPosition".  You may need to play around with getPosition() for a while to figure out the client's setup.

But are you saying that the main Paradox window opens on the main monitor and lookups open on a different monitor?  Are these the built-in lookups, or custom-coded?  You may have to custom code the lookups - it's not as hard as it sounds.

Liz

Jure Zorko

unread,
Apr 16, 2025, 12:42:36 PMApr 16
to TheDBCommunity
Lookups are my forms. I open them as modal windows.
I haven't seen client's setup personaly, but from description
I would say, that he has somehow set paradox to show on secondary display, 
but this works only for "regular" windows and forms. Modal forms open on primary display.

Is there a shortcut to move modal window with keyboard?
It used to be Alt+Spacebar, but now this opens some other menu.

Jure

TheDBCommunity

unread,
Apr 16, 2025, 8:06:00 PMApr 16
to TheDBCommunity
Windows will (usually) open apps in the window where they were when you closed them.  Presumably, when he accesses remotely, it understands that only one screen is available and overrides this setting, but somehow, the modal forms are not "getting the message".  What I would do is try to explicitly position the modal forms relative to the Paradox window.  So when the code that is about to open the modal form starts, it gets the app's position, and uses that the setPosition() for the modal form.

But now I'm confused - first you said the modals open on the second monitory in the office.  Now you're saying they open on the primary display.  Either way, the answer is the same - getPosition() of either Paradox or the calling form.  setPosition() of the modal form relative to the getPosition() coordinates.

Alt+Spacebar works on main windows.  In theory, ctrl+spacebar works on dialogs, but not all dialogs recognize it.

Liz

Reply all
Reply to author
Forward
0 new messages