Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <GUIConstants.au3>
- #include <GuiListView.au3>
- Local $test_data[20][3] = [["Row 1", 10, 20.5], ["Row 2", 8, 50.3], ["Row 3", 6, 30.75]]
- Local $sHeader = "Col A|Col B|Col C"
- $style = BitOR($LVS_REPORT, $LVS_SINGLESEL, $LVS_SHOWSELALWAYS, $WS_CLIPSIBLINGS)
- $exstyle = BitOR($LVS_EX_GRIDLINES, $LVS_EX_FULLROWSELECT)
- Local $hForm = GUICreate("Test Form", 400, 350, 303, 219, BitOR($WS_MAXIMIZEBOX,$WS_MINIMIZEBOX,$WS_SIZEBOX,$WS_THICKFRAME,$WS_SYSMENU,$WS_CAPTION,$WS_OVERLAPPEDWINDOW,$WS_TILEDWINDOW,$WS_POPUPWINDOW,$WS_GROUP,$WS_TABSTOP,$WS_BORDER,$WS_CLIPSIBLINGS))
- Local $hListView1 = _GUICtrlListView_Create($hForm, $sHeader, 5, 5, 390, 100, $style, $exstyle)
- Local $hListView2 = GUICtrlCreateListView($sHeader, 5, 120, 390, 100, $style, $exstyle)
- Local $hLabel1 = GUICtrlCreateLabel("The first box doesn't have the styles correctly applied", 5, 250, 390, 25)
- _GUICtrlListView_AddArray($hListView1, $test_data)
- _GUICtrlListView_AddArray($hListView2, $test_data)
- GUISetState(@sw_show, $hForm)
- While GUIGetMsg() <> $GUI_EVENT_CLOSE
- sleep(20)
- WEnd
- Exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement