Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stupid label question
Message
 
 
À
12/11/1998 19:28:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00155701
Message ID:
00157266
Vues:
85
Vlad,

>Why? WordWrap wraps the words in the horizontal space of the label. Autosize fits the height of the word-wrapped label. True, this is not the behavior specified in the Help, but this is how it really works.

Let me preface the reply with: VFP should be fixed so that no combination of property settings can ever cause a GPF. It's really unsatisfactory the way it is now.

well, in the sense that most labels are one line of text, AutoSize then only affects the .Width. WordWrap is only useful for multiline labels. But to WordWrap a block of text you have to do it to a fixed width boundary and let .Height be the variant.

>On the other hand, this is a good example for how useful can be the accessor functions (as in VFP6). For a bug like that, it's very easy to rewrite the corresponding set function and have everything safe with only a few lines of code.
>
>From the projects I've worked lately in other languages (C++ and Java), I start to believe that the accessor functions are one of the best thing that can "happen" to a project. Practically, having them can cut the programming effort by 5-100 times for specific tasks. And they are invaluable at testing/maintenance time.


The accessor functions have a very powerful addition to the language.
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