Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 3.0 - Command button - Caption property
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00067686
Message ID:
00067754
Views:
29
>>>Does anybody know how to enter multi-line captions in the CAPTION property
>>>for a COMMAND button?
>>>
>>>I gave up on trying to use the CAPTION property for mult-line captions.
>>>Instead I create a bitmap and use the PICTURE property. Is this the best way to
>>>go?
>>
>>OK folks, try: .caption="Line1"+chr(13)+"Line2"
>>Works for me in VFP3
>
>Hi Mark,
>
>Your suggestion works great for labels.
>Example: thisform.label1.caption = "Save"+chr(13)+"All"
>
>But doing the following with a command button does not work:
>
>thisform.commandbutton1.caption = "Save"+chr(13)+"All"
>
>The caption still appears on 1 line.

Sorry, you are right. I did this example before, but I forgot I overlaid a command button with a 2-line label and made the label transparent.
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform