Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resetting size of labels programmicly
Message
From
30/01/2003 11:14:32
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00746896
Message ID:
00747189
Views:
26
David,

>There will be a simple multiplication by a constant to convert the value to >the 10000ths of an inch measurement that the report uses.

this may be true, and I am probable finding the contanct wrong, because my new sizes are still too small.
Here is what I do:
lnlength = TXTWIDTH(lcExpr, lcFont, ;
     lnFontsize, lcfontstyle)
lnConstanct = WIDTH / lnlength
after changing the label
lnlength = TXTWIDTH(lcExpr, lcFont, ;
   lnFontsize, lcFontstyle)
REPLACE WIDTH WITH lnlength * lnConstanct
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform