Thanks for the interesting links. Here's some others that get to the heart of the matter. They seem to indicate that there may not be any solution that works on all display drivers on all XP systems:
<!-- m -->http://support.micro... ... -us;177795<!-- m -->
<!-- m -->http://www.codeproje... ... xx552648xx<!-- m -->
GUIs displaying differently on other machines
Started by
Terrapin
, Jan 20 2006 05:37 AM
33 replies to this topic
#31
-
Posted 24 April 2006 - 11:07 PM
Thanks for the links. I was starting to think I had a freak XP installation or something.
I haven't had time to change the script, but I'm thinking I can create the window, then check the sizes of everything and use GuiControl, Move to change things as needed before showing it.
Pretty Please?
I haven't had time to change the script, but I'm thinking I can create the window, then check the sizes of everything and use GuiControl, Move to change things as needed before showing it.
Chris:
I believe the correct way to solve this is have the program recognize units other than pixels (like HTML and CSS do). Such a syntax might look something like x+80em. Although I'll add this to the to-do list, other things are a higher priority at the moment.
Pretty Please?
#32
-
Posted 26 April 2006 - 09:37 PM
Thanks for the links. I was starting to think I had a freak XP installation or something.
I haven't had time to change the script, but I'm thinking I can create the window, then check the sizes of everything and use GuiControl, Move to change things as needed before showing it.
Sorry for digging old posts, I'm pretty new to AHK.
I had the same problem with DPI setting and fonts on different systems.
It should work on NT based OSes, but I have not tested it on 9x.
My current testing solution is something like this:
DPI_F:=DPIFactor() Gui, Font, % "s". 8/DPI_F . " W". 400*DPI_F*1.1 , Tahoma ; width *1.1 to compensate for DPI differencies. Might not be needed DPIFactor() { RegRead, DPI_value, HKEY_CURRENT_USER, Control Panel\Desktop\WindowMetrics, AppliedDPI ; the reg key was not found - it means default settings ; 96 is the default font size setting if (errorlevel=1) OR (DPI_value=96 ) return 1 else Return DPI_Value/96 }
TNX to Jordi for reg. entry.
#33
-
Posted 09 October 2006 - 09:56 AM
thanks for that reg entry, i need to be able to test for 120dpi
#34
-
Posted 30 July 2012 - 03:58 AM