zipzulu
Joined: 14 May 2005 Posts: 3
|
Posted: Sat May 14, 2005 4:41 pm Post subject: Using GuiSize with two windows |
|
|
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 |
|