Solved

Multiple TMemo Windows

Posted on 1997-03-20
1
180 Views
Last Modified: 2011-09-20
In My MDI Application I have the need to open several
Instances of a TMemo Window. How do I refference the
different windows. Are they "Arrayed", memo[0],[1] etc?
Prefferably, I would like to refference by name somehow.
Can I give each instance a different name/label/etc?

Also, to keep only the last 100 lines of a nearly
continuous stream of text(TCP/IP news feed), I use :
 while (frmStatus.statusOut.Lines.Count > 100) do
           begin
           frmStatus.statusOut.Lines.Delete(0);
           end
The problem is that when I delete(0), the cursor position
follows. With a steady stream of input, this makes for
some pretty jumpy Reading. Can I Delete(0) without
positioning the cursor?

My First Delphi2 Project. Experienced mainly in Dos based
Games/Graphics/animation Programming using assembler
and C.  (The Old Fashioned Way!)
0
Comment
Question by:lechtor
[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
1 Comment
 
LVL 3

Accepted Solution

by:
mheacock earned 50 total points
ID: 1334912
If you create your components (TMemo) at design-time, use help to check out the FindComponents command.  You can use this to find a component of a specific name and then use it accordingly.  They have a good example which goes along with it.

As for your other question...I'll experiment and add comments leter...but you might want to disabling the component before deleting...this my or may not work.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

734 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