Solved

Multiple TMemo Windows

Posted on 1997-03-20
1
175 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
1 Comment
 
LVL 3

Accepted Solution

by:
mheacock earned 50 total points
Comment Utility
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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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 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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now