Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding a image to a form at run time
Message
From
18/06/2008 08:50:50
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Adding a image to a form at run time
Miscellaneous
Thread ID:
01325090
Message ID:
01325090
Views:
68
I'm trying to create a form where the user can change the picture shown on the form using the getpic command and setting the value of the picture control to this value. The picture shows up fine but if its a animated gif it does not show the animation for some reason. Normally when you add a animated gif to a form at design time the animation plays. Can anyone tell me if there is some property I need to set in order for the animation to play when setting the picture value at run time?
PRIVATE cur_pic
m.cur_pic = GETPICT("GIF")

IF !EMPTY(m.cur_pic)
	ThisForm.img_pic.picture = m.cur_pic
	ThisForm.lbl_pic.Visible = .F.
	ThisForm.img_pic.Visible = .T.
ENDIF
Next
Reply
Map
View

Click here to load this message in the networking platform