dash007 0 Posted September 16, 2007 I have a gui, and am trying to centre its title. See sample code (from help file): #include <GUIConstants.au3> GUICreate("My Title") GUISetState (@SW_SHOW) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend In the above code, I would like "My Title" to be in the centre and not at the left (default) of the title bar. I checked the help file and also the forum, and hence requesting if anyone knows how to do it. BTW I have tried something like GUICreate(" My Title") and although it works on my PC it looks really bad on another PC with a different or no theme. Any help would be appreciated. Share this post Link to post Share on other sites
rover 50 Posted September 16, 2007 (edited) Hi,The short answer I believe, is No.there is no WS_EX_CENTER message IDperhaps there is a hack somewhere...search google for "WS_EX_CENTER"AutoIt Forum - Center Message Box TextCodeGuru Forums - Centering Dialog Caption Edited September 16, 2007 by rover I see fascists... Share this post Link to post Share on other sites
dash007 0 Posted September 16, 2007 Hi, The short answer I believe, is No. there is no WS_EX_CENTER message ID perhaps there is a hack somewhere... search google for "WS_EX_CENTER" AutoIt Forum - Center Message Box Text CodeGuru Forums - Centering Dialog Caption Thanks... Share this post Link to post Share on other sites