ImageEn, unit iexFolderMView |
|
TImageEnFolderMView.UnlockUpdate
Declaration
function UnlockUpdate: integer;
Description
Decrement the
lock update counter (use after calling
LockUpdate).
If the lock count is zero, then
Update is called to refresh the view.
Returns the lock count.
// Disable updating of component while setting properties
IEFolderMView1.LockUpdate();
try
IEFolderMView1.Folder := 'C:\Images\';
IEFolderMView1.FileTypes := iefCustom;
IEFolderMView1.FileTypesMask := 'jpg,jpeg,jpe';
IEFolderMView1.SortOrder := iesbFilename;
IEFolderMView1.SortOptions := [ iesNaturalSorting ];
finally
// Re-enable updating and call update
IEFolderMView1.UnlockUpdate();
end;