 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
bahri
Joined: 24 Jun 2004 Posts: 101 Location: Malta
|
Posted: Sun May 06, 2007 12:10 pm Post subject: Back Pic Resizing |
|
|
Hi all!
No problem with placing a background pic of a definate size in a gui, but
I want to use the autosize in the gui show command and a guicontrol command after to resize the background picture.
I thought the following code will work.... but no luck
Any help please?
| Code: |
Gui, Margin, 0,0
Gui, Add, Picture, vback x0 y0 w60 h60, backtest.bmp
gui, add, button, x2 y2, button_____1
gui, add, button, x2 y+10, button_____2
gui, add, button, x2 y+10, button_____3
Gui, show,autosize
guicontrol,,back, w%A_GuiWidth% h%A_GuiHeight%
return
exit:
GuiEscape:
GuiClose:
ExitApp
|
Thanks all
bahri |
|
| Back to top |
|
 |
Paulo-nli Guest
|
Posted: Mon May 07, 2007 1:22 am Post subject: |
|
|
Hi, this code should work.
| Code: |
Gui, Margin, 0,0
Gui, Add, Picture, vback x0 y0 w60 h60, backtest.bmp
gui, add, button, x2 y2, button_____1
gui, add, button, x2 y+10, button_____2
gui, add, button, x2 y+10, button_____3
Gui, show,autosize
return
GuiSize:
guicontrol,,back, *w%A_GuiWidth% *h%A_GuiHeight% backtest.bmp
Return
exit:
GuiEscape:
GuiClose:
ExitApp |
|
|
| Back to top |
|
 |
bahri
Joined: 24 Jun 2004 Posts: 101 Location: Malta
|
Posted: Mon May 07, 2007 11:57 am Post subject: |
|
|
Hi!
Thanks it's the * that was my worry
Regards
bahri |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|