|
You last visited: Today at 22:33
Advertisement
2Pages in 1 exe
Discussion on 2Pages in 1 exe within the AutoIt forum part of the Coders Den category.
06/08/2011, 13:58
|
#1
|
elite*gold: 17
Join Date: Apr 2010
Posts: 1,689
Received Thanks: 3,641
|
2Pages in 1 exe
Hi if anyone can help me?I want add 2 page in the hack.I mean the someone click the button,another page come.Maybe more checkbox or others checkbox with other functions..
|
|
|
06/08/2011, 14:03
|
#2
|
elite*gold: 52
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
|
You can try the Tab control.
|
|
|
06/08/2011, 14:09
|
#3
|
elite*gold: 17
Join Date: Apr 2010
Posts: 1,689
Received Thanks: 3,641
|
Quote:
Originally Posted by BlackHybrid
You can try the Tab control.
|
Well i don't really like it because i transpart the form
|
|
|
06/08/2011, 16:18
|
#4
|
elite*gold: 0
Join Date: Aug 2010
Posts: 880
Received Thanks: 113
|
Quote:
Originally Posted by ™Ichigo™
Well i don't really like it because i transpart the form
|
You have to do that:
PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 186, 68, 192, 124)
$Button1 = GUICtrlCreateButton("Page 1", 8, 16, 75, 25)
$Button2 = GUICtrlCreateButton("Page2", 96, 16, 75, 25)
GUISetState(@SW_SHOW, $form1)
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("Form2", 299, 173, 302, 218)
$Edit1 = GUICtrlCreateEdit("", 0, 0, 297, 121)
GUICtrlSetData(-1, "Edit1")
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 8, 128, 97, 17)
$Checkbox2 = GUICtrlCreateCheckbox("Checkbox2", 8, 152, 97, 17)
GUISetState(@SW_HIDE, $Form2)
#Region ### START Koda GUI section ### Form=
$Form3 = GUICreate("Form3", 253, 118, 302, 218)
$Input1 = GUICtrlCreateInput("Input1", 8, 8, 121, 21)
$Button3 = GUICtrlCreateButton("Button1", 8, 40, 75, 25)
$Radio1 = GUICtrlCreateRadio("Radio1", 104, 48, 113, 17)
$Radio2 = GUICtrlCreateRadio("Radio2", 104, 80, 113, 17)
GUISetState(@SW_HIDE, $Form3)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg(1)
Switch $nMsg[1]
Case $Form1
Switch $nMsg[0]
Case $GUI_EVENT_CLOSE
exit
case $button1
GUISetState(@SW_show, $Form2)
case $button2
GUISetState(@SW_show, $Form3)
EndSwitch
Case $Form2
Switch $nMsg[0]
Case $GUI_EVENT_CLOSE
GUISetState(@SW_HIDE, $Form2)
EndSwitch
Case $form3
Switch $nMsg[0]
Case $GUI_EVENT_CLOSE
GUISetState(@SW_HIDE, $Form3)
EndSwitch
EndSwitch
wend
|
|
|
06/08/2011, 16:36
|
#5
|
elite*gold: 17
Join Date: Apr 2010
Posts: 1,689
Received Thanks: 3,641
|
Quote:
Originally Posted by Ludder231
You have to do that:
PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 186, 68, 192, 124)
$Button1 = GUICtrlCreateButton("Page 1", 8, 16, 75, 25)
$Button2 = GUICtrlCreateButton("Page2", 96, 16, 75, 25)
GUISetState(@SW_SHOW, $form1)
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("Form2", 299, 173, 302, 218)
$Edit1 = GUICtrlCreateEdit("", 0, 0, 297, 121)
GUICtrlSetData(-1, "Edit1")
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 8, 128, 97, 17)
$Checkbox2 = GUICtrlCreateCheckbox("Checkbox2", 8, 152, 97, 17)
GUISetState(@SW_HIDE, $Form2)
#Region ### START Koda GUI section ### Form=
$Form3 = GUICreate("Form3", 253, 118, 302, 218)
$Input1 = GUICtrlCreateInput("Input1", 8, 8, 121, 21)
$Button3 = GUICtrlCreateButton("Button1", 8, 40, 75, 25)
$Radio1 = GUICtrlCreateRadio("Radio1", 104, 48, 113, 17)
$Radio2 = GUICtrlCreateRadio("Radio2", 104, 80, 113, 17)
GUISetState(@SW_HIDE, $Form3)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg(1)
Switch $nMsg[1]
Case $Form1
Switch $nMsg[0]
Case $GUI_EVENT_CLOSE
exit
case $button1
GUISetState(@SW_show, $Form2)
case $button2
GUISetState(@SW_show, $Form3)
EndSwitch
Case $Form2
Switch $nMsg[0]
Case $GUI_EVENT_CLOSE
GUISetState(@SW_HIDE, $Form2)
EndSwitch
Case $form3
Switch $nMsg[0]
Case $GUI_EVENT_CLOSE
GUISetState(@SW_HIDE, $Form3)
EndSwitch
EndSwitch
wend
|
Thank for replay...but i need in the same form if is possible.
|
|
|
06/08/2011, 17:26
|
#6
|
elite*gold: 0
Join Date: Aug 2010
Posts: 880
Received Thanks: 113
|
it's not possible i think...
|
|
|
06/08/2011, 18:30
|
#7
|
elite*gold: 52
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
|
You can lay a popup GUI over your main GUI or hide and show all controls with GUISetState and the states $GUI_HIDE and $GUI_SHOW.
|
|
|
All times are GMT +1. The time now is 22:33.
|
|