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
TD-18370: Dialog on wrong screen
TD-18370: Dialog on wrong screen
You do not have the required permissions to view the files attached to this post.
-
- Founder/Site Admin
- Posts: 3522
- Joined: 24 Feb 2017, 09:12
- Location: Gouda, The Netherlands
Re: TD-18370: Dialog on wrong screen
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).
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

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

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Re: TD-18370: Dialog on wrong screen
Hi Dave,
thank you for this hint!
So I can temporarily work with this issue.
best regards
enrico
thank you for this hint!
So I can temporarily work with this issue.
best regards
enrico
-
- Founder/Site Admin
- Posts: 3522
- Joined: 24 Feb 2017, 09:12
- Location: Gouda, The Netherlands
Re: TD-18370: Dialog on wrong screen
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
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

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

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
-
- Founder/Site Admin
- Posts: 3522
- Joined: 24 Feb 2017, 09:12
- Location: Gouda, The Netherlands
Re: TD-18370: Dialog on wrong screen
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 !
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

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

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
-
- Founder/Site Admin
- Posts: 3522
- Joined: 24 Feb 2017, 09:12
- Location: Gouda, The Netherlands
Re: TD-18370: Dialog on wrong screen
Bump to top.
TD 6.1 SP1 EMP5439 still has this issue.
TD 6.1 SP1 EMP5439 still has this issue.
Regards,
Dave Rabelink

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

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
-
- Founder/Site Admin
- Posts: 3522
- Joined: 24 Feb 2017, 09:12
- Location: Gouda, The Netherlands
Re: TD-18370: Dialog on wrong screen
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
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

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

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Who is online
Users browsing this forum: No registered users and 0 guests