(Solved) ExplorerTreeGadget and path

Just starting out? Need help? Post your questions and find answers here.
Cyllceaux
Enthusiast
Enthusiast
Posts: 514
Joined: Mon Jun 23, 2014 1:18 pm

(Solved) ExplorerTreeGadget and path

Post 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.
Last edited by Cyllceaux on Fri Jan 19, 2024 11:21 am, edited 1 time in total.
Cyllceaux
Enthusiast
Enthusiast
Posts: 514
Joined: Mon Jun 23, 2014 1:18 pm

Re: ExplorerTreeGadget/ExplorerListGadget and path

Post 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
Fred
Administrator
Administrator
Posts: 18351
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: ExplorerTreeGadget and path

Post by Fred »

It should be "C:\Workspace\icis\*.sql;*.txt" IIRC
Cyllceaux
Enthusiast
Enthusiast
Posts: 514
Joined: Mon Jun 23, 2014 1:18 pm

Re: ExplorerTreeGadget and path

Post 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?
Fred
Administrator
Administrator
Posts: 18351
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: ExplorerTreeGadget and path

Post by Fred »

It's not supported, feel free to create a feature request
Post Reply