Function Reference


_GUICtrlListView_GetItemSpacingY

Determines the vertical spacing between items in the control

#include <GuiListView.au3>
_GUICtrlListView_GetItemSpacingY ( $hWnd [, $bSmall = False] )

Parameters

$hWnd Control ID/Handle to the control
$bSmall [optional] View for which to retrieve the item spacing:
    True - Small icon view
    False - Icon view

Return Value

Returns the vertical spacing.

Related

_GUICtrlListView_GetItemSpacing

Example

#include <GUIConstantsEx.au3>
#include <GuiListView.au3>
#include <MsgBoxConstants.au3>

Example()

Func Example()
        Local $iX, $iY, $idListview

        GUICreate("ListView Get Item Spacing Y", 400, 300)
        $idListview = GUICtrlCreateListView("", 2, 2, 394, 268)
        GUISetState(@SW_SHOW)

        ; Add columns
        _GUICtrlListView_AddColumn($idListview, "Items", 100)

        ; Add items
        _GUICtrlListView_AddItem($idListview, "Item 1")
        _GUICtrlListView_AddItem($idListview, "Item 2")
        _GUICtrlListView_AddItem($idListview, "Item 3")

        ; Show item spacing
        $iX = _GUICtrlListView_GetItemSpacingX($idListview)
        $iY = _GUICtrlListView_GetItemSpacingY($idListview)
        MsgBox($MB_SYSTEMMODAL, "Information", StringFormat("Item Spacing: X=%d, Y=%d", $iX, $iY))

        ; Loop until the user exits.
        Do
        Until GUIGetMsg() = $GUI_EVENT_CLOSE
        GUIDelete()
EndFunc   ;==>Example