Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Auto-sizing without being in design mode?
Message
De
01/07/2008 13:10:11
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
01/07/2008 13:00:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Divers
Thread ID:
01327956
Message ID:
01327959
Vues:
11
Any problem with the .AutoSize property?

>Hi All,
>
> I am working in vfp 8 sp1. I have to replace some labels in reports with other words, that are not the same len as the original.
>
>When in design mode, and the label is not exactly the length of the word(s), if you click on the label and move it or cntrl+arrow key, the label adjusts to the exact length of the word(s). Is there any way to make it do this without opening it in design mode?
>
>I already have code in the translate program that exchanges word(s) in the labels that takes into account, the difference in lenght by:
>
> lcScaleFactor = LEN(lcReplaceWord) / LEN(lcTranslateWord)
> ...
> replace (pcWidthName) WITH (&pcWidthName.) * lcScaleFactor
>...
>
>
>but this does not always get the width long enough. Some times the width is too long, but that is better then too short.
>
>TIA
>Beth
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform