Koda + 30 Sekunden:
PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 625, 443, 192, 124)
$Tab1 = GUICtrlCreateTab(115, 90, 289, 193)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
$TabSheet1 = GUICtrlCreateTabItem("TabSheet1")
$Button1 = GUICtrlCreateButton("Button1", 160, 165, 75, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Button2", 275, 200, 75, 25, $WS_GROUP)
$TabSheet2 = GUICtrlCreateTabItem("TabSheet2")
$Button3 = GUICtrlCreateButton("Button3", 220, 195, 75, 25, $WS_GROUP)
GUICtrlCreateTabItem("")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Mit "GUICtrlSetState(-1,$GUI_SHOW)" kannst du beeinflussen, welcher Tab beim Programmstart angezeigt wird.