Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return position
Message
From
16/09/1998 11:04:07
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
 
To
16/09/1998 10:46:40
Vincenzo Longobardi
Cisco Consulting Srl
Rome, Italy
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00137275
Message ID:
00137291
Views:
14
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform