dash007 Posted September 16, 2007 Share 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. Link to comment Share on other sites More sharing options...
rover Posted September 16, 2007 Share 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... Link to comment Share on other sites More sharing options...
dash007 Posted September 16, 2007 Author Share 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... Link to comment Share on other sites More sharing options...
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