I need to make a Explorer Tree to work as the Windows Open (new file) Explorer or I can use the Windows Open Explorer.
Can any one point me to a solution?
ExplorerTree - Windows Open Window
Is this what you need?
I hope I understood correctly.
Code: Select all
If OpenWindow(0, 0, 0, 300, 300, "ExplorerTreeGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ExplorerTreeGadget(0, 10, 10, 280, 280, "*.*")
Repeat
Event = WaitWindowEvent()
If Event = #PB_Event_Gadget
Select EventGadget()
Case 0
If EventType() = #PB_EventType_LeftDoubleClick
Item = GetGadgetState(0)
If Item = #PB_Explorer_File
FilePath.s = GetGadgetText(0)
If FilePath <> ""
If RunProgram(FilePath) <> 0
Debug FilePath+" was launched"
Else
Debug "Error running: "+FilePath
EndIf
EndIf
EndIf
EndIf
EndSelect
EndIf
Until Event = #PB_Event_CloseWindow
EndIf
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Not here. It opens an Explorer-like TreeView.reisve wrote:The code just give me an empty window.
What version of PB are you using?
I need sometng to let me save/create a file, with options to navigate in the directory tree, and create a new folder if necessary

Why don't OpenFileRequester() and SaveFileRequester() fit your needs?
Sorry 4 my poor English, it's the only one I learned 40 years ago...
since 17.12.08: XPHome(SP3) + PB 4.30
since 17.12.08: XPHome(SP3) + PB 4.30