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"18668192124)
$Button1 GUICtrlCreateButton("Page 1"8167525)
$Button2 GUICtrlCreateButton("Page2"96167525)
GUISetState(@SW_SHOW$form1)
#Region ### START Koda GUI section ### Form=
$Form2 GUICreate("Form2"299173302218)
$Edit1 GUICtrlCreateEdit(""00297121)
GUICtrlSetData(-1"Edit1")
$Checkbox1 GUICtrlCreateCheckbox("Checkbox1"81289717)
$Checkbox2 GUICtrlCreateCheckbox("Checkbox2"81529717)
GUISetState(@SW_HIDE$Form2)

#Region ### START Koda GUI section ### Form=
$Form3 GUICreate("Form3"253118302218)
$Input1 GUICtrlCreateInput("Input1"8812121)
$Button3 GUICtrlCreateButton("Button1"8407525)
$Radio1 GUICtrlCreateRadio("Radio1"1044811317)
$Radio2 GUICtrlCreateRadio("Radio2"1048011317)
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"18668192124)
$Button1 GUICtrlCreateButton("Page 1"8167525)
$Button2 GUICtrlCreateButton("Page2"96167525)
GUISetState(@SW_SHOW$form1)
#Region ### START Koda GUI section ### Form=
$Form2 GUICreate("Form2"299173302218)
$Edit1 GUICtrlCreateEdit(""00297121)
GUICtrlSetData(-1"Edit1")
$Checkbox1 GUICtrlCreateCheckbox("Checkbox1"81289717)
$Checkbox2 GUICtrlCreateCheckbox("Checkbox2"81529717)
GUISetState(@SW_HIDE$Form2)

#Region ### START Koda GUI section ### Form=
$Form3 GUICreate("Form3"253118302218)
$Input1 GUICtrlCreateInput("Input1"8812121)
$Button3 GUICtrlCreateButton("Button1"8407525)
$Radio1 GUICtrlCreateRadio("Radio1"1044811317)
$Radio2 GUICtrlCreateRadio("Radio2"1048011317)
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.