Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
wesleybobato
Posted - Feb 03 2014 : 08:45:34 William Hello Again one by Please Help a Friend.
I did upload a problem that I found in a sample ImageEN when working with Preload
you to identify the error is easily the listbox simply moves up and down really fast forcing load the images and you will see that imageenview1 imageenview2 turns black and does not load the image correctly, I would like to know when imageenview2 uploader to use real assigned?
Posted - Feb 07 2014 : 13:39:17 I can not repeat your problem no matter how fast I click even with 18 mp. pictures. I never get a black image. Anyhow, maybe try OnFinishWork to know when image is finished loading.
Posted - Feb 07 2014 : 13:09:28 Hello William Thanks for your attention. But unfortunately the problem persists even black bears sometimes the image, simply click fast or load images with large dimensions. I really need to know when imageEN fills the entire image?
w2m
Posted - Feb 07 2014 : 10:10:28 To fix your problem change
procedure TForm1.FileListBox1Change(Sender: TObject);
begin
GetImage(FileListBox1.FileName);
PrepareNext(FileListBox1.ItemIndex + 1);
end;
To
procedure TForm1.FileListBox1Click(Sender: TObject);
begin
GetImage(FileListBox1.FileName);
PrepareNext(FileListBox1.ItemIndex + 1);
end;