INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

How to make a button multiline / with word wrap!

How to make a button multiline / with word wrap!

(OP)
thread102-508896: How to make a button multiline / with word wrap?

In another thread, the question by awarnica (Programmer)(OP)25 Mar 03 10:36 was: How to make a button multiline / with word wrap?

The answer by LEICJDN1 (TechnicalUser)25 Mar 03 11:14 was: Click on the Tbutton, then navigate to the properties tab of the object inspector window. Scroll to the bottom and change the Wordwrap option to true, then resize your tbutton appropriately.

Reply by awarnica (Programmer)(OP)25 Mar 03 11:15 was: TButton does not have a Word Wrap property.

I have more information. In Delphi 10 Seattle, the WordWrap property is located in the Object Inspector when TBUTTON is selected. However, you will NOT find it by typing "wordwrap" in the search box of Object Inspector. And you will also not find it by simply scrolling down in Object Inspector.

You CAN find this wordwrap property by typing "text" in the search box, or by scrolling down and spotting "textsettings". You MUST click the + beside "textsettings" to expand it. And THERE you will find WordWrap.


RE: How to make a button multiline / with word wrap!

I have made buttons (or rather SpeedButtons!) with multi-line captions. Nothing 'auto' just simply a string containing CR+LF somewhere in the middle. The string, of course must be put in from code, as special characters can not be entered from the object inspector.
with SpeedButton66 do
Caption:=Caption + cr_lf + 'Recording Size';

You probably can write code in order to make an 'automated' placement of the two special characters based on string size, font size and the size of the (speed)button.

RE: How to make a button multiline / with word wrap!

(OP)
walker2, your technique has the advantage of more control over results. I like your tip!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close