Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multi-line button caption
Message
From
14/08/2002 10:18:57
 
 
To
13/08/2002 23:25:21
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00689400
Message ID:
00689548
Views:
23
This message has been marked as a message which has helped to the initial question of the thread.
Try it this way - Turn on Autosize, and wordwrap, and then set the caption as follows:
=("Word1"  + Chr(13) + "Word2")
You can use Chr(13) or chr(10) or both together.

Alan


>That was the first thing I tried!
>All I see is WORD1 WORD2 with a control character between them on the same line. Makes no difference with wordwrap on of off
>
>I am using VFP6 SP3
>
>>Try
>>Thisform.command1.Caption = "word1" + CHR(13) + "word2"
>>>How do I get two words to display correctly on a command button? I want one above the other >>i.e.
>>>
>>>WORD1
>>>WORD2
>>>
>>>it only seems to work if I turn on wordwrap, but the size of the buttons is variable so I >>sometimes get:
>>>
>>>WORD1WO
>>>RD2
>>>
>>>Is there any way I can put a CR between them to force where I want the wrap?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform