2Pages in 1 exe

06/08/2011 13:58 ~>Jάson<~#1
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 BlackHybrid#2
You can try the Tab control.
06/08/2011 14:09 ~>Jάson<~#3
Quote:
Originally Posted by BlackHybrid View Post
You can try the Tab control.
Well i don't really like it because i transpart the form
06/08/2011 16:18 Ludder231#4
Quote:
Originally Posted by ™Ichigo™ View Post
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 ~>Jάson<~#5
Quote:
Originally Posted by Ludder231 View Post
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 Ludder231#6
it's not possible i think...
06/08/2011 18:30 BlackHybrid#7
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.