Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
2.6 @ Say screens in VFP
Message
De
23/08/2005 16:39:25
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
23/08/2005 16:32:34
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01043065
Message ID:
01043070
Vues:
16
This message has been marked as the solution to the initial question of the thread.
>I need to display 2.6 dos screens w/in VFP.
>We are going to convert to VFP forms but we need something up and running by the end of the month.
>
>As an app, I change the _Screen.FontName to FoxFont and set the font size and everything displays properly.
>
>I tried to run this same app as an exe.
>I put a number of messageboxes around one of the screens.
>The FontName always displayed "FoxFont" but the screen looks like it is using some other font.
>
>Is there a simple solution to this problem?

You need to distribute FoxFont (the file) with your exe - it's not necessarily registered among the system fonts. You could use any other non-proportional font - Courier New, Lucida Console. It would look even better, because you could play with font sizes and find something that looks good.
Though, the line draw characters, if your scxes use a lot of boxes, would look weird then, if they were composed by putting characters together. Simple
@ 5,5 to 12,12
should look OK.

You can also instantiate a simple form (with caption, its own nonproportional font, even background image), show it, and then start issuing says and gets on it, with Read in the end - I've tried it and it works. If you create this form with foxels instead of pixels, it would automatically resize itself to accomodate the number of rows and columns you want to give it - the .width and .height are in rows and columns then.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform