If I for example in 64bit TC in the [AllResolutions] have y=1 and dy=731 then I need to use y=2 and dy=730 in 32bit TC to have the main window positioned with the same position and size.
This is only under Windows 10 - under Windows 7 and 8.1 I see no such problem.
solved [TC 10.52rc2] y and dy parameters in [AllResolutions] are not treated the same in 32bit and 64bit TC
Moderators: Hacker, petermad, Stefan2, white
solved [TC 10.52rc2] y and dy parameters in [AllResolutions] are not treated the same in 32bit and 64bit TC
Last edited by petermad on 2022-10-18, 13:31 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50861
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC 10.52rc2] y and dy parameters in [AllResolutions] are not treated the same in 32bit and 64bit TC under Windows 1
Unfortunately Delphi (TC 32-bit) and Lazarus (TC 64-bit) calculate screen positions differently. It's unfortunately not possible to get the exact same behaviour, sorry.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC 10.52rc2] y and dy parameters in [AllResolutions] are not treated the same in 32bit and 64bit TC under Windows 1
Hmm, just peculiar that I don't see it under Windows 7 and 8.1
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50861
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC 10.52rc2] y and dy parameters in [AllResolutions] are not treated the same in 32bit and 64bit TC under Windows 1
Do you use multiple screens with different resolutions? I ask because on Windows 11 the two have the exact same size.
Delphi expects the real window size, while Lazarus expects the size without borders. This has to be taken into account. Somehow your border size differs by 1 pixel between loading and storing.
Delphi expects the real window size, while Lazarus expects the size without borders. This has to be taken into account. Somehow your border size differs by 1 pixel between loading and storing.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC 10.52rc2] y and dy parameters in [AllResolutions] are not treated the same in 32bit and 64bit TC under Windows 1
Not on my Windows 10 PC - I still don't have a Windows 11 PC.Do you use multiple screens with different resolutions?
I have multiple monitors on my Windows 7 PC, but if I use the same coordinates for 32bit and 64but TC under Win 7 the windows are placed and sized the same.
But I found out that I hadn't updated the monitor(x,y,dx,dy;dpi) parameter correctly to match the y and dy parameters - that makes me think that the x,y,dx,dy parameters are somewhat obsolete - since the monitor parameter takes precedence.
So no bug - just my bad

License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar