EControl Ltd. Forum Index EControl Ltd.
VCL libraries and software support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Lines.Delete(Index) broken

 
Post new topic   Reply to topic    EControl Ltd. Forum Index -> EControl Syntax Editor
View previous topic :: View next topic  
Author Message
itsatomic



Joined: 12 Jun 2006
Posts: 38

PostPosted: Tue Jul 18, 2006 3:25 am    Post subject: Lines.Delete(Index) broken Reply with quote

Hi Michael

I have the following code:

Code:
    SyntaxMemo1.Lines.Delete(SyntaxMemo1.CaretPos.y);


and it is behaving strangely. It either deletes the line plus one char, or deletes the line leaving the first char.

Please let me know when you have fixed this?

It seems surprising to me that noone else has encountered this behaviour.

Thanks
Aaron
Back to top
View user's profile Send private message
econtrol
Site Admin


Joined: 09 Jun 2006
Posts: 202

PostPosted: Tue Jul 18, 2006 8:08 am    Post subject: Reply with quote

Fixing (ecStrUtils.pas):

Code:
procedure TSyntMemoStrings.Delete(Index: Integer);
begin
  DeleteTxt(LineIndex(Index) - 1, LineSpace(Index));
end;
Back to top
View user's profile Send private message Send e-mail
itsatomic



Joined: 12 Jun 2006
Posts: 38

PostPosted: Wed Jul 19, 2006 1:00 am    Post subject: Reply with quote

Thanks, worked nicely.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    EControl Ltd. Forum Index -> EControl Syntax Editor 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, 2005 phpBB Group