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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to put a picture and caption on a command button

Status
Not open for further replies.

taterday

Programmer
Jan 28, 2009
183
US
I know how to get a picture and caption on a command button vertical. Make the command button large encugh to see both.

I would like them to be horizonal. Side by side.

Using VFP 7.

Thank you for any help.

 
With VFP 7.0, you're out of luck. In later versions, you would set the PicturePosition property, but that only appeared in VFP 8.0.

The only workaround I can think of is to create a graphic that incorporates the caption and the picture as you want them to appear. Set the Picture property to the graphic and leave the caption blank.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro tips, advice, training, consultancy
Custom software for your business
 
Hi Taterday,

Look at the PicturePosition property. Also, just resize the button by 'grabbing' the corner of the button and sizing it to your likiing.


F1
 
Hi Taterday,

Of course Mike is right though, that property starter in vfp8 only. Thanks.

F1
 
Thank you guys.

I have VFP 9 put have not used it yet. Would you think I would have any problems with rebuilding the system in the newer version. I have the createobject with CR reports.

This may need to be in another question.
 
You might as well start it in VFP9. It would be so much easier & you wouldn't have to change/upgrade your code later on. IHMO.


F1
 
Taterday,

I suggest you start by reading the VFP 9.0 Help file topic: What New in Visual FoxPro / Changes in Functionality for the Current Release.

This will tell you about the potential problems you'll face when upgrading. Ideally, you should also read the same topic in the VFP 8.0 Help file, but, assuming you don't have a copy of 8.0, you'd have to download that from the Microsoft site.

In practice, the main problem that you're likely to face is the changes in SQL, but you can get past those quickly by doing SET ENGINEBEHAVIOR 70.

You'll also need to make sure your users have the latest runtime files. If you plan to distribute a VFP 9.0 version of your app to your existing users, you'll have to given them a new install set, rather than just a new EXE.

The fact that you are using CR for your reports shouldn't raise any problems. I've been doing that will all versions from 6.0. and can't recall any issues.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro tips, advice, training, consultancy
Custom software for your business
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top