Change
_SCREEN.imgLogo.BackStyle = 1
>
>I have problem in displaying an animated gif with transparent background, it looks like new frames are displayed before/without restoring the background first. It ends up like a stack of images all mess up on the screen. (See image#2)
>Without transparent background the animation gif works well. (See image#1)
>
>The codes that I use to display the image control (whose picture property is assigned the filespec of the gif files) are as below:
>
>
>IF TYPE('_SCREEN.imgLogo') <> 'O'
> _SCREEN.AddObject('imgLogo','image')
>ENDIF
>_SCREEN.imgLogo.Picture = <gif filespec>
>_SCREEN.imgLogo.BackStyle = 0
>
>* Center the logo.
>_SCREEN.imgLogo.Top = (_SCREEN.Height-_SCREEN.imgLogo.Height)/2
>_SCREEN.imgLogo.Left = (_SCREEN.Width-_SCREEN.imgLogo.Width)/2
>
>_SCREEN.imgLogo.Visible = .T.
>
>
>Is there anything I have missed? How do I make the animated gif (with transparent background) displayed correctly?
--sb--