the browsing, how can I get the full path to a selected file? For example, run
this code, and double-click "iexplore.exe" -- the Debug window shows that
filename, but not the path + filename, which is what I'd want. But I don't
think this is possible, because the docs for GetGadgetItemText say:
[...] returns the name of the 'Item', without the path.

Code: Select all
If OpenWindow(0, 200, 200, 400, 200, "test", #PB_Window_SystemMenu) And CreateGadgetList(WindowID(0))
ExplorerListGadget(0, 10, 10, 380, 180, "*.*", #PB_Explorer_FullRowSelect)
SetGadgetText(0, "C:\Program Files\Internet Explorer\")
Repeat
ev=WaitWindowEvent()
If ev=#PB_Event_Gadget And EventType()=#PB_EventType_LeftDoubleClick
Debug GetGadgetItemText(0, GetGadgetState(0), 0)
EndIf
Until ev=#PB_Event_CloseWindow
EndIf