Solved TD-18370: Dialog on wrong screen

Report TD 5.x and 6.x bugs and possible workarounds.
EWetzel
Germany
Posts: 272
Joined: 07 Mar 2017, 12:08
Location: Germany

TD-18370: Dialog on wrong screen

Post by EWetzel » 27 Mar 2012, 09:45

Hi,

when you call SalModalDialog( dlg1, hWndNULL ) on SAM_AppStartup on a system with 2 monitors, dlg1 is shown
on the second monitor. I think the standard should be the monitor 1.

See the Sample attached.

Tested on Win7 Prof 64 Bit.

On TD6.0 SP4 it works correct.

best regards
enrico
You do not have the required permissions to view the files attached to this post.

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 3522
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: TD-18370: Dialog on wrong screen

Post by Dave Rabelink » 27 Mar 2012, 09:59

Yes, I also have seen this.
Seems to be an issue with the setting "Default".

When creating a new dialog and use Preview, the dialog is presented on the second monitor.
(the dialog has as left and top the setting "default")

When moving the dialog a bit in design mode, the window is placed correctly in designtime in Layout view and also on runtime.

I checked by settings and the first monitor has left positions <1280 and the second one >1280.
So the default uses >1280 + initial left position (the default).
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

EWetzel
Germany
Posts: 272
Joined: 07 Mar 2017, 12:08
Location: Germany

Re: TD-18370: Dialog on wrong screen

Post by EWetzel » 27 Mar 2012, 10:58

Hi Dave,

thank you for this hint!
So I can temporarily work with this issue.

best regards
enrico

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 3522
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: TD-18370: Dialog on wrong screen

Post by Dave Rabelink » 05 Apr 2012, 06:22

Here a video which shows that the default setting for location of top level windows is placed on the second monitor.
When a specific value is set for left and top, the window is correctly displayed (both designtime and runtime).
But when set to default the window is always presented on the second monitor.

https://samples.tdcommunity.net/index.p ... _Issue.wmv

This seems to be related to another bug report (there my setup is given).

viewtopic.php?t=68655
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 3522
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: TD-18370: Dialog on wrong screen

Post by Dave Rabelink » 05 Apr 2012, 06:38

A colleague of mine also tested this on his setup, a Windows XP 32 bit system with the same monitor setup.
The issue is there also. So we can rule out the windows OS.

Another test shows that TD60 SP5 has the same issue !!
No issues on TD42 !
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 3522
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: TD-18370: Dialog on wrong screen

Post by Dave Rabelink » 16 Aug 2012, 12:54

Bump to top.

TD 6.1 SP1 EMP5439 still has this issue.
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 3522
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: TD-18370: Dialog on wrong screen

Post by Dave Rabelink » 17 Sep 2012, 09:52

Gupta has assigned a defect number for this:

TD-18370 - Dialogs won't be previewed in the correct monitor when "Left" and "Top" values are set to "Default" in the IDE and main monitor resolution is less or equal to 1280
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 0 guests