Labels disappear behind GIF after animating

103 Views Asked by At

All the labels in my project disappear behind the background (a GIF), but none of the buttons or memos. How can I stop this from happening? One of the labels is updated every second, and it appears for a split second after updating, then disappears again.

Here is the form's code:

  Object Form2: TForm2 
    Left = 0 
    Top = 0 
    Caption = 'Form2' 
    ClientHeight = 470 
    ClientWidth = 628 
    Color = clBtnFace 
    Font.Charset = DEFAULT_CHARSET 
    Font.Color = clWindowText 
    Font.Height = -12 
    Font.Name = 'Segoe UI' 
    Font.Style = [] 
    OnCreate = FormCreate 
    TextHeight = 15 
    
    object Image1: TImage 
      Left = 0 
      Top = 8 
      Width = 625 
      Height = 426

And a link to the gif.

This is what I'm using to animate:

(imgBackground2.Picture.Graphic as TGIFImage).Animate := True;

I tried to make the form double-buffered and change the order of the components, but they still disappear.

0

There are 0 best solutions below