AutoHotkey Community

It is currently May 26th, 2012, 7:20 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: May 24th, 2008, 3:39 pm 
I know it is probably very simple, but it is driving me mad!!!!!!

You can see the commandsI've tried in this script:

Code:
Gui,Font, s24, Arial
Gui Add, Button, w200 center +Center SS_CENTER 0x1 ES_CENTER BS_CENTER 0x300, How do I get this text to be centered, instead of aligned to the left as it is here? I have tried every command I can find, but none of them make a difference
Gui, Show
Return

GuiClose:
 ExitApp


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 24th, 2008, 5:38 pm 
Code:
Gui, Add, Button, w100 h30 Center, Text
Gui, Show
Return


Report this post
Top
  
Reply with quote  
PostPosted: May 24th, 2008, 6:12 pm 
I expected that to work as well - and I tried it many different ways - but have a go - it is still left-justified:

Code:
Gui,Font, s24, Arial
Gui Add, Button, w200 h600 Center, How do I get this text to be centered, instead of aligned to the left as it is here? I have tried every command I can find, but none of them make a difference
Gui, Show
Return

GuiClose:
 ExitApp


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 24th, 2008, 8:05 pm 
Offline

Joined: April 18th, 2008, 7:57 am
Posts: 1390
Location: The Interwebs
That piece of code, for me anyway, creates a nice button with completely centered text. So I have no idea why it won't work for you...


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Not crazy after all :o
PostPosted: May 24th, 2008, 8:45 pm 
For days I have been reading and trying everything

Each time sure it would work

I started to lose it a bit :? :x :evil:

At least now I know that I am not mad after all (well no more than usual)

It must be my system - thx Krogdor

BTW - If anyone knows why my system would still display it left-justified - I would like to know


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 24th, 2008, 8:58 pm 
Offline

Joined: April 17th, 2007, 1:37 pm
Posts: 761
Location: Florida
Just a shot in the dark but try adding -theme?

_________________
[Join IRC!]
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Not worked
PostPosted: May 24th, 2008, 10:06 pm 
Thx Rhys for having a go

However my button is still left-justified

Code:
Gui,Font, s24, Arial
Gui Add, Button, w200 h600 Center -theme, How do I get this text to be centered, instead of aligned to the left as it is here? I have tried every command I can find, but none of them make a difference
Gui, Show
Return

GuiClose:
 ExitApp


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: bobbysoon, kkkddd1, tomL and 70 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group