?
Solved

how to align text in a memo component from a file

Posted on 2000-03-12
2
Medium Priority
?
251 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
[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 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying 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

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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month11 days, 17 hours left to enroll

752 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