Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_screen.picture doesn't streatch
Message
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
00819064
Message ID:
00819324
Views:
11
Hi Bill,

Try
* Add inage object to the screen if it doesn't exists yet
IF NOT PEMSTATUS(_SCREEN, "oImg",5)
	_screen.AddObject("oImg", "Image")
ENDIF	

WITH _SCREEN.oImg
	.Top = 0
	.Left = 0
	.Width = _SCREEN.Width
	.Height = _SCREEN.Height
	.Stretch = 1		&& or 2 
	.Picture = lcPictureFileName
	.Visible = .T.
ENDWITH
>Hi Sergey
>I tried building _screen as an object and now the .jpg only fills part of the screen. Tried setting the stretch property to 0,1, and 2 with no change.
>When you set the display background it covers the whole screen & most of those .jpg's are 800X600, so there is something that they are doing that we don't know about.
>Also, when I go into that routine a second time I get error#1771 (a member with this name already exists). I suspect have to test for nulls but don't know the syntax.
>Thanks for your efforts.
>Bill Wright
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform