Code : Tout sélectionner
EnableExplicit
;Plan de l'application
Declare Start()
Declare OnSelect()
Declare Exit()
Start()
Procedure Start()
OpenWindow(0, 0, 0, 800, 600, "ExplorerTreeGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ExplorerTreeGadget(0, 10, 10, 300, 580, "*.*", #PB_Explorer_NoDriveRequester)
;Triggers
BindGadgetEvent(0, @OnSelect(), #PB_EventType_LeftClick)
BindEvent(#PB_Event_CloseWindow, @Exit())
Repeat : WaitWindowEvent() : ForEver
EndProcedure
Procedure OnSelect()
Protected Buffer.s = GetGadgetText(0)
Debug Buffer
EndProcedure
Procedure Exit()
End
EndProcedure