Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding image to pages in pageframe
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01643603
Message ID:
01643650
Views:
57
Likes (1)
in VFP,form.addObject(any object..) makes the object always invisible by default
then make it visible by : object.visible=.t.
Note that refreshing pages with pageframes is also important.

this code works and must stay in form.init
With Thisform.pf
	For i = 1 To .PageCount
		With   .Pages[i]
			.AddObject("img_back","image")
			With .img_back
				.Stretch=2
				.ZOrder(1)
				.Left = 0
				.Top = 0
				.Height = Thisform.pf.Height
				.Width = Thisform.pf.Width
				.Anchor = 15
				.Picture = "D:\foxprogs\foxbib\images\blueform.png"
				.Visible=.T.  &&important
			Endwith
			.Refresh
		Endwith
	Next
Endwith
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform