Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2000-08

CVS Updated

14 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Shane Miller
to Shane Miller: I added the Search-Find feature in IDE. Of course it doesn't work perfectly yet. I am…
Show quoted text 7 lines
This is a known bug in mwEdit. You can't select text using SetSelStart and SetSelEnd. Use CaretX and CaretY instead. For example mwEdit1.CaretX := 0; mwEdit1.CaretY := 1; will set the cursor at the first character of the 2nd line.

Thanks for the info. I am using this code to place the cursor at the correct spot, however this code does nothing for me in the way of selecting the text. Am I correct? If there is something I am missing, let me know but I think I'll have to wait for this bug to be fixed.....

Thanks
---------------------------------------
Shane Miller
Take a look at other product/projects of mine below!

Get paid to surf the net!
http://alladvantage.com/go.asp?refid=DEX-870

Get paid to surf the net by clicking here too!!!
http://epipo.com/sine.asp?dex870

Home page : http://www.lakefield.net/~smiller

Auto-IP Publisher : http://www.autoip.net

Advanced Clipboard : http://www.lakefield.net/~smiller/advclipboard

Lazarus : http://www.lazarus.freepascal.org

Reply by email

Hongli Lai

http://synedit.sourceforge.net

----------

Show quoted text 6 lines
Van: Shane Miller Aan: Onderwerp: Re: [lazarus] CVS Updated Datum: donderdag 10 augustus 2000 14:48 We will be moving either to SynEdit or the other one that MW is working

on.

Do you have links to the SynEdit site? Thanks Shane

Reply by email

Shane Miller

I added the Search-Find feature in IDE. Of course it doesn't work perfectly yet.

I am having trouble setting the selected text in the editor. It NEVER highlights the correct text. I used the windows version of mwCustomEdit to see how I was supposed to do it and I couldn't get it to work there either!

I will look at it tomorrow. Maybe it's a bug in the version of the editor we are trying to use....

Shane

Reply by email

Hongli Lai
to Shane Miller

Op Wed, 09 Aug 2000, schreef Shane Miller:

Show quoted text 10 lines
I added the Search-Find feature in IDE. Of course it doesn't work perfectly yet. I am having trouble setting the selected text in the editor. It NEVER highlights the correct text. I used the windows version of mwCustomEdit to see how I was supposed to do it and I couldn't get it to work there either! I will look at it tomorrow. Maybe it's a bug in the version of the editor we are trying to use....

This is a known bug in mwEdit.
You can't select text using SetSelStart and SetSelEnd. Use CaretX and CaretY instead.
For example
mwEdit1.CaretX := 0;
mwEdit1.CaretY := 1;
will set the cursor at the first character of the 2nd line.

Reply by email

Shane Miller

CVS Updated. I added a few functions. They are just the shell functions with no code associated with them yet....

SetTextCharacterExtra
CharLowerBuff
IsCharAlphaNumeric

These functions are used in SynEdit. I am close to getting it to compile. There have been a few things I needed to change. One of them (that should be fixed) is found below:

procedure TSynEditUndoList.EnsureMaxEntries;
var
  Item: TSynEditUndoItem;
begin
  while fItems.Count > fMaxUndoActions do begin
    Item := fItems[0];  //error right here fItems is a TList
    Item.Free;
    fItems.Delete(0);
  end;
end;

it didn't like that you were getting a VOID_POINTER when it expected a class of TSynEditUndoItem. Are the FPC folks against allowing this (because it's not technically "correct" pascal) or can this be allowed?

Thanks
Shane

Reply by email

Marc Weustink
to Shane Miller
Shane Miller wrote
it didn't like that you were getting a VOID_POINTER when it expected a class of TSynEditUndoItem. Are the FPC folks against allowing this (because it's not technically "correct" pascal) or can this be allowed?

Did you try to compile it in Delphi mode ?

Marc

Reply by email

Hongli Lai
to Shane Miller: I added the Search-Find feature in IDE. Of course it doesn't work perfectly yet. I am…

Op Thu, 10 Aug 2000, schreef Shane Miller:

Thanks for the info. I am using this code to place the cursor at the correct spot, however this code does nothing for me in the way of selecting the text. Am I correct? If there is something I am missing, let me know but I think I'll have to wait for this bug to be fixed.....

Sorry, my mistake.
To select something, use BlockBegin and BlockEnd.
They are both TPoint type.

BTW, this bug might be fixed in SynEdit (they already released version 1.0). Are there any plans about using SynEdit instead of mwEdit?

Reply by email

Shane Miller

We will be moving either to SynEdit or the other one that MW is working on.

Do you have links to the SynEdit site?
Thanks
Shane

>> 08/10/00 03:23AM >>>

Op Thu, 10 Aug 2000, schreef Shane Miller:

Thanks for the info. I am using this code to place the cursor at the correct spot, however this code does nothing for me in the way of selecting the text. Am I correct? If there is something I am missing, let me know but I think I'll have to wait for this bug to be fixed.....

Sorry, my mistake.
To select something, use BlockBegin and BlockEnd.
They are both TPoint type.

BTW, this bug might be fixed in SynEdit (they already released version 1.0). Are there any plans about using SynEdit instead of mwEdit?

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Shane Miller

I fixed bug # 16

I added all the Synedit files. It's not quite ready to use the Synedit editor yet.

Shane

>> 08/10/00 04:00PM >>>
Shane Miller wrote
it didn't like that you were getting a VOID_POINTER when it expected a class of TSynEditUndoItem. Are the FPC folks against allowing this (because it's not technically "correct" pascal) or can this be allowed?

Did you try to compile it in Delphi mode ?

Marc

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Michael Van Canneyt
to Marc Weustink: Hmm.. I tried to connect but I got a Connection closed by remote host. So I cant help.…
Marc Weustink wrote 14 lines
At 05:27 14-08-2000 +0200, you wrote: >The freshly created directory has the well known "lock failed" error. Could >somebody please telnet to the server and correct permissions. > >Dir: > lazarus/components/synedit > >Thanks in advance, Hmm.. I tried to connect but I got a Connection closed by remote host. So I cant help.

I've fixed it.

Michael.

Reply by email

Stefan Hille
to Shane Miller: I fixed bug # 16 I added all the Synedit files. It's not quite ready to use the Synedit…
Marc Weustink wrote 10 lines
At 05:27 14-08-2000 +0200, you wrote: >The freshly created directory has the well known "lock failed" error. Could >somebody please telnet to the server and correct permissions. > >Dir: > lazarus/components/synedit > >Thanks in advance, Hmm.. I tried to connect but I got a

Thanks for your efforts. Somebody fixed this about an hour after I posted the email.

Thanks,

Stefan

--------------------------------------------------------- Stefan Hille email: 48155 Muenster voice: 0251/664695

Reply by email