MissingFrame Posted August 7, 2008 Posted August 7, 2008 I've not been able to get the position parameters to do anything for GuiCreate. For instance, in the example of SampleControls.au3 I changed the GuiCreate line to: GuiCreate("Sample GUI", 400, 400, 350, 350) and I've changed the 350 above to various numbers and I always get the same result, window is opened center of screen. Is there something I'm missing or is this a bug? Other window positioning functions seem to work ok. AutoIt3 v3.2.12.1 but it also happened on the older version I upgraded from (I think v3.2.10ish). Sys details: dual-monitor nVidia Windows XP Pro SP2 Athlon 64.
Zedna Posted August 7, 2008 Posted August 7, 2008 All is working fine: #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> GUICreate("My GUI",300,200,500,500) ;GUICreate("My GUI",300,200,0,0) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd Resources UDF ResourcesEx UDF AutoIt Forum Search
MissingFrame Posted August 7, 2008 Author Posted August 7, 2008 (edited) Hmm, ok. Thanks for the help btw. I just tried that code on my machine and same result as before, centered on screen. I might have some "helper" program forcing windows to the center of screen, nVidia did this but I disabled it already. My workaround is to move the window after it opens, which is probably easier than hunting down my rogue "helper" ... ........ Edit: ........ Removed nVidia tools completely and now it works fine. I should have suspected the bug was with nVidia. Edited August 7, 2008 by MissingFrame
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now