Hi, also
Ich Brauche einen 2ten Tab mit dem gleichen Inhalt, wie im Ersten Tab aber sobald ich einen Zweiten Tab erstelle wird dieser mir nicht angezeigt:
Spoiler anzeigen
#NoTrayIcon
#include <GUIConstantsEx.au3>
$ini = @ScriptDir & "\" & "config.ini"
[/autoit] [autoit][/autoit] [autoit]GUICreate('Settings', 230, 130)
GUICtrlCreateTab(10, 10, 200, 100)
GUICtrlCreateTabItem("English")
$Checkbox1 = GUICtrlCreateCheckbox("AutoUpdate", 20, 40)
$Checkbox2 = GUICtrlCreateCheckbox("AutoLogin", 20, 60)
$Checkbox3 = GUICtrlCreateCheckbox("Newsletter", 20, 80)
$ini_autoupdate = IniRead($ini, "Settings", "AutoUpdate", "")
If $ini_autoupdate = "yes" Then GUICtrlSetState($Checkbox1, $GUI_CHECKED)
$ini_autologin = IniRead($ini, "Settings", "AutoLogin", "")
If $ini_autologin = "yes" Then GUICtrlSetState($Checkbox2, $GUI_CHECKED)
$ini_newsletter = IniRead($ini, "Settings", "Newsletter", "")
If $ini_newsletter = "yes" Then GUICtrlSetState($Checkbox3, $GUI_CHECKED)
GUISetState(@SW_SHOW)
While 1
$this = GUIGetMsg()
Switch $this
Case $GUI_EVENT_CLOSE
Exit
Case $Checkbox1
$Read = GUICtrlRead($Checkbox1)
If $Read = 1 Then
IniWrite($ini, "Settings", "AutoUpdate", "yes")
ElseIf $Read = 4 Then
IniWrite($ini, "Settings", "AutoUpdate", "no")
EndIf
Case $Checkbox2
$Read = GUICtrlRead($Checkbox2)
If $Read = 1 Then
IniWrite($ini, "Settings", "AutoLogin", "yes")
ElseIf $Read = 4 Then
IniWrite($ini, "Settings", "AutoLogin", "no")
EndIf
Case $Checkbox3
$Read = GUICtrlRead($Checkbox3)
If $Read = 1 Then
IniWrite($ini, "Settings", "Newsletter", "yes")
InputBox("E-Mail:", "Enter E-Mail Adress here")
ElseIf $Read = 4 Then
IniWrite($ini, "Settings", "Newsletter", "no")
EndIf
EndSwitch
WEnd