Solved

Delphi Multiple Line Form Caption

Posted on 2006-11-12
4
707 Views
Last Modified: 2010-08-05
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
0
Comment
Question by:henryreynolds
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 9

Expert Comment

by:sun4sunday
ID: 17928275
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
0
 
LVL 10

Accepted Solution

by:
atul_parmar earned 50 total points
ID: 17928356
It is possible. However, the caption should have enough space to accomodate the lines. or you need to smaller the font size.
see http://delphi.about.com/od/adptips2006/qt/draw_captionbar.htm
0
 

Author Comment

by:henryreynolds
ID: 17928461
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

0
 
LVL 9

Expert Comment

by:sun4sunday
ID: 17928792
Thanks Atul for the info and Henry for asking this question. This getting update my delphi knowledge

sun4sunday
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi Form ownership 4 153
Making delphi communicate with a c# service 16 137
When i run adoquery my application freezes 26 206
How to convert memory stream to PDF file 6 216
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question