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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word Wrap Text on Button?

Status
Not open for further replies.

hstijnen

Programmer
Nov 13, 2002
172
NL
Hello,

I've a long text to display on a button.
Is it possible to word wrap the text and use several lines of text on the button?

Henk
 
This is NOT an answer (sorry), I am simply intrigued myself.

The button's label is an AnsiString and in my knowledge I don't know how to insert a new line character into (essentially) a single line string.

Perhaps you could derive a component from a TButton where that component's caption is a TStringList as opposed to an AnsiString ?

I would be interested to know what others think on this (for my own benefit as a programmer).


------------------------------
Wisdom doesn't always come with age. Sometimes age comes alone.
 
If YOu do not want to find some shareware components,
then just use a TLabel in front of the button (with no caption).
This is how I have made my button text coloured, for example.

This also works for a checkbox, when You want the text being coloured or multiple lined.

regards,

Michael
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top