TIP: Click on subject to list as thread! ANSI
echo: delphi
to: MATHEAS MANSSEN
from: GARY WEINFURTHER
date: 1996-10-17 19:39:00
subject: Inserting text in TMemo

Matheas Manssen mentioned this to All:
 MM> The TMemo component has a method for inserting a string on a given 
ndex.
 MM> But what I want to do is: * inserting a string ('Hello there..') at the
 MM> current cursor position. * And I want also to insert a text at the end 
f
 MM> the current selected text.
The properties SelStart and SelLength will tell you where the cursor and/or 
selection is.  Just insert at those locations.
                                ...Gary
--- GoldED 2.41
---------------
* Origin: The Flying Circus BBS, Farmington Hills, MI. (1:2410/905)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.