Dazu brauchst du diese Flag-Konstante: #LBS_EXTENDEDSEL
Wenn ich mir die flags ansehe, dann geht das mit dem Horizontalscrolling nicht wirklich richtig:
LBS_MULTICOLUMN
Specifies a multicolumn list box that is scrolled horizontally. The LB_SETCOLUMNWIDTH message sets the width of the columns.
Code: Alles auswählen
#WindowWidth = 640
#WindowHeight = 480
#WindowFlags = #PB_Window_SizeGadget | #PB_Window_MaximizeGadget | #PB_Window_MinimizeGadget | #PB_Window_TitleBar | #PB_Window_ScreenCentered | #PB_Window_SystemMenu
hWnd = OpenWindow(0, 0, 0, #WindowWidth, #WindowHeight, #WindowFlags, "")
CreateGadgetList(hWnd)
ListViewGadget(0, 0, 0, #WindowWidth, #WindowHeight, #LBS_EXTENDEDSEL | #LBS_MULTICOLUMN)
Text.s = "Blubb"
For k=0 To 50
AddGadgetItem(0, -1, Text)
Next
Repeat
Event = WindowEvent()
Delay(10)
Until Event = #PB_Event_CloseWindow
End