Link to home
Start Free TrialLog in
Avatar of henryreynolds
henryreynoldsFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Delphi Multiple Line Form Caption

Good day,

Is it possible to add a multiple line caption to my form.

I tried to use Ā : form1.Caption := 'Top line'+#13#10+'Bottom Line';
But it does not work.

Can you also center text exactly on a form caption e.g. I need text on my left and exaclty in the middle some other text, and on my right some text.

Thanx

Henry
Avatar of sun4sunday
sun4sunday
Flag of India image

It is not possible to multiple line on a the form.

>>Can you also center text exactly on a form caption
Do you mean to center the caption of the from in the middle. That can be done at runtime.
First take the width of the text, take almost half of its width then put spaces beofre the caption of the form. It will come almost the middle.

sun4sunday
ASKER CERTIFIED SOLUTION
Avatar of atul_parmar
atul_parmar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of henryreynolds

ASKER

Hi sun4sunday , atul_parmar

Thank you both for your reply, but I must give the points to atul_parmar, because it work's 100% for me.

Enjoy your day

Henry

Thanks Atul for the info and Henry for asking this question. This getting update my delphi knowledge

sun4sunday