Treeview dynamique
Posté : sam. 04 févr. 2017 15:51
Bonjour , j'ai un treewiew qui liste des dossiers :
mais , j'aimerai , quand j'ajoute , pouvoir relancer la fonction et redessiner complètement le treeview et non ajouter tout les fichier en plus
donc un Update.
j'ai trouvé des histoires de treeview "on the fly"mais ça me parait compliqué pour une tache si pauvre
merci d'avance
Func Michel()
$hSearch = FileFindFirstFile($Repertoire & "\*.*")
$aFileList = _FileListToArray($Repertoire, "*")
$iRows = UBound($aFileList, $UBOUND_ROWS)
Local $PatArr[$iRows - 1]
For $i = 0 to $irows -2
$Name = FileFindNextFile($hSearch)
If @error Then ExitLoop
$PatArr[$i] = $Name
Next
Local $Client[$iRows - 1]
For $i = 0 to $irows -2
$Client[$i] = GUICtrlCreateTreeViewItem($PatArr[$i], $Patients)
Next
EndFunc
$hSearch = FileFindFirstFile($Repertoire & "\*.*")
$aFileList = _FileListToArray($Repertoire, "*")
$iRows = UBound($aFileList, $UBOUND_ROWS)
Local $PatArr[$iRows - 1]
For $i = 0 to $irows -2
$Name = FileFindNextFile($hSearch)
If @error Then ExitLoop
$PatArr[$i] = $Name
Next
Local $Client[$iRows - 1]
For $i = 0 to $irows -2
$Client[$i] = GUICtrlCreateTreeViewItem($PatArr[$i], $Patients)
Next
EndFunc
donc un Update.
j'ai trouvé des histoires de treeview "on the fly"mais ça me parait compliqué pour une tache si pauvre
merci d'avance