PVGadgets_JustifyListIconColumn (GadgetID,Column.l,Flag.l)
Previous  Top  Next

Modify the justification of the selected column in a ListIconGadget.
 
Use:
PVGadgets_JustifyListIconColumn(#Gadget,Column,Flag)


Flag:
0 - Left (Default)  
1 - Right  
2 - Center  


Example:

#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,2) ;justify column 0 to center  
PVGadgets_JustifyListIconColumn(#List,1,0) ;justify column 1 to left  
PVGadgets_JustifyListIconColumn(#List,2,1) ;justify column 2 to right  

For tmp=0 To 20  
AddGadgetItem(#List,-1,"TestA_"+Str(tmp)+Chr(10)+"TestB_"+Str(tmp)+Chr(10)+"TestC_"+Str(tmp))  
Next  

Repeat:Until WaitWindowEvent()=#PB_Event_CloseWindow  
EndIf