View Issue Details

IDProjectCategoryView StatusLast Update
0006683JEDI VCL00 JVCL Componentspublic2019-07-12 23:13
ReportermhAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product VersionDaily / GIT 
Target VersionFixed in Version 
Summary0006683: TJvFileListbox.AutoUpdate not working if Directory property changes
DescriptionWith TJvFileListbox.AutoUpdate := true one can have a TJvFileListbox automatically refresh its contents if new files are being added to the directory or files are being deleted.

Unfortunatelly changing the .Directory property at runtime tries to update the internal notification component, but the way it uses does not work. If one only changes the directory property of the TJvChangeNotify component's Notofication[0] property it will not inform the OS about the change.
Additional InformationAs I'm not sure how or whether we should fix TJvChangeNotify, I developed a workaround: deactivate notifications before assigning the directory, then reactivate them.

In order to show the failure run the attached demo and click on any folder in the directory list box. Then copy or create a .pas file in the folder you selected there. It will not immediately appear in the file list box. It appears if you go to another directory and back via the directory listbox.
TagsNo tags attached.

Activities

2019-05-31 18:38

 

FileListBoxTest.zip (54,509 bytes)

mh

2019-05-31 18:47

reporter   ~0021854

Pull request created:
https://github.com/project-jedi/jvcl/pull/133

mh

2019-07-12 23:13

reporter   ~0021872

This can be resolved as the pull request was merged in.

Issue History

Date Modified Username Field Change
2019-05-31 18:38 mh New Issue
2019-05-31 18:38 mh File Added: FileListBoxTest.zip
2019-05-31 18:47 mh Note Added: 0021854
2019-07-12 23:13 mh Note Added: 0021872