tabsheet problem

11/21/2010 12:24 maxi39#1
hi,

ich hab ein sehr kleines problem und das ist: ich möchte wenn tabsheet 2 angezeigt wird eine msbox erscheint.

hier einmal zu verdeutlichung:


PHP Code:
#include <GUIConstantsEx.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Form1"615440192124)
$Tab1 GUICtrlCreateTab(6440497385)
$TabSheet1 GUICtrlCreateTabItem("TabSheet1")
$TabSheet2 GUICtrlCreateTabItem("TabSheet2")
GUICtrlCreateTabItem("")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    
if $tabsheet2 true then msgbox(0,"","") ; das funktioniert nartülich nicht


$nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit

    EndSwitch
WEnd 
11/21/2010 12:45 ZeraPain#2
Code:
#include <GUIConstantsEx.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>

$Form1 = GUICreate("Form1", 615, 440, 192, 124)
$Tab1 = GUICtrlCreateTab(64, 40, 497, 385)
GUICtrlCreateTabItem("TabSheet1")
GUICtrlCreateTabItem("TabSheet2")
GUISetState(@SW_SHOW)

While 1
    Switch GUIGetMsg()
        Case $GUI_EVENT_CLOSE
            Exit
	Case $Tab1
		If GUICtrlRead($Tab1) = 1 Then
			MsgBox(0,0,0)
		EndIf

    EndSwitch
WEnd