Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 9 ...Wimpy Squeeze
Message
De
10/03/2005 11:59:24
 
 
À
09/03/2005 12:00:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
00994059
Message ID:
00994489
Vues:
29
Bill -

In trying to implement the Listener Classes described in Cathy Pountney's "Visual FoxPro 9.0 Report Writer In Action" article on MSDN, I found that the "SqueezeText" directive class was giving me inconsistent results. The FFC FrxCursor class uses GetDeviceCaps() to override the hardcoded property of ScreenDpi=96 which is used in GetFruTextWidth(). My screen returned a value of 120 which caused the wimpy Squeeze. Resetting ScreenDpi=96 seems to have cured the problem.

You may have found a bug. I looked through the source code, and the frxCursor class uses a hard-coded value of 96 in .FruToPixels() and .PixelsToFru(), but uses the screen-dependent value of .ScreenDPI in .GetFruTextWidth() and .GetFruTextHeight().

It seems to me that the latter two methods should also use the explicit value of 96. It has to be 96 because the Report Designer is fixed at that resolution, and these methods are used to arrange report control elements in the 96-dpi layout.

I'm glad you found a work-around.

- Colin
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform