Solved

Multi-Monitor + CLX

Posted on 2003-12-01
7
379 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
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

830 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