Multiple lines on a button

When I want to use multiple lines on a TLabel object, I can use: Caption := 'Line1'+#13+'Line2'.
If I want to do the same for a TButton object this will not work. It gives a text on one line with an character in the text instead a carriage-return. How do I get two lines of text on a button?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You must in CreateParams for button make this line
Params.Style:=Params.Style or ES_MULTILINE;

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bleAuthor Commented:
I suppose this is not available in Delphi 1.0? (I forgot to tell that I'm using that version.)
bleAuthor Commented:
I found that it is also in Delphi 1.0, but can you give me an example on how to use this?
Example of descendant of TButton

  Procedure CreateParams(var Params:TCreateParams);override;

procedure TLineButton.CreateParams(var ...);
 inherited CreateParams(Params);
 Params.Style:=Params.Style or BS_MULTILINE;

procedure Register;
after register try this
bleAuthor Commented:
Thanks, clear example, but... BS_MULTILINE is not available on Delphi 1.0, and ES_MULTILINE as you suggested in your first response doesn't work (is indeed not for TButton but for TEdit).
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.