in Windows. This code example demonstrates that selecting a full row in the
ListIconGadget is also possible in MacOS. It would be nice to have it implemented
also in MacOS:
Code: Select all
ImportC ""
SetDataBrowserTableViewHiliteStyle(DataBrowser.L, HiliteStyle.L)
EndImport
#kDataBrowserTableViewFillHilite = 1
OpenWindow(0, 100, 100, 430, 105, "ListIcon Example", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ListIconGadget(0, 5, 5, 420, 95, "Name", 110)
AddGadgetColumn(0, 1, "Address", 289)
AddGadgetItem(0, -1, "Harry Rannit"+Chr(10)+"12 Parliament Way, Battle Street, By the Bay")
AddGadgetItem(0, -1, "Ginger Brokeit"+Chr(10)+"130 PureBasic Road, BigTown, CodeCity")
AddGadgetItem(0, -1, "Didi Foundit"+ #LF$ + "321 Logo Drive, Mouse House, Downtown")
SetDataBrowserTableViewHiliteStyle(GadgetID(0), #kDataBrowserTableViewFillHilite)
SetGadgetItemState(0, 1, #PB_ListIcon_Selected)
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow