Mon StringGadget(100,... n'affiche que le repertoire cliqué a gauche mais ne se complete pas avec un nom de fichier cliqué a droite...
Comment faire ?
Code : Tout sélectionner
OpenWindow(0, 0, 0, 749, 515, "SPH", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
Global Repertoire$
calcul=0
ExplorerTreeGadget(1, 11, 73, 230, 280, Repertoire$, #PB_Explorer_NoFiles)
ExplorerListGadget(2, 247,73,490,280, "*.*", #PB_Explorer_NoFolders|#PB_Explorer_NoParentFolder)
SendMessage_(GadgetID(2),#LVM_SETCOLUMNWIDTH,0,188) ; largeur colonne
SendMessage_(GadgetID(2),#LVM_SETCOLUMNWIDTH,1,80) ; largeur colonne
StringGadget(100,20,360,709,20,""); contient le chemin+fichier complet
Procedure Afficher_fichiers()
SetGadgetText(2, "")
Repertoire$ = GetGadgetText(1)
SetGadgetText(2, Repertoire$)
SetGadgetText(100, Repertoire$) ;;;;;;;;;;;; ici, je ne sais pas comment faire
EndProcedure
BindGadgetEvent(1, @Afficher_fichiers(), #PB_EventType_Change) ; #PB_EventType_LeftClick)
Repeat
Evenement = WindowEvent()
If Evenement = #PB_Event_Gadget
If EventGadget()=6 ; hide button
If GetGadgetState(6)=1
StringGadget(5, 80, 366, 570, 20, GetGadgetText(5),#PB_String_Password)
Else
StringGadget(5, 80, 366, 570, 20, GetGadgetText(5))
EndIf
EndIf
window_event = WaitWindowEvent(5) ;changing the progressbar's will always cause this to catch an event
While window_event <> 0
If window_event = #PB_Event_CloseWindow : Break 2: EndIf
window_event = WindowEvent()
Wend
EndIf
Delay(5)
Until Evenement = #PB_Event_CloseWindow
End
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;