I seem to be stuck on an issue.
After assigning a bitmap to a BGRAGraphicControl2
My bimap disappears when I try to resize the form. (I don't get a black screen)
I assigned an image to two controls on startup.
It's the second BGRAGraphicControl2 that is disappearing
I have narrowed down that the issue is with my resize code.
I have resize code that tries to get away from the SIG error because if the control isn't visible it generates the SIG error.
What is the secret in dealing with Redraws when resizing a form??
Here is what I have in FormResize to redraw the control.
[code=pascal]//eval flag to see if startup, else we get an SIG error
procedure TForm1.FormResize(Sender: TObject);
begin
if StartUp = False Then
if (nb.PageIndex = 1) Or (nb.PageIndex = 2) Then //we do this or we get SIG error. The controls have to be visible
begin
BGRAGraphicControl1.Bitmap.Assign(theBMP.Bitmap);
BGRAGraphicControl2.Bitmap.Assign(newBMP.Bitmap);
startUp:=False;
end
else
startUp:=False;
end;