With the ListViewGadget, is it possible to prevent horizontal scrolling?
I know how to hide the scrollbar but it's all too easy to inadvertently scroll sideways with a trackpad or Magic Mouse and this gives me problems when displaying a table.
Dave
Is it possible to prevent ListViewGadget Scrolling?
Re: Is it possible to prevent ListViewGadget Scrolling?
This seems to work:
Code: Select all
If OpenWindow(0, 0, 0, 270, 140, "ListViewGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ListViewGadget(0, 10, 10, 250, 120)
For a = 1 To 12
AddGadgetItem (0, -1, "Item " + Str(a) + " of the Listview")
Next
SetGadgetState(0, 9)
CocoaMessage(0, GadgetID(0), "sizeToFit")
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
Re: Is it possible to prevent ListViewGadget Scrolling?
Many thanks wombats. That works for me.
Dave

Dave