AutoHotkey Community

It is currently May 26th, 2012, 9:33 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: May 14th, 2005, 5:41 pm 
Offline

Joined: May 14th, 2005, 4:40 pm
Posts: 3
Hi there,

don't know what I'm doing wrong here but is there a way to use GuiSize/A_GuiHeight/A_GuiWidth even with two different GUI windows?
To be more specific: I've got a main and an output window. Upon resizing the output window its controls should be adjusted accordingly - however, the controls get updated when I resize the main window ...

Example:

Code:
Gui, +Resize
Gui, 1:Show, x0 y0 h250 w250, Main

Gui, 2: +Resize
Gui, 2:Show, x400 y0 h250 w250, Output
Gui, 2:Add, Edit, vOutputEdit

GuiSize:
Width := A_GuiWidth - 20
Height := A_GuiHeight - 20
GuiControl, 2:Move, OutputEdit, W%Width% H%Height%
return

GuiClose:
ExitApp


Thanks


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 14th, 2005, 10:26 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
I think all you need is a 2 in front of the word GuiSize: "2GuiSize:".

The "2" prefix allows a each window to have its own label (though window #1 would does not have a prefix at all).


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: Exabot [Bot], tomoe_uehara and 64 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