Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ken Murphy
  Where is Ken Murphy?
 Springhill
 Canada
 Ken Murphy
 To: FoxGuy Ruiz
  Where is FoxGuy Ruiz?
 hawthorne
 California - United States
 FoxGuy Ruiz
 Tags
Subject: RE: Image in a screen
Thread ID: 143416 Message ID: 143423 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: General VFP Topics
Date: Tuesday, August 28, 2007 6:32:24 PM         
   


> Hi i did try what you told me but i'm getting this error now. (attached)
>
>
> >
> > Yes you can do that. The simplest way is to set the "Picture" property of the VFP _Screen object to point to the name of the file to display. HOwever this has issues if the screen is resized and a better solution is to use an image control :
> >
_screen.AddObject( "imgbase", 'image' )
> > _Screen.imgbase.picture= GETFILE()
> > _screen.imgbase.Stretch= 2
> > _screen.imgbase.height = _screen.Height
> > _screen.imgbase.width= _screen.width
> > _screen.imgbase.visible = .T.

> >
> > Regards
> > Andy Kramek
> > Microsoft MVP (Visual FoxPro)
> > Tightline Computers Inc, Akron Ohio, USA
>
>
>
>
>


Did you try this code out in the command window and then add it to your app? If you add an object to _screen, you at some point, must get rid of it. Take a look at the help file for the .RemoveObject() method. You need to check and see if _Screen.ImgBase already exists in your app. You can use the PEMSTATUS() function to find out if you already have an ImgBase attached to _Screen and if it does, you can simply use it - you won't need to add it again.
Ken
You shall know the truth - and the truth shall set you free. (John 8:33)

ENTIRE THREAD

Image in a screen Posted by FoxGuy Degante @ 8/28/2007 5:39:11 PM
RE: Image in a screen Posted by tushar @ 8/28/2007 5:54:23 PM
RE: Image in a screen Posted by FoxGuy Degante @ 8/28/2007 6:21:43 PM
RE: Image in a screen Posted by tushar @ 8/28/2007 7:01:38 PM
RE: Image in a screen Posted by Kevin @ 8/29/2007 1:23:46 AM
RE: Image in a screen Posted by Ken Murphy @ 8/29/2007 4:07:03 AM
RE: Image in a screen Posted by Kevin @ 8/30/2007 5:58:07 AM
RE: Image in a screen Posted by tushar @ 8/30/2007 6:41:11 AM
RE: Image in a screen Posted by Ken Murphy @ 8/30/2007 1:04:06 PM
RE: Image in a screen Posted by Andy Kramek @ 8/28/2007 5:55:11 PM
RE: Image in a screen Posted by FoxGuy Degante @ 8/28/2007 6:22:45 PM
RE: Image in a screen Posted by Ken Murphy @ 8/28/2007 6:32:24 PM
RE: Image in a screen Posted by Andy Kramek @ 8/30/2007 1:13:26 PM