Solved

Multi-Monitor + CLX

Posted on 2003-12-01
7
369 Views
Last Modified: 2010-04-05
I know that CLX does not include multi-monitor support (yet!), but can someone point me to a practical work around?

I'm developing a cross-platform CLX application, and on Windows many users will have dual display's (but probably not on Linux). I'd like be  sure dialog boxes, about screens, splash screen etc position Desktop or Screen Center properlly.

[poScreenCenter and poDesktopCenter don't work correctly in CLX apps, as noted in the Help files]

Thanks
0
Comment
Question by:rwired
7 Comments
 
LVL 8

Expert Comment

by:gmayo
ID: 9857481
It may depend on the graphics card used to do multi display (or the drivers for them) (this is Windows, not Linux). For example, the Matrox cards (G200 and G400?) we use don't display correctly using the DefaultMonitor property, and return the entire width/height of the desktop (eg 2048x768 for a 2-screen display). However, Colorgraphics cards return the width of each monitor seperately and *do* display the DefaultMonitor option correctly. According to Colorgraphic, the way they do it is correct according to MS standards (but they would say that).

One problem with Matrox is that even-numbered screens (eg 2x2) cause the dialog boxes to appear on the border between the left/right monitors and the top/bottom monitors. You could always initialise the dialog to appear on the primary screen, which is normally top-left, by using fixed left/top positions for the form (Position=Designed).

I know that's not much help, just pointing out the problems we've already had.

Geoff M.
0
 

Author Comment

by:rwired
ID: 9873168
Thanks,

I feared it was specific to video drivers.

Still, I'd be interested in finding a nice clean workaround, which will work for a CLX app. Maybe I could use a compiler directive or similar to make a suitable API call to find out the true monitor dimensions/count etc.,  then override TScreen with a modified object with my own property value. I really don't know.
Any help will be much appreciated.

0
 
LVL 2

Expert Comment

by:odissey1
ID: 9885519
Hi all,

I have same problem in Win2k. From all spoken above it seems that on Windows platform there should be no problem to ShowModal a form positioned in the center of the Desktop. Yet, all my ShowModal calls result in a window in-between the monitors. I tried all settings in Form2.DefaultMonitor - no success. Any ideas?

Sincerely,
odissey1
env D7, Win2k, ATI graphic adapter
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 1

Expert Comment

by:NFX1
ID: 10231332
Always use poScreenCenter
0
 
LVL 2

Expert Comment

by:odissey1
ID: 10259133
To NFX1,

thank you for tip.

odissey1
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 13056296
PAQed with points refunded (300)

modulo
Community Support Moderator
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now