Re: [Lazarus] About 0013268: SynEdit parses every li ne twice on load or paste (Attn: Flávio)

2009-03-05 Thread Hans-Peter Diettrich
Flávio Etrusco schrieb: Calling BeginUpdate is not enough, they must disable/unset the highlighter to avoid the double parse. I found it sufficient when the highlighter only parses the current line(s) while painting the text. When the highlighter information is reduced to a flag, indicating

Re: [Lazarus] About 0013268: SynEdit parses every li ne twice on load or paste (Attn: Flávio)

2009-03-05 Thread Martin Friebe
Hans-Peter Diettrich wrote: Flávio Etrusco schrieb: Calling BeginUpdate is not enough, they must disable/unset the highlighter to avoid the double parse. I found it sufficient when the highlighter only parses the current line(s) while painting the text. When the highlighter

Re: [Lazarus] About 0013268: SynEdit parses every li ne twice on load or paste (Attn: Flávio)

2009-03-05 Thread Martin Friebe
Flávio Etrusco wrote: *If* BeginUpdate works, then the content of my original mail should be applicable To avoid any misunderstanding: *If* / *Once* BeginUpdate works, then you can insert a batch of say 100 lines (with Lines.Add or Lines.Insert). It will scan 101 lines (because yes, 1 line

Re: [Lazarus] About 0013268: SynEdit parses every li ne twice on load or paste (Attn: Flávio)

2009-03-05 Thread Flávio Etrusco
Do you refer to paste, as done by SynEdit internally (not by externally calling lines.Insert) ? Because the current paste (if you press ctrl-v in the IDE, having 10 lines in the Clipboard) isn't affected by this bug. (I looked at it in the debugger) It is affected by 2 other things: 1) A

Re: [Lazarus] About 0013268: SynEdit parses every li ne twice on load or paste (Attn: Flávio)

2009-03-05 Thread Flávio Etrusco
Sorry, I meant when you paste _at EOL_. Dang, I meant _EOF_. I should have made it clear before that the problem as I see only/always involves the last line/EOF. Best regards, Flávio ___ Lazarus mailing list Lazarus@lazarus.freepascal.org

[Lazarus] Line Ending FPC/Delphi

2009-03-05 Thread Lee Jenkins
Curious as to how others handle the line endings when sharing code between delphi and lazarus/fpc? FPC has LineEnding and I think Delphi has something similar it inherited from the Kylix era, but I don't think it was called the same. I was thinking of just creating my ifdef'd type. Thanks,

Re: [Lazarus] Line Ending FPC/Delphi

2009-03-05 Thread Felipe Monteiro de Carvalho
In my projects I usually have a file with only general constants, which is added by all others. In this file I add the following declaration: {$IFNDEF FPC} const LineEnding = #10#13; {#endif} The Virtual Magnifying Glass is a medium sized project which is compilable with Lazarus and Delphi. It

Re: [Lazarus] About 0013268: SynEdit parses every li ne twice on load or paste (Attn: Flávio)

2009-03-05 Thread Martin Waldenburg
Hans-Peter Diettrich schrieb: I found it sufficient when the highlighter only parses the current line(s) while painting the text. By the original design the highlighter parses only more than one line if the Range is changed by typing. There is no logical reason to change this behavior, folding

Re: [Lazarus] Installing zteos with lazarus in windows

2009-03-05 Thread Marc Weustink
Edwin Quijada wrote: HiQ I am newbie with this I installed zeos everything fine but when I try to connect with Postgres database I get this errro Ordinal Not found 180 not found SSLeay What zeos version and what postgres version ? Marc ___

Re: [Lazarus] About 0013268: SynEdit parses every li ne twice on load or paste (Attn: Flávio)

2009-03-05 Thread Martin Friebe
Martin Waldenburg wrote: Hans-Peter Diettrich schrieb: I found it sufficient when the highlighter only parses the current line(s) while painting the text. By the original design the highlighter parses only more than one line if the Range is changed by typing. There is no logical

Re: [Lazarus] About 0013268: SynEdit parses every li ne twice on load or paste (Attn: Flávio)

2009-03-05 Thread Martin Waldenburg
Martin Friebe schrieb: Some of the highlighting (actually folding) added (by me) needed more complexity. I doubt, that more complexity is needed. The cost on normal operation can be ignored. A highlighter should be lightning fast even on an underpowered netbook, as it was designed to work

Re: [Lazarus] About 0013268: SynEdit parses every li ne twice on load or paste (Attn: Flávio)

2009-03-05 Thread Martin Friebe
Martin Waldenburg wrote: Martin Friebe schrieb: Some of the highlighting (actually folding) added (by me) needed more complexity. I doubt, that more complexity is needed. Actually you are right. The problem lies in the folding module. But anyway, even on a low power computer,

Re: [Lazarus] Line Ending FPC/Delphi

2009-03-05 Thread Sergei Gorelkin
Felipe Monteiro de Carvalho wrote: In my projects I usually have a file with only general constants, which is added by all others. In this file I add the following declaration: {$IFNDEF FPC} const LineEnding = #10#13; {#endif} In Delphi this constant is called sLineBreak. For

Re: [Lazarus] About 0013268: SynEdit parses every li ne twice on load or paste (Attn: Flávio)

2009-03-05 Thread Martin Waldenburg
Martin Friebe schrieb: It is still way faster than a person can ever type. if one does things more complicated as needed one will also likely introduce more bugs. A few minutes more thinking often saves hours of work, in my experience. Martin ___

Re: [Lazarus] Help with a error - Failed to initialize component: No streaming method available.

2009-03-05 Thread cobalt747
Title: Re: [Lazarus] Help with a error - Failed to initialize component: No streaming method available. , German. What kind of components you place on DataModule? Maybe some code ofTServerDataModule.OnCreate do it? 4 2009 ., 20:55:07: Hi, please anybody can tell me some way to

Re: [Lazarus] About 0013268: SynEdit parses every li ne twice on load or paste (Attn: Flávio)

2009-03-05 Thread Martin Friebe
Martin Waldenburg wrote: Martin Friebe schrieb: It is still way faster than a person can ever type. if one does things more complicated as needed one will also likely introduce more bugs. A few minutes more thinking often saves hours of work, in my experience. Martin You

Re: [Lazarus] About 0013268: SynEdit parses every li ne twice on load or paste (Attn: Flávio)

2009-03-05 Thread Martin Friebe
Martin Friebe wrote: Martin Waldenburg wrote: Martin Friebe schrieb: It is still way faster than a person can ever type. if one does things more complicated as needed one will also likely introduce more bugs. A few minutes more thinking often saves hours of work, in my experience.

Re: [Lazarus] About 0013268: SynEdit parses every li ne twice on load or paste (Attn: Flávio)

2009-03-05 Thread Martin Waldenburg
Martin Friebe schrieb: Martin Friebe wrote: Martin Waldenburg wrote: Martin Friebe schrieb: It is still way faster than a person can ever type. if one does things more complicated as needed one will also likely introduce more bugs. A few minutes more