Re: [Lazarus] Live Templates

2009-05-13 Thread Martin Friebe
Mattias Gärtner wrote: Zitat von Lee Jenkins l...@datatrakpos.com: Graeme's recent post made me wonder if there is been work or talk of work on implementing Live Templates like Delphi has? Yes. 1. Lazarus will not support the Delphi syntax, because Lazarus already supports code

Re: [Lazarus] DisableWindowsUnicodeSupport

2009-05-08 Thread Martin Friebe
Vincent Snijders wrote: Bernd Mueller schreef: Hello, I would like to use Lazarus without Unicode support on Windows, as it was possible up to version 0.9.24. I took a recent 0.9.27 snapshot and compiled it with -dDisableWindowsUnicodeSupport. My old projects seem work well, but the

Re: [Lazarus] Watches/Local variables/Registers [Re: IDE UI consolidation (was: Re: lfm as pascal)]

2009-05-07 Thread Martin Friebe
Alexander Klenin wrote: On Thu, May 7, 2009 at 08:56, Martin Friebe laza...@mfriebe.de wrote: To heat the discussion up: From the wiki: Watches/Local variables/Registers All three are a lists of name/value pairs used at debug time. They should be merged together in a single

[Lazarus] OT, search and highlight[Re: IDE UI consolidation (was: Re: lfm as pascal)]

2009-05-06 Thread Martin Friebe
Graeme Geldenhuys wrote: On Wed, May 6, 2009 at 2:44 AM, Alexander Klenin kle...@gmail.com wrote: FWIW, I often use Quick search (Ctrl+E) for code navigation, How does quick search work? I highlighted an identifier I want to seach for, pressed Ctrl+E. It showed seaching in the

Re: [Lazarus] IDE UI consolidation (was: Re: lfm as pascal)

2009-05-06 Thread Martin Friebe
Alexander Klenin wrote: I think that while Lazarus IDE has many great features, they are not well organized. Various Lazarus developers added convenience features with a separate user interfaces, so the features are dispersed all over UI and hard to discover. IMHO the good way forward is to

Re: [Lazarus] IDE UI consolidation (was: Re: lfm as pascal)

2009-05-06 Thread Martin Friebe
Alexander Klenin wrote: 2009/5/7 Bogusław Brandys bran...@o2.pl: In fact we see here old problem of two rights - both groups are right , partially. While it would be nice to have as many nice features placed in one Code explorer as possible - that WILL double windows, because someone not

[Lazarus] Watches/Local variables/Registers [Re: IDE UI consolidation (was: Re: lfm as pascal)]

2009-05-06 Thread Martin Friebe
To heat the discussion up: From the wiki: Watches/Local variables/Registers All three are a lists of name/value pairs used at debug time. They should be merged together in a single list with appropriate filtering capabilities. That would make debugging so much harder. Let's assume

Re: [Lazarus] Lazarus ignores my breakpoints

2009-05-05 Thread Martin Friebe
Graeme Geldenhuys wrote: On Tue, May 5, 2009 at 1:06 PM, Graeme Geldenhuys graemeg.li...@gmail.com wrote: Hi, Why is Lazarus ignoring my breakpoint? If I put a writeln() statement before line 1466, it is executed and I see console output. So that I place the following writeln()

Re: [Lazarus] WSRegister error on console application

2009-05-04 Thread Martin Friebe
Paul Ishenin wrote: Andrea Mauri wrote: I tried it (replaced LCLType and LCLintf with Windows), now I got an error on these lines: NCB.ncb_command := Char(NCBENUM); NCB.ncb_command := Char(NCBRESET); NCB.ncb_command := Char(NCBASTAT); NCB.ncb_buffer := PChar(@Adapter);

Re: [Lazarus] Editor font disturbed after upgrading to r19705

2009-05-01 Thread Martin Friebe
Bart wrote: On 4/30/09, Martin Friebe laza...@mfriebe.de wrote: It looks to me like it uses a different font. certainly it looks like it believes the font was proportional (that is why you get the odd spacing, because SynEdit forces it into a grid). The last font-related changes

Re: [Lazarus] Editor font disturbed after upgrading to r19705

2009-05-01 Thread Martin Friebe
Bart wrote: On 5/1/09, Martin Friebe laza...@mfriebe.de wrote: I have attached a patch with a few debugln in it. I don't know if they will show anything useful, since I have no idea what is going on. If you apply it, you need to start lazarus with a logfile, to capture the output

Re: [Lazarus] Editor font disturbed after upgrading to r19705

