You could use the Timer event in the window holding the picture control to rapidly swap the bmp file using the SetPicture method of the picture control.
See the PB help file for details.
BTW: a more descriptive subject for you post would probably get more responses.
The old-fashioned way to spin picture controls in older versions of PowerBuilder is to use multiple Bitmap files. Suppose you have 10 bitmaps of file Globe.bmp from Globe1.bmp to Globe10.bmp:
Window.Timer! event:
-------------------
ii_Bitmap++
//
IF ii_Bitmap > 10 THEN
ii_Bitmap = 1
END IF
//
p_Globe.FileName = "c:\work\globe" + String( ii_Bitmap ) + ".bmp"
The above trick swaps bitmap files displaying them in the sequence of the rotation of the globe. However, the modern way of animating picture controls is to use GIF files that are supported in the later versions of PowerBuilder.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.