HuntsvilleRob
Programmer
Hello.
I have a TImage on my form, Image1. I have loaded a picture onto it via
Image1->Picture->LoadFromFile(FileName);
Now I draw some lines on the form by calling the TForm1::FormPaint(TObject* Sender) method. I'm drawing these lines across the Image1 object. The lines display fine. But now when I minimize the form or move another window on top of it and then go back to my form, the image is there but the lines are *behind* it. Looks like when I minimize the window, the FormPaint is called first and then the Image1->Picture is draw over it. Can't figure out how to call the FormPaint method *after* the Image1 refreshes. I appreciate your help!
-Rob
I have a TImage on my form, Image1. I have loaded a picture onto it via
Image1->Picture->LoadFromFile(FileName);
Now I draw some lines on the form by calling the TForm1::FormPaint(TObject* Sender) method. I'm drawing these lines across the Image1 object. The lines display fine. But now when I minimize the form or move another window on top of it and then go back to my form, the image is there but the lines are *behind* it. Looks like when I minimize the window, the FormPaint is called first and then the Image1->Picture is draw over it. Can't figure out how to call the FormPaint method *after* the Image1 refreshes. I appreciate your help!
-Rob