2009-04-30 Thread Martin Friebe
Bart wrote: Hi, I just upgraded my Lazarus from r18956 to r19705 on Win9x. When I started Lazarus the font in the code editor had become almost unreadable (too small, appr. 5 pt.) I tried to adjust the font in using the appropriate dialog, but I could not get it as it was before. I then

Re: [Lazarus] EXC_BAD_ACCESS, Could not access memory

2009-04-24 Thread Martin Friebe
Roland Turcan wrote: Hello Bart and others, Thanks for your kindness to test my test case, which works fine in my case too, but I have found something what maybe more explain my problem. maybe? This does most certainly explain your problem, see below TYPE TSomeItem = RECORD

Re: [Lazarus] ide enhancement - method or cursor location belongs to what class?

2009-04-21 Thread Martin Friebe
Graeme Geldenhuys wrote: On Sun, Apr 19, 2009 at 3:11 AM, Martin Friebe laza...@mfriebe.de wrote: There is now revision 19499 you need the mouse (so it isn't as quick and convenient as a key-command driven hint). The Fold-Gutter part now has it's own Pop-up menu. (only at lines

Re: [Lazarus] New Lazarus IDE/LCL features since ...?

2009-04-21 Thread Martin Friebe
from the wiki: v0.9.18 (2006-11-22) block matching The IDE automatically highlights matching blocks - begin..end pairs. I think that was/will be 0.9.28. ? At least I couldn't fnd this in 0.9.24 / 0.9.26 Revision: 18436 Date: 13:36:29, 25 January 2009 Message: SynEdit: Highlight

Re: [Lazarus] Figures in code explorer

2009-04-20 Thread Martin Friebe
Mattias Gaertner wrote: On Mon, 20 Apr 2009 12:14:18 +1100 Alexander Klenin kle...@gmail.com wrote: (4g) again seems simple, but 'auto-fixing' can in this can make things _worse_ by hiding the problem. Consider the code (idented by '~' characters): for i := 0 to High(A) do ~~if A[i]

Re: [Lazarus] Figures in code explorer

2009-04-19 Thread Martin Friebe
Alexander Klenin wrote: On Sun, Apr 19, 2009 at 22:02, Mattias Gaertner nc-gaert...@netcologne.de wrote: A few questions/suggestions for improvement: 1) Where did the name came from? It is totally meaningless for me. See http://www.askoxford.com/concise_oed/figure?view=uk

Re: [Lazarus] ide enhancement - method or cursor location belongs to what class?

2009-04-18 Thread Martin Friebe
Graeme Geldenhuys wrote: Hi, I often have large classes that are bigger than what the source editor can display at once. I'm mainly talking about tiOPF project here. Anyway, I receive patches for large methods and use the IDE 'goto line' command to maybe review or modify a received patch.

[Lazarus] OT [Re: Why we chose Object Pascal instead]

2009-04-15 Thread Martin Friebe
Giuliano Colla wrote: Felipe Monteiro de Carvalho ha scritto: And here is the best comment about it: Capt. Kirk: As a customer your choices are: 1. Hire an experienced competent developer who understands the library functions, knows how to write properly structured code with

Re: [Lazarus] Clear font backgrounds

2009-04-13 Thread Martin Friebe
Dave Coventry wrote: Hi, I'm using Image1.Convas.TextOut and I need the font background to be clear. Does anyone know how to achieve this? uses LCLType, LCLIntf; SetBkMode(Image1.Canvas.Handle, TRANSPARENT); You may have to use LCLIntf.ExtTextOut() Best Regards Martin

Re: [Lazarus] Clear font backgrounds

2009-04-13 Thread Martin Friebe
Dave Coventry wrote: Hi Martin, Thanks for the response. 2009/4/13 Martin Friebe laza...@mfriebe.de: uses LCLType, LCLIntf; SetBkMode(Image1.Canvas.Handle, TRANSPARENT); Yes, I do seem to have these functions. You may have to use LCLIntf.ExtTextOut() I'm not sure

Re: [Lazarus] update [Re: Code Folding mess and Code Divider feature]

2009-04-10 Thread Martin Friebe
Alexander Klenin wrote: On Fri, Apr 10, 2009 at 22:10, Martin Friebe laza...@mfriebe.de wrote: 3) 'Folding'/'Divider' buttons are slightly confusing. Maybe it is better to make common list of language constructs with additional 'Fold' checkbox, and make it visible only when needed

Re: [Lazarus] update [Re: Code Folding mess and Code Divider feature]

