I decided to add a StatusDlg to the picture Viewer project I posted earlier and it works very well when I select a folder that contains a small number of pictures. However, when I select a folder that contains a lot of images or recurse the subfolders, the StatusDlg does not hide at the end of the for loop.
Here is a snapshot of the code.
StatusDlg.SetMeterRange("1", pic_count);
StatusDlg.SetTitle("Please wait while your pictures are loaded.");
StatusDlg.Show(MB_ICONNONE, false);
for i,pic in pic_table do
ListBox.AddItem("ListBox1", "Image" .. i, pic);
StatusDlg.SetMeterPos(i);
end
StatusDlg.Hide();
Here is the full project if you want to try it yourself.
[EDIT] I wanted to add that the large number of pictures was over 1000 images.
Here is a snapshot of the code.
StatusDlg.SetMeterRange("1", pic_count);
StatusDlg.SetTitle("Please wait while your pictures are loaded.");
StatusDlg.Show(MB_ICONNONE, false);
for i,pic in pic_table do
ListBox.AddItem("ListBox1", "Image" .. i, pic);
StatusDlg.SetMeterPos(i);
end
StatusDlg.Hide();
Here is the full project if you want to try it yourself.
[EDIT] I wanted to add that the large number of pictures was over 1000 images.
Comment