Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

GUIs displaying differently on other machines


  • Please log in to reply
33 replies to this topic
Chris
  • Administrators
  • 10727 posts
  • Last active:
  • Joined: 02 Mar 2004
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 -->

Zippo
  • Members
  • 56 posts
  • Last active: Jan 24 2009 05:18 AM
  • Joined: 21 Apr 2006
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.


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? :D

ANT-ilic
  • Members
  • 19 posts
  • Last active: May 01 2011 06:21 AM
  • Joined: 07 Jun 2006

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.

guest3456
  • Members
  • 1704 posts
  • Last active: Nov 19 2015 11:58 AM
  • Joined: 10 Mar 2011
thanks for that reg entry, i need to be able to test for 120dpi