Tab Auswahl

07/23/2010 14:59 ZindoR_aka_ultrakiller#1
Hallo,

hab da ein problem-.-^^
ich weiß es kommt fast jeder mit einer Tab auswahl klar, aber ich steck fest^^

könnt mir vllt jemand ein einfaches script erstellen, wo z.b. 2 tabs sind und 2 knöpfe^^

des reicht schon.


mfg sf
07/23/2010 15:52 KDeluxe#2
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"625443192124)
$Tab1 GUICtrlCreateTab(11590289193)
GUICtrlSetResizing(-1$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
$TabSheet1 GUICtrlCreateTabItem("TabSheet1")
$Button1 GUICtrlCreateButton("Button1"1601657525$WS_GROUP)
$Button2 GUICtrlCreateButton("Button2"2752007525$WS_GROUP)
$TabSheet2 GUICtrlCreateTabItem("TabSheet2")
$Button3 GUICtrlCreateButton("Button3"2201957525$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.
07/25/2010 10:56 ZindoR_aka_ultrakiller#3
danke killer