Facing difficulty on setting same GUI size for different resolutions
Posted 09 March 2012 - 05:59 PM
I have a machines where they have different screen resolutions, i have created a utility with a GUI which is not looking same in all machines. For example i have created a GUI with Label and Button and GUIRichEDit and TreeViews in my machine where i have normal resolutions. if i run the same code on another machine where i have high resolution then it shows the GUI different. is there a way to overcome this problem? Any suggestion? please let me know if you guys want any sample code!
Posted 09 March 2012 - 06:19 PM
You can use something like
Func ScaleWidth($pixels_x) Return $pixels_x * @DesktopWidth EndFunc ;==>ScaleWidth Func ScaleHeight($pixels_y) Return $pixels_y * @DesktopHeight ; you might want to vary the desktopheight to take into account the windows status bar EndFunc ;==>ScaleHeight
Edited by DelStone, 09 March 2012 - 06:19 PM.
Posted 09 March 2012 - 09:24 PM
Posted 12 March 2012 - 12:01 PM
Edited by Syed23, 12 March 2012 - 12:02 PM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users