2009-04-10 Thread Martin Friebe
Alexander Klenin wrote: On Sat, Apr 11, 2009 at 01:56, Martin Friebe laza...@mfriebe.de wrote: Sorry, no patch from me, but I can create an issue if you want. I have no problems with a separate page, but why do you reject a common list? It seems the best solution to me. Dividers

Re: [Lazarus] How to compile lazarus from its SVN source in WinXP?

2009-04-06 Thread Martin Friebe
Leslie Kaye wrote: Popeye Spinach wrote: I have checked out latest lazarus from SVN using TortoiseSVN. I have also downloaded FPC 2.2.2 installer and fpcbuild2.2.2. What then now? I coudn't follow the instructions in http://wiki.lazarus.freepascal.org/Getting_Lazarusi

[Lazarus] update [Re: Code Folding mess and Code Divider feature]

2009-04-05 Thread Martin Friebe
Graeme Geldenhuys wrote: Hi, This relates to the new bug report: http://bugs.freepascal.org/view.php?id=13322 Code Folding seems to have gone way overboard! It simply makes the editor look like a mess at the moment (Lazarus svn trunk revision). What is the end goal of code folding?

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

2009-03-28 Thread Martin Friebe
Flávio Etrusco wrote: On Wed, Mar 4, 2009 at 11:27 AM, Martin Friebe laza...@mfriebe.de wrote: Hi, To take the discussion of the bug tracker. My current intention on this issue would be to solve the additional issues, such as double scan on Paste, or ensuring LoadFromFile only does

Re: [Lazarus] About the Trim Spaces Style modes. Which one should be the default mode?

2009-03-27 Thread Martin Friebe
Flávio Etrusco wrote: Btw, I just checked turbo-delphi: It trims on leave line only. ___ I don't have Turbo Delphi, but Delphi 7 and Delphi 2009. My test show that both Delphi 7 and Delphi 2009 use Caret or Edit mode. Since there is a difference

Re: [Lazarus] Easiest way to case strings

2009-03-26 Thread Martin Friebe
Marco van de Voort wrote: On Thu, Mar 26, 2009 at 10:28:50AM +1000, Alexander Klenin wrote: Since string was introduced as built-in scalar type with defined equality, lack of 'case' support can be viewed as a design bug. I don't see string as a scalar type. It is an array or complex

Re: [Lazarus] About the Trim Spaces Style modes. Which one should be the default mode?

2009-03-26 Thread Martin Friebe
Sayyid Ibnu Husein Al-'Aththÿe2s wrote: With regard to my 0013298 http://bugs.freepascal.org/view.php?id=13298#c26380 report ( http://bugs.freepascal..org/view.php?id=13298#c26380 http://bugs.freepascal.org/view.php?id=13298#c26380 ), this is my comment about the Trim

Re: [Lazarus] About the Trim Spaces Style modes. Which one should be the default mode?

2009-03-26 Thread Martin Friebe
Sayyid Ibnu Husein Al-'Aththÿe2s wrote: With regard to my 0013298 http://bugs.freepascal.org/view.php?id=13298#c26380 report ( http://bugs.freepascal..org/view.php?id=13298#c26380 http://bugs.freepascal.org/view.php?id=13298#c26380 ), this is my comment about the Trim

[Lazarus] codetools trying to keep track of renamed procedures

2009-03-22 Thread Martin Friebe
Codetools has a feature, that tries to keep track of renamed or altered declaration of procedures. If you change the name of a procedure inside the object declaration, and then press code-completion = Codetools will see the old method in the implementation.. It will detect that the old method

Re: [Lazarus] Exception dialog

2009-03-17 Thread Martin Friebe
Michael Van Canneyt wrote: On Mon, 16 Mar 2009, Hans-Peter Diettrich wrote: Michael Van Canneyt schrieb: Is there a reason why the default exception dialog has a cancel button to kill the application ? An unhandled exception IMO is due to some software bug, which the user

Re: [Lazarus] Exception dialog

2009-03-17 Thread Martin Friebe
Michael Van Canneyt wrote: If a component throws an exception outside any call from your code (which you can place in a try except end), a place like OnDataReceived which is triggered automatically, then this component has a bug (IMHO). The component *should* have something like an OnError

Re: [Lazarus] Exception dialog

2009-03-17 Thread Martin Friebe
Graeme Geldenhuys wrote: Please note, I don't use db-aware components, but here follows the help from Kylix 3. On Tue, Mar 17, 2009 at 3:46 PM, Martin Friebe laza...@mfriebe.de wrote: I have to admit, I have limited knowledge of the exact details of the data-aware components, and rather

Re: [Lazarus] Code Folding mess and Code Divider feature

