Hi,
how can i select the first row of an ListViewGadget?
I tried SetGatgetItemState(myListViewGadget, 0, 1) but no row is selected.
Mick
Select first ListViewGadget row?
Select first ListViewGadget row?
Michael
Windows 10, PureBasic 5.70 LTS
Windows 10, PureBasic 5.70 LTS
Re: Select first ListViewGadget row?
Code: Select all
If OpenWindow(0, 0, 0, 270, 140, "ListViewGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ListViewGadget(0, 10, 10, 250, 120,#PB_ListView_MultiSelect)
For a = 1 To 12
AddGadgetItem (0, -1, "Item " + Str(a) + " of the Listview") ; define listview content
Next
SetGadgetItemState(0,0,1) ; set (beginning with 0) the tenth item as the active one
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
Egypt my love
Re: Select first ListViewGadget row?
SetGadgetState(0, 0)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive