#include <GUIConstantsEx.au3>
GUICreate("lire GUICtrlCreateTabItem", 300, 150); will create a dialog box that when displayed is centered
GUISetBkColor(0x00E0FFFF)
GUISetFont(9, 300)
$tab = GUICtrlCreateTab(10, 10, 280, 130)
$tab0 = GUICtrlCreateTabItem("bonjour")
$tab1 = GUICtrlCreateTabItem("test")
$tab2 = GUICtrlCreateTabItem("super")
GUICtrlSetState(-1, $GUI_SHOW); will be display first
GUICtrlCreateTabItem(""); end tabitem definition
GUISetState()
; Run the GUI until the dialog is closed
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
If $msg = $tab Then
MsgBox(0,"0",$tab)
MsgBox(0,"1",GUICtrlRead($tab))
EndIf
WEnd
Merci d'avance.
++ Vins
Modifié en dernier par Vins83 le lun. 26 avr. 2010 11:45, modifié 1 fois.