Hi All,
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!
Facing difficulty on setting same GUI size for different resolutions
Started by
Syed23
, Mar 09 2012 05:59 PM
3 replies to this topic
#1
Posted 09 March 2012 - 05:59 PM
Thank you,Regards,K.Syed Ibrahim.
#2
Posted 09 March 2012 - 06:19 PM
You need to create a function that scales/proportions the dimensions you use according to the screen size, and pass all dimensions through this function before you use them to create any control or position anything...
You can use something like
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.
#3
Posted 09 March 2012 - 09:24 PM
Maybe you need something like this.
Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
#4
Posted 12 March 2012 - 12:01 PM
Thanks Martin! Let me check how does it work for me
Edited by Syed23, 12 March 2012 - 12:02 PM.
Thank you,Regards,K.Syed Ibrahim.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users




