Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Message form
Message
 
 
To
18/10/2000 13:49:46
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00431020
Message ID:
00431080
Views:
18
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform