The ExplorerListGadget()'s custom columns only seem to treat files as "files" and "directories" if the file listing appears in column 0. When that's the case (left side, below), you can navigate around by double clicking on a file, dir or "..", etc. If the file listing occurs in column 1 or higher, it no longer works that way.
I would like to have a narrow column to the left of file/dir names for info tags while being able to navigate the Explorer in the conventional way.
Here's a simple demo. I hope I'm missing something (again).
Thanks for any help.
Bill
Code: Select all
ExpFlags = #PB_Explorer_FullRowSelect|#PB_Explorer_AlwaysShowSelection
Dir$ = "c:\*.*"
OpenWindow(0,0,0,500,400,"", #PB_Window_ScreenCentered| #PB_Window_SystemMenu)
ExplorerListGadget(1, 10, 10, 200, 300, Dir$, ExpFlags)
RemoveGadgetColumn(1, 1)
RemoveGadgetColumn(1, 1)
RemoveGadgetColumn(1, 1)
SetGadgetItemAttribute(1, 0, #PB_Explorer_ColumnWidth , 180 , 0)
; --------------------------------------------------
ExplorerListGadget(2, 250, 10, 230, 300, Dir$, ExpFlags )
RemoveGadgetColumn(2, 1)
RemoveGadgetColumn(2, 1)
RemoveGadgetColumn(2, 1)
RemoveGadgetColumn(2, 0)
AddGadgetColumn(2, 0, "x", 30)
AddGadgetColumn(2, 1, #PB_Explorer_Name, 180)
SetGadgetText(2, Dir$)
; --- A "just for example" item in column 0 ----------
SetGadgetItemText(2, 5, "X", 0)
; --------------------------------------------------
Repeat
Event = WaitWindowEvent()
Select Event
Case #PB_Event_Gadget
Select EventGadget()
; =================
Case 2
; --- ? ---
EndSelect
EndSelect
Until event = #PB_Event_CloseWindow