Thankks FLUID BYTE for your quick answer
I'm a sheet
I've forgotten the code in my first POST for understand better my question.
I have add your code and mine.
And that's not works
If i move the horizontal scrollBar, the first column (Name) stay in left of the listicon and the other column (value) slips below the "Name" column

.
Code: Select all
Procedure WindowCallback(hWnd,uMsg,wParam,lParam)
Select uMsg
Case #WM_NOTIFY
*lpnm.NMHDR = lParam
If *lpnm\hwndFrom = SendMessage_(GadgetID(0),#LVM_GETHEADER,0,0) And *lpnm\code = #HDN_BEGINTRACK
*nmh.NMHEADER = lParam
If *nmh\iItem = 0 : ProcedureReturn 1 : EndIf
ProcedureReturn 0
EndIf
EndSelect
ProcedureReturn #PB_ProcessPureBasicEvents
EndProcedure
If OpenWindow(0,50,50,600,100,"ListIcon Example",#PB_Window_SystemMenu|#PB_Window_ScreenCentered)
If CreateGadgetList(WindowID(0))
ListIconGadget(0,5,5,590,90,"Name",100)
AddGadgetColumn(0,1,"value",80)
AddGadgetColumn(0,2,"Value",80)
AddGadgetColumn(0,3,"Value",80)
AddGadgetColumn(0,4,"Value",80)
AddGadgetColumn(0,5,"Value",80)
AddGadgetColumn(0,6,"Value",80)
AddGadgetColumn(0,7,"Value",80)
AddGadgetColumn(0,8,"Value",80)
AddGadgetItem(0,-1,"Titre"+Chr(10)+"First value"+Chr(10)+"Second value"+Chr(10)+"Third value"+Chr(10)+"value 4"+Chr(10)+"value 5"+Chr(10)+"value 6"+Chr(10)+"Last value")
SetWindowCallback(@WindowCallback())
Repeat
EventID = WaitWindowEvent()
Until EventID = #PB_Event_CloseWindow And EventWindow() = 0
EndIf
EndIf
Excuse me for my missing
