?
Solved

how to align text in a memo component from a file

Posted on 2000-03-12
2
Medium Priority
?
259 Views
Last Modified: 2010-04-04
I am using Delphi5

I write to a text file as below
   
AssignFile(outfile, 'c:\music selection\dispsongs.txt');
Rewrite(outfile);

I load this file using memo.lines.loadfromfile

the text is not aligned in columns.

I have when writing to the file used field width numbers eg.
writeln(outfile, datamodule1.tblMuicSelSong['CdName']:30

If I open this file using windows notepad the columns align correctly

How do I fix this problem?

Thanks for your reply

Ivan
0
Comment
Question by:icarey
2 Comments
 

Accepted Solution

by:
toesable earned 400 total points
ID: 2611082
Notepad is set up (usually) to use a fixed width font.  Are you using a fixed width font like courier new in your memo?  This should fix the probem, but if you want to use a variable sized width font like ms-san seriff or Times New Roman, maybe someone else can help you with that.  
0
 
LVL 7

Expert Comment

by:Motaz
ID: 2611100
That is exactly the solution toesable.

Motaz
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month14 days, 19 hours left to enroll

840 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