#Main=0
#List=1
If OpenWindow(#Main,0,0,400,300,#PB_Window_SystemMenu|#PB_Window_ScreenCentered,"")
| ListIconGadget(#List,0,0,400,300,"Column 1",150,#PB_ListIcon_GridLines|#PB_ListIcon_FullRowSelect)
|
| AddGadgetColumn(#List,1,"Column 2",100)
|
| AddGadgetColumn(#List,2,"Column 3",100)
|
| PVGadgets_JustifyListIconColumn(#List,0,#Center) ;justify column 0 to center
|
| PVGadgets_JustifyListIconColumn(#List,1,#Left) ;justify column 1 to left
|
| PVGadgets_JustifyListIconColumn(#List,2,#Right) ;justify column 2 to right
|
| AddGadgetItem(#List,-1,"TestA_"+Str(tmp)+Chr(10)+"TestB_"+Str(tmp)+Chr(10)+"TestC_"+Str(tmp))
|
| Repeat:Until WaitWindowEvent()=#PB_Event_CloseWindow
| EndIf
|