2009-03-13 Thread Martin Friebe
Graeme Geldenhuys wrote: Hi, This relates to the new bug report: http://bugs.freepascal.org/view.php?id=13322 Code Folding seems to have gone way overboard! It simply makes the editor look like a mess at the moment (Lazarus svn trunk revision). What is the end goal of code folding?

Re: [Lazarus] Code Folding mess and Code Divider feature

2009-03-13 Thread Martin Friebe
Graeme Geldenhuys wrote: code folding. The idea of draw code divider was simply to draw a horizontal line at the end of each procedure or method (like visual basic 6 did). I have no interest in drawing horizontal divider lines wherever code folding can occur. And with the current verbose

Re: [Lazarus] Code Folding mess and Code Divider feature

2009-03-13 Thread Martin Friebe
Graeme Geldenhuys wrote: In that case the first picture is wrong = with DDL=1 there should be no line between procedures (it would be at the end of the unit level.) Not sure if complete: DDL 1: unit level DDL 2: implementation/ interface DDL 3: Procedure implementation / class declaration

Re: [Lazarus] Code Folding mess and Code Divider feature

2009-03-13 Thread Martin Friebe
Stephano wrote: Martin Friebe wrote: There is a general plan/idea to add some configuration (have to see how much) to define what you want to have foldable and what not. It wasn't seen as urgent yet (at least not by me...) Most (if not all) of the places that allow folding now, do so

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 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 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] 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

[Lazarus] implicit undo (attn Flávio) [Re : Code Structure / SourceEdit and SyneEdit]

2009-03-04 Thread Martin Friebe
Flávio Etrusco wrote: 1) Logic should be separated from the presentation, so first there should be 'TAbstractSynEdit' class, concerning itself purely with text manipulations, such as text insertion/deletion, cursor position changes, text attribute calculation, save/loading, codetools etc.

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

2009-03-04 Thread Martin Friebe
Hi, To take the discussion of the bug tracker. My current intention on this issue would be to solve the additional issues, such as double scan on Paste, or ensuring LoadFromFile only does a single scan for all lines in one go) This would mean the only Problem remaining is: If a user writes

Re: [Lazarus] Cannot build lazarus anymore

2009-03-04 Thread Martin Friebe
David B Copeland wrote: How do you fix it? Dave. On Wed, 2009-03-04 at 15:00 +0200, A.J. Venter wrote: on svn revision 18887. Thanks, That fixed it. Ciao A.J. There was an error if you did make all (command line), this was fixed in revision 1 = So just upgrade

Re: [Lazarus] implicit undo (attn Flávio) [Re : Code Structure / SourceEdit and SyneEdit]

2009-03-04 Thread Martin Friebe
Hans-Peter Diettrich wrote: Martin Friebe schrieb: Since TrailingSpaces is already a wrapper around the TextBuffer, it can simply intercept those methods, and deal with them. Such a wrapper IMO disallows to change the trim option at runtime. I'd implement it only in the display code

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

2009-03-04 Thread Martin Friebe
Flávio Etrusco wrote: On Wed, Mar 4, 2009 at 11:27 AM, Martin Friebe laza...@mfriebe.de wrote: Hi, To take the discussion of the bug tracker. My current intention on this issue would be to solve the additional issues, such as double scan on Paste, or ensuring LoadFromFile only does

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

2009-03-04 Thread Martin Friebe
Martin Friebe wrote: Flávio Etrusco wrote: On Wed, Mar 4, 2009 at 11:27 AM, Martin Friebe laza...@mfriebe.de wrote: This would mean the only Problem remaining is: If a user writes his own code, calling Lines.Add (or even Lines.Insert) in a loop. And does so without calling

[Lazarus] To all SVN-followers = incompatible change

2009-02-26 Thread Martin Friebe
Any one who uses SVN, you may encounter a problem if updating to Version 18829 or above. This applies if: - you build Lazarus from within the IDE - have the new SynEdit-design package installed The make bigide should not be effected. Here is how to solve the issue: - Uninstall SynEdit-design

Re: [Lazarus] GUI frontend to a console application

2009-02-24 Thread Martin Friebe
Graeme Geldenhuys wrote: Hi, This is probably more related to unix systems... Has anybody got a small sample application, some documentation or is a sample included in Lazarus that shows how to go about writing a GUI frontend to a console application? While it isn't a small example. The

Re: [Lazarus] speed of SynEdit [Re: Wiki pages suggestion - feature comparison]

