Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Message form
Message
 
 
À
18/10/2000 13:49:46
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00431020
Message ID:
00431080
Vues:
19
>>Hello,
>>
>>I need to create a form that shows some text similar of the Messagebox on a label.
>>
>>I want to resize the label and also the form automatically according to the length of the text. The text can have multiple lines (having CHR(13) in the text string), and the width can be different too.
>>
>>How can I resize the label automatically according to the text string and how can I resize the form automatically according to the dimensions of the label?
>>
>>Any help is highly appreciated!!
>
>Christian,
>Easy way is to use a readonly editbox instead of label. You could set label's autosize and wordwrap properties to .t. and get its height, width to size form.
>Cetin

Hi Cristian & Cetin,

I posted here in Files section Form Statistics, which uses exactly this idea. It also has some additional functionality, like print button, for example. Also it uses proportional form, so you can format text using padr() function.

Take a look, may be you'll find it useful.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform