[TC 8.01] Wrong window-position on 1024x600 screen
Moderators: Hacker, petermad, Stefan2, white
[TC 8.01] Wrong window-position on 1024x600 screen
Wrong window-position on 1024x600 screen
When start-bar is left-sided and up-sided.
Screenshots:
http://iceimg.com/i/f7/d8/f8fe88c86e.gif - goog
http://iceimg.com/i/a9/86/ef7d30780d.gif - good
http://iceimg.com/i/d7/94/312f78ea7d.gif - wrong
http://iceimg.com/i/85/56/ad903d3314.gif - wrong
Please, fix this.
p.s.
When I comment wincmd.ini lines
dx=800
dy=600
I get smaller window, but the same wrong positions.
When start-bar is left-sided and up-sided.
Screenshots:
http://iceimg.com/i/f7/d8/f8fe88c86e.gif - goog
http://iceimg.com/i/a9/86/ef7d30780d.gif - good
http://iceimg.com/i/d7/94/312f78ea7d.gif - wrong
http://iceimg.com/i/85/56/ad903d3314.gif - wrong
Please, fix this.
p.s.
When I comment wincmd.ini lines
dx=800
dy=600
I get smaller window, but the same wrong positions.
2MVV
I change screen-resolution too often and have no need to set absolute position for the window, I need it to be centered as it is by default (when not fullscreen).
I change screen-resolution too often and have no need to set absolute position for the window, I need it to be centered as it is by default (when not fullscreen).
Last edited by MaxX on 2013-01-13, 18:37 UTC, edited 2 times in total.
There's no
x=...
y=...
lines in my config.
x=...
y=...
lines in my config.
Ukrainian Total Commander Translator. Feedback and discuss.
2MVV
Try to remove this lines from your config or start tc with blank wincmd.ini and you'll be able to reproduce this one.
Try to remove this lines from your config or start tc with blank wincmd.ini and you'll be able to reproduce this one.
Ukrainian Total Commander Translator. Feedback and discuss.
Some more:
Such a wrong position can be reproduced on ANY resolution and ANY windows!
But it becomes most noticeable on low-res screen.
Such a wrong position can be reproduced on ANY resolution and ANY windows!
But it becomes most noticeable on low-res screen.
Ukrainian Total Commander Translator. Feedback and discuss.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
TC is currently centered on the screen, not in the available desktop area. I will check whether I can change that.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Taskbar is a so-called "Application Desktop Toolbar". There may be more than one such toolbar (registered with SHAppBarMessage API function). To find all of them, you must enumerate all top-level windows with class name "Shell_TrayWnd". Then you can call GetWindowRect for them to determine real available desktop area.
2MarcinW
Why so complicated?
MSDN: MONITORINFO
http://ghisler.ch/board/viewtopic.php?p=103317#103317
Still delivers the correct workarea in Windows 7 x64.
Regards
Holger
Why so complicated?
MSDN: MONITORINFO
http://ghisler.ch/board/viewtopic.php?p=103317#103317
Still delivers the correct workarea in Windows 7 x64.
Regards
Holger
HolgerK, you are right. GetMonitorInfo API function is the best solution for Win98, WinME, Win2000, WinXP and above.
It's not available in Win95 and WinNT4. But in Delphi versions between 5 and 2010 there is a MultiMon unit that solves this problem (by implementing lacking functionality for Win95 and WinNT4). So this unit could be a sample for implementing a workaround in Delphi 2.
Regards!
It's not available in Win95 and WinNT4. But in Delphi versions between 5 and 2010 there is a MultiMon unit that solves this problem (by implementing lacking functionality for Win95 and WinNT4). So this unit could be a sample for implementing a workaround in Delphi 2.
Regards!