2009-02-23 Thread Martin Friebe
Hans-Peter Diettrich wrote: Martin Friebe schrieb: The effect is boring, even if I only navigate through the source code with the cursor keys :-( This bit sounds like a problem with painting the window. Moving the cursor should not require much repaint. And after

Re: [Lazarus] speed of SynEdit [Re: Wiki pages suggestion - feature comparison]

2009-02-23 Thread Martin Friebe
Hans-Peter Diettrich wrote: Martin Friebe schrieb: Moving the cursor should not require much repaint. And after startup it works fine, so that I suspect a problem with the information collected over time. yes and no: - vertical moves do repaint the gutter always, in case

Re: [Lazarus] speed of SynEdit [Re: Wiki pages suggestion - feature comparison]

2009-02-23 Thread Martin Friebe
Hans-Peter Diettrich wrote: Martin Waldenburg schrieb: - Memory management. SynEdit uses a TStrings attempt (IMHO a gaped-buffer would be more efficient). that's some kind of an urban legend. But anyway I could cry aloud looking at what mwEdit became. Nobody seems to know

[Lazarus] speed of SynEdit [Re: Wiki pages suggestion - feature comparison]

2009-02-22 Thread Martin Friebe
Hans-Peter Diettrich wrote: Graeme Geldenhuys schrieb: I can not work efficiently with Lazarus, due to two problems with the editor (LazSynEdit): it can become dead slow, needing seconds of computation for a single key stroke, and it doesn't support multiple edit windows. This is why I

Re: [Lazarus] speed of SynEdit [Re: Wiki pages suggestion - feature comparison]

2009-02-22 Thread Martin Friebe
Hans-Peter Diettrich wrote: Martin Friebe schrieb: If you use GTK1 or 2 you should use a font that is monospaces, and exists in this size for bold and italic too. (And you must not use ExtraCharSpacing). Otherwise there may be a slow down in painting. Yet this can not be compared

[Lazarus] some workarounds [Re: Debugger problems]

2009-02-21 Thread Martin Friebe
Graeme Geldenhuys wrote: On Sat, Feb 21, 2009 at 12:49 AM, Hans-Peter Diettrich drdiettri...@aol.com wrote: In most cases I cannot inspect local variables, due to no such symbol in context errors, even with fully disabled optimizations. This is exactly the errors I get. I develop

Re: [Lazarus] Debugger problems

2009-02-21 Thread Martin Friebe
Hans-Peter Diettrich wrote: Marc Weustink schrieb: tooltip on identifiers don't work, Always, unless used on properties. In that case I use the Evaluation dialog to inspect the membervar. Sorry, Graeme is right :-( In most cases I cannot inspect local variables, due to

Re: [Lazarus] Problem using the SVN program: source files mutilated

2009-02-18 Thread Martin Friebe
Bart wrote: Hi, I'm experiencing a problem using SVN. When I have written patches for Lazarus, then do an svn update (after the patches have been committed), the sourcefiles that I have altered are not updated correctly. For instance. I recently made changes to lcl\include\dbedit.inc

Re: [Lazarus] Define Symbols in SynEdit

2009-02-11 Thread Martin Friebe
saeka wrote: Hello, developers. SynEdit.pp source code has a lot of 'SYN_MBCSSUPPORT','SYN_LAZARUS'. It seems to be SynEdit was compiled by defines SYN_MBCSSUPPORT originaly but now, that is undefined by SYN_LAZARUS. (in SynEdit.inc) SYN_MBCSSUPPORT is defined by supporting

Re: [Lazarus] new editor feature in Lazarus SVN

2009-02-02 Thread Martin Friebe
Ah, good... I need to update the trailing spaces section too. and the indent section, dmitry boyarintsev wrote: Martin, I've copy-pasted your email to the wiki: http://wiki.lazarus.freepascal.org/IDE_Window:_Editor_Options imho, it's necessary to add Default Lazarus like settings and

Re: [Lazarus] new editor feature in Lazarus SVN

2009-02-02 Thread Martin Friebe
I know SyncEdit, and got it on my list, for now it's display only. In order to do SyncEdit, SynEdit will need to get a concept of different States (at the moment this is handled by SourceEditor for things like incremental search). This will also be useful for templates, that can automatically

Re: [Lazarus] C++ syntax highlighting not working

2009-01-30 Thread Martin Friebe
you are righjt, I also found where it was introduced. I will fix it tonight. In the meantime Synedit.pp ;line 3309 if (FFoldedLinesView.Ranges[CurLine] = nil) then begin DrawHiLightMarkupToken(nil, PChar(Pointer(sLine)), Length(sLine)); end You may simply remove the

Re: [Lazarus] Error building last SVN

2009-01-24 Thread Martin Friebe
Should be fixed in SVN now. Sorry the Example wasn't updated before. Andrea Mauri wrote: I got the same error, both on win xp and ubuntu 8.04. fpc 2.2.2 lazarus svn. Lazarus rebuilds properly if example are excluded from rebuilding. andrea Guadagnini David ha scritto: An error appeare

Re: [Lazarus] Where to place definition of a record?

2009-01-24 Thread Martin Friebe
Howard Page-Clark wrote: On Sun, 25 Jan 2009 00:22:09 +0200 Dave Coventry dgcoven...@gmail.com wrote: type TNameValueRecord = record private FNames: array of string; FTypes: array of string; function GetCount: integer; inline; ... end; Delphi 2006 introduced

Re: [Lazarus] is it me or a bug that i ve been fighting?

2009-01-19 Thread Martin Friebe
waldo kitty wrote: Martin Friebe wrote: but a couple of thinks that come to mind: 1) What version of FPC are you using (you only said you updated Lazarus); you refer to FPC 2.2.2, have you tried the fixes branch (2.2.3)? or trunc(2.3.1)? i'm using whatever comes with lazarus

