Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple lines in a label control
Message
From
19/04/2000 18:22:11
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00360872
Message ID:
00361593
Views:
16
>I've done this by carefully sizing the label, turning on WordWrap, and adding spaces at the point I want to break until it wraps to the new line. It does not resize well unless you use a monospaced font.

That sounds like too much work:

_screen.addobject('lblTest', 'label')
_screen.lblTest.Visible = .t.
_screen.lblTest.Height = 28
_screen.lblTest.Caption = 'Line1' + chr(13) + 'Line2'


You can do the same thing at design time on a form.
Previous
Reply
Map
View

Click here to load this message in the networking platform