[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Delphi2010: Dual Monitor Problem -- why is sub Form hiden?

Posted on 2011-10-26
7
Medium Priority
?
360 Views
Last Modified: 2012-05-12
hello all,

i have an application which have a main form and a sub form.

if the application is started, main form and sub form will be displayed, the sub form is displayed over the main form.

it works great on dual monitor of mine and other customer's.

but one customer has problem with his dual monitor. When he starts the application, the sub form is hiden behind the main form. Only by using "Alt + Tab" can this sub form be invoked and displayed again.

any suggestion?

thanks,

wantime
0
Comment
Question by:wantime
  • 5
7 Comments
 

Author Comment

by:wantime
ID: 37031208
the best way could be make some change in souce codes to let the application work on all dual monitor.

it will be also appreciate, if one knows how to change the configuration of monitors and let it work, without any change in source codes.
0
 
LVL 25

Expert Comment

by:epasquier
ID: 37032327
I don't see the relation between dual monitor and the problem.
If I understood you have a form hidden behind another. That could apply to only one monitor.

Please tell us more about the way you create and display your forms (is the sub form modal ?)

check here as there are a couple good things to try
http://stackoverflow.com/questions/21749/multiple-form-delphi-applications-and-dialogs
0
 
LVL 32

Expert Comment

by:Ephraim Wangoya
ID: 37035084

you can try to set the following properties as well

SubForm.DefaultMonitor := dmActiveForm;
SubForm.FormStyle := fsStayOnTop;
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:wantime
ID: 37056440
the problem is still there.

the codes is attached here.

The Problem i met is in Step 5:

Step 1.  start the application in a computer which has dual monitor.

Step 2. the forms are displayed correctly.

Step 3. close the form with name "Form2".

Step 4. move the "Form1" with mouse from left monitor to right monitor.

Step 5.  the "Form2" is displayed again! and "Form2" could not be closed per mouse click, i must close it with ctrl-alt-del.

this application works great in my dual monitor and also by other people, but just by few people it has problem above.

any idea? thanks.
monitor.zip
0
 

Author Comment

by:wantime
ID: 37056513
i wonder why the method Formactivated was invoked, when the main form is moved to another monitor.

are there any way to prevent that happened?
0
 

Accepted Solution

by:
wantime earned 0 total points
ID: 37187281
the problem is basiced on a software called nView-Profil  which was used. After the standard value is reset in nView-Profil, the problem was resolved.
0
 

Author Closing Comment

by:wantime
ID: 37199899
it works.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
There are more than twenty applications to turn Webcam into home and  small business security. Let's discuss one of the most easy ones to install. If you do not have already installed the drivers to the pc for your webcam, you'll need to do that …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

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