Setzt die Breite und Höhe eines Tabs (mit fester Breite oder selbst gezeichnet)
#include <GuiTab.au3>
_GUICtrlTab_SetItemSize ( $hWnd, $iWidth, $iHeight )
$hWnd | Control-ID / Handle des Controls |
$iWidth | Neue Breite in Pixel |
$iHeight | Neue Höhe in Pixel |
- - - - - - - - Erklärung der Controls - - - - - - - -
#include <GuiConstantsEx.au3>
#include <GuiTab.au3>
Example()
Func Example()
Local $idTab
; Erstellt eine GUI
GUICreate("Tab-Control: Setzt die Itemgröße", 400, 300)
$idTab = GUICtrlCreateTab(2, 2, 396, 296, BitOR($TCS_BUTTONS, $TCS_FIXEDWIDTH))
_GUICtrlTab_SetItemSize($idTab, 70, 40)
GUISetState(@SW_SHOW)
; Fügt Tabs hinzu
_GUICtrlTab_InsertItem($idTab, 0, "Tab 1")
_GUICtrlTab_InsertItem($idTab, 1, "Tab 2")
_GUICtrlTab_InsertItem($idTab, 2, "Tab 3")
; Die Schleife wiederholt sich, bis der Benutzer die Beenden-Aktion der GUI auslöst.
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
GUIDelete()
EndFunc ;==>Example