Solved

Delphi Multiple Line Form Caption

Posted on 2006-11-12
4
702 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
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi : could not find program, '...exe' 2 212
Printing problem 2 109
find a node in VST 2 78
CheckListBox usage 3 80
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

679 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