Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Including a gif or bmp

Status
Not open for further replies.

unit512

MIS
Mar 12, 1999
233
US
When we put a .gif or .bmp file onto a full screen (800 x 600) VFP 5 or 6 form, we get the picture repeated many times on the screen. Is there a way to get just one copy of the picture?

Thanks,
OTG Glenn Abelson
ACI
Computer Systems For Business
 
By setting a graphic using the picture property of a form (or _SCREEN system var), the graphic will be displayed tiled (wallpaper effect). Don't know if there is a setting/property I missed, but there you are.

Workaround: create a graphic just a wee bit bigger than the form can be, so it won't tile

But I guess the solution you need is to put an image-control on the form and connect the graphic to that control. Diederik Vermeeren
verm1864@exact.nl
 
The easiest way I have found is to create a form and put the image on that. If you set the alwaysonbottom (I love that property name) property to .t., it will always stay in the back. Set the properties to turn off the windowbar and set the border to none and you can't tell that it is not just a picture on the background.

 
Hi Glenn,

Place an IMAGE object on your form with its PICTURE property pointing to your .bmp. Don't use the PICTURE property of the form.

Jim
 
Thanks all...that helps Glenn Abelson
ACI
Computer Systems For Business
 
I've created a form and put the image on that. I've set the alwaysonbottom property to .t. and set the properties to turn off the windowbar and set the border to none. I have set the image properties to 'stretch'.

But how do I have the graphic resize when I resize the main application window?

Leon
 
eyebiz

May I suggest you do not "piggy back" on someone else's question, re-ask your question in a new thread. Specially a thread that is over a year old. Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first
 
mgagnon
Ok - I'll remember to re-ask questions in a new thread.

wgcs
Thanks for the info. I wasn't able to get the image itself to resize, but following some tips about screen resizing and by making the graphic larger than usual at least the graphic only is visible in the background and it centers within my application when resizing.

many thanks .. Leon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top