AutoHotkey Community

It is currently May 26th, 2012, 10:37 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: August 14th, 2008, 1:12 pm 
Offline

Joined: June 2nd, 2008, 4:01 pm
Posts: 16
Code:
Gui, 1: Add, Picture, x10 y10, picture.jpg
Gui, 1: Add, Button, x0 y+20 w75 vButtonVar, &Ok
Gui, 1: Show, Hide
Return

GuiSize:
GuiControl, Move, ButtonVar, % "x" (A_GuiWidth-75)//2
Gui, 1: Show, AutoSize
Return



i was looking for a way to change the buttontext with the If function when i came across this code and i cannot figure out how the subroutine is started (you can try it ,it starts and changes the position of the ok button)

can anyone shed a light on this?

thanks


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 14th, 2008, 1:20 pm 
Offline

Joined: November 8th, 2004, 12:46 am
Posts: 1271
If you want a button to launch a subroutine, add a g-label to its options. See the documentation for the GuiSize label, it launches whenever the window is resized, minimized, maximized, or restored.

_________________
"Anything worth doing is worth doing slowly." - Mae West
Image


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: bobbysoon, BrandonHotkey, Google [Bot], iBob35555VR, oldbrother, Tilter_of_Windmills and 66 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