Page 1 of 1

(Solved) ExplorerTreeGadget and path

Posted: Fri Jan 19, 2024 9:42 am
by Cyllceaux
I have some questions to this code:

Code: Select all

If OpenWindow(0, 0, 0, 300, 300, "ExplorerTreeGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
	ExplorerTreeGadget(0, 10, 10, 280, 280, "C:\Workspace\icis;*.sql;*.txt",#PB_Explorer_NoMyDocuments|#PB_Explorer_NoDriveRequester)
	Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
1) Bug or wrong use of the String
"C:\Workspace\icis;*.sql;*.txt" => This filters the filetypes but don't set the path
"C:\Workspace\icis\;*.sql;*.txt" => this sets the path but the filetypes were ignored

2) I want the ExplorerTreeGadget only shows folders and files under "C:\Workspace\icis\". But all root folders should be ignored and not shown. I know I can delete them or use create my own Gadget with a TreeGadget. But this is not the same.

Re: ExplorerTreeGadget/ExplorerListGadget and path

Posted: Fri Jan 19, 2024 9:48 am
by Cyllceaux
Same for ExplorerListGadget

Code: Select all

 If OpenWindow(0, 0, 0, 400, 200, "ExplorerListGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
    ExplorerListGadget(0, 10, 10, 380, 180, "C:\Workspace\icis\;*.sql;*.txt", #PB_Explorer_MultiSelect)
    Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
  EndIf

Re: ExplorerTreeGadget and path

Posted: Fri Jan 19, 2024 10:08 am
by Fred
It should be "C:\Workspace\icis\*.sql;*.txt" IIRC

Re: ExplorerTreeGadget and path

Posted: Fri Jan 19, 2024 10:39 am
by Cyllceaux
Fred wrote: Fri Jan 19, 2024 10:08 am It should be "C:\Workspace\icis\*.sql;*.txt" IIRC
YES!!! nice :)
Thx :)

And the second Querstion?

Re: ExplorerTreeGadget and path

Posted: Fri Jan 19, 2024 11:05 am
by Fred
It's not supported, feel free to create a feature request