Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006683 [JEDI VCL] 00 JVCL Components minor always 2019-05-31 18:38 2019-05-31 18:47
Reporter mh View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version Daily / GIT
Summary 0006683: TJvFileListbox.AutoUpdate not working if Directory property changes
Description With 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 Information As 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.
Tags No tags attached.
Attached Files zip file icon [^] (54,509 bytes) 2019-05-31 18:38

- Relationships

-  Notes
mh (reporter)
2019-05-31 18:47

Pull request created: [^]

- Issue History
Date Modified Username Field Change
2019-05-31 18:38 mh New Issue
2019-05-31 18:38 mh File Added:
2019-05-31 18:47 mh Note Added: 0021854

Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker