Sign in to follow this  
Followers 0
dash007

Centre the title of the dialog box

3 posts in this topic

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



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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0