Re: [Lazarus] is it me or a bug that i ve been fighting?

2009-01-19 Thread Martin Friebe
waldo kitty wrote: Martin Friebe wrote: 2) You say you do not know the exact error: because the popup box doesn't state it = Try running the exe in the debugger, make sure you compile with debug symbols for gdb (-g, maybe also -gl). just following up on this (as my other reply

Re: [Lazarus] Few features for Lazarus editor

2009-01-19 Thread Martin Friebe
ik wrote: Hello, There are few features that I would like to see in the Lazarus editor: 1. Multiple spliting (and close the split) the editor to horizontal and vertical views 2. VIM keyboard support 3. Ability to have a way to fold code by using comments with special chars (like (* {{{ *)

Re: [Lazarus] Passing an array to a function

2009-01-19 Thread Martin Friebe
Not sure, but I would try something like FS.ReadBuffer(fsbuffer[0],recordsize); The function is declared as ReadBuffer(var Buffer; So in reality a pointer to the variable is passed to the function. Your dyn-array is already a pointer. You are passing in a pointer to the internal

Re: [Lazarus] Few features for Lazarus editor

2009-01-19 Thread Martin Friebe
On 0.9.27, if you activate a new feature, and you stand on a string, it marks all of the matching strings in the same file. It can be very helpful if I could fixate such string when I'm looking at the code and moving to see where the string in my context appears without the need to use

Re: [Lazarus] Saving user created component structure to LFM file

2009-01-12 Thread Martin Friebe
) Thanks Martin Martin Friebe wrote: Hi, I have a problem saving a certain component struicture to an LFM (lazarus) file and read it back. since a good amount of code is in FPC, I am not sure which list to go to? There is classes/writer.inc with has TBinaryObjectWriter. This is where things

Re: [Lazarus] Saving user created component structure to LFM file

2009-01-12 Thread Martin Friebe
Mattias Gaertner wrote: [...] Thanks, I think I found a better way. The outer container has no nested components of it's own. It seems I can hook into (override) TComponent.WriteState which is calling WriteComponentData (properties, then Children). Since no children are there, I can make

Re: [Lazarus] Saving user created component structure to LFM file

2009-01-12 Thread Martin Friebe
the valuse of a Class-property 1) property is TPersistend or descendant, and has both read and write access (write can end up in assign) 2) property is TComponent or descendant, and has csSubComponent (in this case it does not need a write access method) Martin Friebe escribió: Mattias Gaertner

Re: [Lazarus] Saving user created component structure to LFM file

2009-01-12 Thread Martin Friebe
So as I see it I found 2 possibilities 1) The GutterParts are created as components owned by the SynEdit (or does it have to be the form; if it does have to be the form then there will be issues if there is more than one synedit ). that will be a lot of easy to break maintenance work.

[Lazarus] Saving user created component structure to LFM file

2009-01-11 Thread Martin Friebe
Hi, I have a problem saving a certain component struicture to an LFM (lazarus) file and read it back. since a good amount of code is in FPC, I am not sure which list to go to? There is classes/writer.inc with has TBinaryObjectWriter. This is where things go first. Then, later this gets

Re: [Lazarus] Loading an integer into a byte array

2009-01-08 Thread Martin Friebe
Bernd Mueller wrote: Dave Coventry wrote: I have a file into which I want to put a long integer: 00 00 19 7A The file expects the value in the form: buffer[0]:=122; buffer[1]:=25; buffer[2]:=0; buffer[3]:=0; I am then intending to write this buffer to the file

Re: [Lazarus] Does Lazarus have sizer or layout objects?

2009-01-07 Thread Martin Friebe
Vincent Snijders wrote: 2009/1/7 David W Noon david.w.n...@ntlworld.com: Hi, Some C++ class libraries have object classes that automatically resize widgets when a form is resized by the user. For example, wxWidgets calls them sizers, and Qt calls them layouts. I have perused the LCL

[Lazarus] pointer to int/other 32/64 bit?

2009-01-03 Thread Martin Friebe
Hi I know there are issues becuse on 64 bity systems pointer are 8 byte. And I know there is PTRInt / PTRUInt. An integer of the correct size. But how much casting is needed? if I have an integer, word, or byte do I need to go via PTRInt? That is if I know the data is only 4 or less bytes. So

[Lazarus] test

2008-12-30 Thread Martin Friebe
just a test ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Code Structure / SourceEdit and SyneEdit [Re: Mouse Link in SynEdit (only link-able items)]

2008-12-18 Thread Martin Friebe
In some places below, I am unsure what you meant by component: - the view (as in MVC) - the overall editor (as in SynEdit) Hans-Peter Diettrich wrote: Martin Friebe schrieb: Model shall contain - the raw text - bookmarks, and other marks - foldable secitions - ... Other information

[Lazarus] The Data-Model for SynEdit / The Data Model for Lazarus [Code Structure / SourceEdit and SyneEdit]

2008-12-18 Thread Martin Friebe
into implementation. Best regards Martin In some places below, I am unsure what you meant by component: - the view (as in MVC) - the overall editor (as in SynEdit) Hans-Peter Diettrich wrote: Martin Friebe schrieb: Model shall contain - the raw text - bookmarks, and other marks

Re: [Lazarus] The Data-Model for SynEdit / The Data Model for Lazarus [Code Structure / SourceEdit and SyneEdit]

2008-12-18 Thread Martin Friebe
Mattias Gärtner wrote: Zitat von Martin Friebe laza...@mfriebe.de: [...] But for Lazarus a benefit could be, that such a model could also contain data, on top of the information hold for synEdit. The Lfm (FormDesigner) info could become part of this. What has synedit to do

Re: [Lazarus] The Data-Model for SynEdit / The Data Model for Lazarus [Code Structure / SourceEdit and SyneEdit]

2008-12-18 Thread Martin Friebe
Hans-Peter Diettrich wrote: Martin Friebe schrieb: - The public/shareable model would have to be ref-counted. Or explicit ownership would need to be assigned and the owner would need to keep track of all Shareholders. The latter. The model must know about all views, to be notified

Re: [Lazarus] Code Structure / SourceEdit and SyneEdit [Re: Mouse Link in SynEdit (only link-able items)]

2008-12-17 Thread Martin Friebe
Hans-Peter Diettrich wrote: Martin Friebe schrieb: Maybe for clarifications. I started this using the word "view". But I can see there are 2 ways to read this word. - "physical view": Like a painter. The final output of the combined text/style information.

Re: [Lazarus] Code Structure / SourceEdit and SyneEdit [Re: Mouse Link in SynEdit (only link-able items)]

2008-12-16 Thread Martin Friebe
that view in your text sometimes refers to multi window display. I tried to amend them in a 2nd run through my answer. I hope I didn't miss any. If my answers do not seem to match your text, I probably read view in a different way from what you meant Hans-Peter Diettrich wrote: Martin Friebe

Re: [Lazarus] Code Structure / SourceEdit and SyneEdit [Re: Mouse Link in SynEdit (only link-able items)]

2008-12-15 Thread Martin Friebe
Hans-Peter Diettrich wrote: Martin Friebe schrieb: The only reason I did skip the grid in the name is that a generic painter base class will not define a griod (or maybe it will but based on pixels). So it does not block anyone from implementing a proportional painter Okay

Re: [Lazarus] Code Structure / SourceEdit and SyneEdit [Re: Mouse Link in SynEdit (only link-able items)]

2008-12-14 Thread Martin Friebe
Hans-Peter Diettrich wrote: Martin Friebe schrieb: A couple of remarks: -Individual drawer objects fro Gutter and TextArea (I will avoid Grid in the name, Grid is a specialization) The Grid is a hint on the organisation of the canvas, in rectangular cells. I've spent a lot

Re: [Lazarus] Mouse Link in SynEdit (only link-able items)

2008-12-13 Thread Martin Friebe
Hans-Peter Diettrich wrote: Mattias Gärtner schrieb: The IDE is structured in a hierarchy. mainide: the top level of the IDE and the central nerve system. Because of its size it's splitted into several units. This is the 'integrated' in IDE. It connects the various modules like

Re: [Lazarus] Code Structure / SourceEdit and SyneEdit [Re: Mouse Link in SynEdit (only link-able items)]

2008-12-13 Thread Martin Friebe
Hans-Peter Diettrich wrote: Martin Friebe schrieb: Well I am in the process of breaking it up into smaller bits. - The gutter drawing moved to its own class. - Folding is partly abstracted - Trim Trailing spaces has been abstracted into a class of its own. (a view of SynEditLines

Re: [Lazarus] Mouse Link in SynEdit (only link-able items)

2008-12-12 Thread Martin Friebe
Alexander Klenin wrote: Zitat von Alexander Klenin kle...@gmail.com: I should note that I was horrified by the amount of glue code needed to route an event through main form, source notebook, source editor and SynEdit. The IDE is structured in a hierarchy. mainide: the top

[Lazarus] Code Structure / SourceEdit and SyneEdit [Re: Mouse Link in SynEdit (only link-able items)]

2008-12-12 Thread Martin Friebe
Mattias Gärtner wrote: Zitat von Alexander Klenin kle...@gmail.com: I should note that I was horrified by the amount of glue code needed to route an event through main form, source notebook, source editor and SynEdit. The IDE is structured in a hierarchy. mainide: the top level of

Re: [Lazarus] Code Structure / SourceEdit and SyneEdit [Re: Mouse Link in SynEdit (only link-able items)]

2008-12-12 Thread Martin Friebe
Alexander Klenin wrote: On Fri, Dec 12, 2008 at 21:37, Martin Friebe laza...@mfriebe.de wrote: In The current structure SynEdit is the Visual control, and therefore also the control that takes all events such as mouse/key down/up/move. Often it is SynEdits work to react to this, but often

Re: [Lazarus] Mouse Link in SynEdit (only link-able items)

2008-12-12 Thread Martin Friebe
Thanks for the patch, looks good to me. A few things: - Originally you had the condition NewX1NewX2 moved into IsLinkable. Now it is omitted? May be right, because codetools may (or may not) return false for those. Yet it means an unnecessary call to code tools. - You probably accidentally

[Lazarus] correction [Re: Mouse Link in SynEdit (only link-able items)]

2008-12-12 Thread Martin Friebe
Martin Friebe wrote: - The unlucky bit is that your patch gets affected by a known bug. if you got a string with multibyte utf8 chars (like german umlauts) then anythink behind the umlauts is not linkable. This is already the case now (SynEdit does currently not follow valid links

Re: [Lazarus] Mouse Link in SynEdit (only link-able items)

2008-12-12 Thread Martin Friebe
Hi Alexander, Mattias did apply your patch (since I am restricted to the synedit folder). If you feel like doing the optimization, it will always be welcome, but is no must. Martin Friebe wrote: Thanks for the patch, looks good to me. ... - And last not least (not a stopper, but would

[Lazarus] SynEdit patches [Re: TAChart: Request to review/apply patch 12758]

2008-12-11 Thread Martin Friebe
Alexander Klenin wrote: and yet another one for patches to SynEdit (both stalled for about a month now), etc I just saw this, and consequently found your patches on this mailing list too. As for the SynEdit patches (is-link-able), If you can submit them to mantis, I will take them and look at

[Lazarus] Mouse Link in SynEdit (only link-able items)

2008-12-11 Thread Martin Friebe
I am opening a new mail thread, otherwise it will be mixed with the TAChart topic in the archives. Alexander Klenin wrote: On Thu, Dec 11, 2008 at 23:49, Martin Friebe [EMAIL PROTECTED] wrote: Alexander Klenin wrote: and yet another one for patches to SynEdit (both stalled for about

Re: [Lazarus] Stretching Antialiasing in win32

2008-12-10 Thread Martin Friebe
Felipe Monteiro de Carvalho wrote: Hello, When I execute the StretchBlt windows API in the magnifier I get different results in Delphi and in Lazarus: Windows.StretchBlt(DestCanvas.Handle, drawGlassRect.Left, drawGlassRect.Top, drawGlassWidth, drawGlassHeight,

Re: [Lazarus] user defined code folding regions using $REGION comments

2008-11-26 Thread Martin Friebe
Gerard N/A wrote: I have a rough implementation that seems to work Ok (I'm cautious because the synedit highlighter is a scary piece of code). If there is interest, I can post a patch to the bug tracker or here. Hi Gerard, I saw the patch you uploaded to the bug system. As indicated

  1   2   >