Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return position
Message
De
16/09/1998 11:04:07
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
 
À
16/09/1998 10:46:40
Vincenzo Longobardi
Cisco Consulting Srl
Rome, Italie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00137275
Message ID:
00137291
Vues:
15
>There is a command that transform the old position (foxpro 2.6 es:20,5@say "Nome")in pitch
>(es: Object.Width = 40
> Left = 125 && Command text column
> Top = 150 && Command text row
> Height = 25 && Command text height
>
>
As a rough conversion you can use the FONTMETRIC function.

FONTMETRIC( 1) give the character height in pixels
FONTMETRIC( 6) gives average character width in pixels

so, @ 10,5 SAY "Hi"

Becomes

Form.Label.Top = 10 * FONTMETRIC( 1)
Form..Label.Left = 5 * FONTMETRIC( 6)

You can specify a specific font if necessary, see the help file.
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform