Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cmd.width = caption.width
Message
From
13/08/2003 11:32:37
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Cmd.width = caption.width
Miscellaneous
Thread ID:
00819802
Message ID:
00819802
Views:
45
Hi

Is there any way to make the width of a command button equal to the width of the caption? Using TXTWIDTH() and the average width of the characters isn't working.

As an example, I'd have the caption "Testing..." on the command button.

When I'm done, I want it to look like this...
__________
[Testing...]
----------

Setting AutoSize = .T. doesnt work either as it results in something more like this...
______________
[ Testing... ]
--------------

It seems I'd need to sum the widths of each character and maybe add a little fudge factor.
Next
Reply
Map
View

Click here to load this message in the networking platform