Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding a image to a form at run time
Message
From
19/06/2008 08:08:05
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01325090
Message ID:
01325389
Views:
15
I began working on this again this morning and I found that if I tried setting the picture at runtime twice in a row for the same picture value that the animation worked. I'm not sure why but I put the code to set the value of the picture twice and it seems to work fine although I don't see why it doesn't work the first time. I put the code I'm using down below but I was now wondering is there a way to insert pictures into a combo box or list box?
PRIVATE cur_pic

CHDIR (m.pic_dir)

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

CHDIR (m.home_dir)

IF !EMPTY(m.cur_pic)
	ThisForm.img_pic.picture = m.cur_pic
ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform