Fügt einen neuen Tab ein
#include <GuiTab.au3>
_GUICtrlTab_InsertItem ( $hWnd, $iIndex, $sText [, $iImage = -1 [, $iParam = 0]] )
| $hWnd | Control-ID / Handle des Controls |
| $iIndex | Index des neuen Tabs |
| $sText | Tabtext |
| $iImage | [optional] 0-basierender Index des Tabbildes |
| $iParam | [optional] Anwendungsspezifische Daten |
| Erfolg: | Der 0-basierende Index des neuen Tabs |
| Fehler: | -1 |
- - - - - - - - Erklärung der Controls - - - - - - - -
#include "Extras\HelpFileInternals.au3"
#include <GUIConstantsEx.au3>
#include <GuiTab.au3>
Example()
Func Example()
; Erstellt eine GUI
Local $hGUI = GUICreate("Tab-Control Item einfügen (v" & @AutoItVersion & ")", 450, 300, 100, 100)
Local $idTab = GUICtrlCreateTab(2, 2, 446, 266)
_MemoMsgBoxStatus() ; Statuserstellung
GUISetState(@SW_SHOW)
; Fügt Tabs hinzu
_GUICtrlTab_InsertItem($idTab, 0, "Tab 0")
_GUICtrlTab_InsertItem($idTab, 1, "Tab 1")
_GUICtrlTab_InsertItem($idTab, 2, "Tab 2")
_MemoMsgBox($MB_SYSTEMMODAL, "Information", "Fügt 3 Items ein")
_MemoMsgBoxStatus("", -1, $hGUI) ; Keine weiteren Aktionen, es wird gewartet bis die GUI geschlossen wird.
EndFunc ;==>Example
#include "Extras\HelpFileInternals.au3" #include <GuiTab.au3> Example() Func Example() Local $sFromTo Local $hWin = _MemoRunAU3OutProcess($sFromTo, False) ; OK also if running in deifferent mode Local $hTabCtrl = _MemoCreateOutProcess($hWin, "SysTabControl32", 1, $sFromTo) _GUICtrlTab_InsertItem($hTabCtrl, 2, "<<<Tab 4") _MemoMsgBox($MB_SYSTEMMODAL, "Info" & $sFromTo, "Insert item #2") _MemoMsgBoxStatus("", -1, $hWin) ; no more action, wait GUI for closing EndFunc ;==>Example