Advertisement
Guest User

UDF Test

a guest
Jan 21st, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.07 KB | None | 0 0
  1. #include <GUIConstants.au3>
  2. #include <GuiListView.au3>
  3.  
  4. Local $test_data[20][3] = [["Row 1", 10, 20.5], ["Row 2", 8, 50.3], ["Row 3", 6, 30.75]]
  5. Local $sHeader = "Col A|Col B|Col C"
  6. $style = BitOR($LVS_REPORT, $LVS_SINGLESEL, $LVS_SHOWSELALWAYS, $WS_CLIPSIBLINGS)
  7. $exstyle = BitOR($LVS_EX_GRIDLINES, $LVS_EX_FULLROWSELECT)
  8.  
  9. 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))
  10. Local $hListView1 = _GUICtrlListView_Create($hForm, $sHeader, 5, 5, 390, 100, $style, $exstyle)
  11. Local $hListView2 = GUICtrlCreateListView($sHeader, 5, 120, 390, 100, $style, $exstyle)
  12. Local $hLabel1 = GUICtrlCreateLabel("The first box doesn't have the styles correctly applied", 5, 250, 390, 25)
  13.  
  14. _GUICtrlListView_AddArray($hListView1, $test_data)
  15. _GUICtrlListView_AddArray($hListView2, $test_data)
  16.  
  17. GUISetState(@sw_show, $hForm)
  18.  
  19. While GUIGetMsg() <> $GUI_EVENT_CLOSE
  20.         sleep(20)
  21. WEnd
  22. Exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement