#include #include #include "GUIExtender_Ex_Test.au3" #include "GUIScrollbars_Size.au3" #include Global $iTotalSections = 5, $aSection[$iTotalSections] $hGUI = GUICreate("Extender", 600, 430 * $iTotalSections, 1000, 100) _GUIExtender_Init($hGUI, 0, 3) For $i = 0 To $iTotalSections - 1 $iStartCoord = (($i = 0) ? (0) : (-1)) $iSection = _GUIExtender_Section_Create($hGUI, $iStartCoord, 30) $iY = _GUIExtender_Section_BaseCoord($hGUI, $iSection) _GUIExtender_Section_Activate($hGUI, $iSection + 1, "", "", 0, $iY, 20, 20) GUICtrlCreateLabel("Section " & $i + 1 & " Header", 30, $iY, 200, 20) GUICtrlSetBkColor(-1, 0xCCFFCC) $iSection = _GUIExtender_Section_Create($hGUI, -1, 400) $iY = _GUIExtender_Section_BaseCoord($hGUI, $iSection) $iCID = GUICtrlCreateLabel("Section " & $i + 1 & " Text", 10, $iY, 450, 380) GUICtrlSetBkColor(-1, 0xFFCCCC) $aSection[$i] = $iSection Next _GUIExtender_Section_Create($hGUI, -99, 500) _GUIExtender_Section_Action($hGUI, 0, 0) GUISetState() _GUIExtender_Ex_ScrollInit($hGUI, 600, 500);, False) While 1 $aMsg = GUIGetMsg(1) Switch $aMsg[0] Case $GUI_EVENT_CLOSE Exit EndSwitch $iRet = _GUIExtender_Ex_EventMonitor($aMsg[1], $aMsg[0]) WEnd