Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Two rows of caption on a command button 1

Status
Not open for further replies.

tilltek

Programmer
Mar 8, 2001
298
PH
On the caption of a command button, is there any way to have two lines of text so that instead of....

HELP

I can have...

HELP
FILE

Ken
 
Thanks again Mike, that did it.
By the way, I'm assuming I need to pad the line out so that the wrap is suitably formatted....
[ HELP FILE ]
Is there a way to programmatically format the two lines?
I tried [="HELP"+chr(13)+"FILE"] as you can in FPD but no go.

Ken F
 
Mike,

Could you, one - not you specifically B:), make a class with a button and an alternative caption where the properties come from a label?

I'm not very good at the OOP and class stuff, but isn't that what it's for?

Regards

Griff
Keep [Smile]ing
 
'One' can put a label, image, whatever, over the top of an invisible command button. The click event of the label calls the click event of the button.
Another option is puting code you would normally put in a command button click event in the click event of a label. You won't get the 3-D pushed down look, but that could also be changed.


-Dave Summers-
[cheers]
Even more Fox stuff at:
 
Dave,

'One' can put a label, image, whatever, over the top of an invisible command button. The click event of the label calls the click event of the button.


It would be easier just to use the graphic in the Picture property of the button.

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top