AutoHotkey Community

It is currently May 26th, 2012, 5:38 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: April 16th, 2009, 12:38 pm 
Is it possible to center or right-align a button etc as an option? (I tried searching the forum but didn't find this question) Thank you.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2009, 12:41 pm 
Offline

Joined: June 6th, 2006, 3:19 pm
Posts: 1654
Location: Denmark
Did you check the help file?
Code:
Gui,add,Button,w200 Left,Left
Gui,add,Button,w200 Right,Right
Gui,add,Button,w200 Center,Center
Gui,Show,y200

_________________
RegEx Powered Dynamic Hotstrings
COM
AutoHotkey 2


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 22nd, 2009, 3:50 am 
Offline

Joined: April 22nd, 2009, 3:43 am
Posts: 26
Location: Australia
I think the OP wanted to centre the button within a window, not the text within the button.

So the question remains....


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 22nd, 2009, 9:51 pm 
Offline

Joined: December 28th, 2005, 10:46 am
Posts: 99
Look here


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 23rd, 2009, 2:45 am 
Offline

Joined: April 22nd, 2009, 3:43 am
Posts: 26
Location: Australia
Thanks. That thread referred to (but didn't solve) the problem of centering buttons on scalable windows, which I'm currently trying to do. In the meantime I can make do with MsgBox which at least does exactly what I want with its button(s).


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 23rd, 2009, 4:36 am 
Offline

Joined: December 28th, 2005, 10:46 am
Posts: 99
alanofoz wrote:
Thanks. That thread referred to (but didn't solve) the problem of centering buttons on scalable windows, which I'm currently trying to do. In the meantime I can make do with MsgBox which at least does exactly what I want with its button(s).

As you speak about scalable windows, (a part of) your solution is probably here. For the MsgBox, I can't help you as there is no option to position the MsgBox on the screen or to center it's button(s). But you can create a GUI window to "simulate" a MsgBox, and so you will be able to position it's buttons.
Hope it helps


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 23rd, 2009, 11:53 am 
Offline

Joined: April 22nd, 2009, 3:43 am
Posts: 26
Location: Australia
Thanks again. That link looks like it can do what I want. I'm trying to create a GUI window to "simulate" a MsgBox (as you said), and position the button and this looks like it will come close.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 25th, 2009, 1:46 am 
Offline

Joined: April 22nd, 2009, 3:43 am
Posts: 26
Location: Australia
Further searching has revealed thisthread which provides the answer I'm looking for.

Is the OP still watching, I wonder?


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: batto, BrandonHotkey, Miguel, mrhobbeys, Mtes, notsoobvious, rbrtryn, Yahoo [Bot] and 62 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