Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculate position in FRX file
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00153682
Message ID:
00153713
Vues:
16
Luc,

The .frx stores position and size information in 10,000ths of an inch. You can use any sort of scaling function to convert between pixels and frx units

hpos = GraphicTransform( this.Left )
vpos = GraphicTransform( this.Top )
width = GraphicTransform( this.Width )
height = GraphicTransform( this.Height )

function GraphicTransform( pnValue )
return pnValue * 100 && provide simple 100 pixels = 1 inch scaling

The function could also provide coordinate origin translation in addition to scaling.

>Does anybody know how to transform Point (pixel) in cm to calculate the posistion in the FRX file. It seen to be in cm * 1000.
>
>Example: I want to put a new variable in the FRX file from a table. The coord. on the objet was based from the screen coord.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform