Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
New program for Mac and Windows
Message
De
10/11/1998 10:24:52
 
 
À
09/11/1998 09:04:44
Shane Gilbert
Oklahoma State Department of Education
Norman, Oklahoma, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00155684
Message ID:
00156135
Vues:
21
>I am going to be rewriting a program in Visual Foxpro 3.0. This program will be run on both Macintosh and Windows. The problem I have run into in the past is that the forms don't translate correctly from one platform to the other. The spacing and font sizes are different and so the layout of the form is all wrong and must be manually corrected whenever the application is ported to the other platform. I have two ideas on this, first and easiest would be to select a font for the labels and textboxes that comes out the same on both platforms if one exists. The second is to create classes that check for which platform and set the fontsize accordingly(this would involve lots of trial and error). Any suggestions on which way(or another solution) works the best would be greatly appreciated.
>
>Shane

I believe that if you use Helvetica, and Times (make sure they're TrueType or PostScript/Adobe Type Manager fonts) you might be OK. In theory TT fonts are "outline fonts" and are scalable. In practice YMMV < BG > You can use other TT/PostScript fonts, but not all are guaranteed to be on both platforms. Times and Helvetica, boring as they often seem to be, are at least universal.

Alternatively you can select the font using an If(MAC) ...... else ..... statement. You'll have to excuse the lack of precision, I've only got FPW2.5 here and can't remember where or how exactly to place the statement in the object definition parameters. (6 months away from it & I've done a total brain dump!)

FoxPro MAChete: Hacking FoxPro For Macintosh is a useful biplatform reference. The version I have is for 2.6, I don't know if it's been revised for VFP 3.0. No affiliation, just found it to be useful.

Author: Lisa C Slater, publisher: Hayden Books, ISBN 1-56830-034-4

Good luck!

Jen
A bipolar theory does not neatly describe a continuum.

Before millenium: chop wood, draw water. After millenium: chop wood, draw water.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform