BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TMemo - SelLength = 0 not clear highlighting

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE)
View previous topic :: View next topic  
Author Message
Alan Agnew
Guest





PostPosted: Tue Sep 06, 2005 4:04 pm    Post subject: TMemo - SelLength = 0 not clear highlighting Reply with quote



Have a TMemo control which contains a file name in its text on a line by
itself.
Have a OnDblClick event handler that establishes the beginning and end
of the line so that the file name can be retrieved from TMemo->SelText.
I then set SelLength = 0.
If I then do a shell open of the file name, thus taking focus from the
TMemo, I end up with the "word" containing the cursor highlighted.

What can I do to either end up with no highlighting, or the whole file
name highlighted even when it includes spaces.

Alan
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.