rndrei wrote: Fri Apr 18, 2025 1:52 pm
Then it does not show folders and files!?
I have modified TI-994A's example to remove the title row of the ExplorerListGadget (cross-platform; successfully tested in MacOS 'Ventura', Linux Mint 21.3 x64 'Virginia' and Windows 10 23H2 with PB 6.20 x86 and x64):
Code: Select all
If OpenWindow(0, 0, 0, 500, 300, "ExplorerListGadget",
#PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ExplorerListGadget(1, 10, 10, 500, 300, GetHomeDirectory(),
#PB_Explorer_MultiSelect)
RemoveGadgetColumn(1, 1)
RemoveGadgetColumn(1, 1)
RemoveGadgetColumn(1, 1)
; ----- Remove title row
CompilerSelect #PB_Compiler_OS
CompilerCase #PB_OS_Linux
gtk_tree_view_set_headers_visible_(GadgetID(1), 0)
CompilerCase #PB_OS_MacOS
CocoaMessage(0, GadgetID(1), "setHeaderView:", 0)
CompilerCase #PB_OS_Windows
SetWindowLongPtr_(GadgetID(1), #GWL_STYLE, GetWindowLongPtr_(GadgetID(1),
#GWL_STYLE) | #LVS_NOCOLUMNHEADER)
CompilerEndSelect
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf