Re: [Lazarus] How to create hints in the IDE

2010-07-24 Thread Bernd Kreuss
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mattias Gaertner wrote: One simple label, that simply > strips the html. And one from turbopoweripro package. When you install > the package it replaces the label. I have thought it was THintWindow, but this one does not seem to be able to strip the t

Re: [Lazarus] How to create hints in the IDE

2010-07-24 Thread Mattias Gaertner
On Sun, 25 Jul 2010 01:31:52 +0200 Bernd Kreuss wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Mattias Gaertner wrote: > > > > What is the problem? How to reproduce? > > It seems to work now. I can display a THindWindow in the code browser > containing the information from fpdoc

Re: [Lazarus] How to create hints in the IDE

2010-07-24 Thread Bernd Kreuss
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bernd Kreuss wrote: > Mattias Gaertner wrote: >> What is the problem? How to reproduce? > > It seems to work now. Not really. it works only for classes, not for methods, It will display the method as if it were a function and does not know that it be

Re: [Lazarus] How to create hints in the IDE

2010-07-24 Thread Bernd Kreuss
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mattias Gaertner wrote: > > What is the problem? How to reproduce? It seems to work now. I can display a THindWindow in the code browser containing the information from fpdoc and the comments. The only thing i still don't understand is how to deal w

Re: [Lazarus] Tutorial Compiling/installing FPC and Lazarus from Sources of SVN

2010-07-24 Thread Juha Manninen
Marcos Douglas kirjoitti lauantai, 24. heinäkuuta 2010 22:40:06: > > http://wiki.lazarus.freepascal.org/Getting_Lazarus#Build_and_install_wit > > h_make > > When I joined the community of FPC, I tried to compile the FPC / Laz > on my PC, but could not. After receiving some tips in mailing-list, I

Re: [Lazarus] How to create hints in the IDE

2010-07-24 Thread Mattias Gaertner
On Sun, 25 Jul 2010 00:24:42 +0200 Bernd Kreuss wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > I will now try to do it with > > TIDEHelpManager(HelpBoss).GetHintForSourcePosition() and see whether > > this also works. What is the problem? How to reproduce? > OK, this works. T

Re: [Lazarus] How to create hints in the IDE

2010-07-24 Thread Bernd Kreuss
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > I will now try to do it with > TIDEHelpManager(HelpBoss).GetHintForSourcePosition() and see whether > this also works. OK, this works. The code is even easier with using the above function. The problem with not displaying the comments was because I

Re: [Lazarus] How to create hints in the IDE

2010-07-24 Thread Bernd Kreuss
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin wrote: > TIDEHelpManager(HelpBoss).GetHintForSourcePosition(ActiveUnitInfo.Filename, >CaretPos,BaseURL,SmartHintStr); > > HelpBoss is a gobal variable in the Unit HeplManager, it seems to be the > b

[Lazarus] AggPas Perspective ... how to make it work?

2010-07-24 Thread Horacio Jamilis
Hi, I continue fighting with AggPas included with lazarus to use it for a GPS software. To finish most of the drawing needs, I need to make AggPas to render the map in perspective, to give the software the 3D view (as Igo do or something similar). I saw the Persepective.dpr demo, and selecting

[Lazarus] How to create hints in the IDE

2010-07-24 Thread Martin
On 24/07/2010 20:52, Bernd Kreuss wrote: TCodeHelpManager.GetHTMLHint( Code: TCodeBuffer; X, Y: integer; Options: TCodeHelpHintOptions; out BaseURL, HTMLHint: string; out CacheWasUsed: boolean): TCodeHelpParseResult; seems to do the interesting things It will look up fpdoc and com

[Lazarus] How to create hints in the IDE

2010-07-24 Thread Martin
I changed the subject, otherwise it may not get noted by whoever has the answer (since the old subject was just about to develop into an endless thread...) My expertise mainly goes to SynEdit, so this may have to be answered by someone else. On 24/07/2010 20:52, Bernd Kreuss wrote: Ok, then

Re: [Lazarus] Disabling DoAllAutoSize in wincontrol.inc?

2010-07-24 Thread Tobias Giesen
A few days ago, Mattias wrote: > TWinControl.AlignControls and TAnchorSide.GetSidePosition stop after > ControlCount number of runs. > DoAllAutoSize did not stop. I added a counter. The LCL now raises an > exception. > > Tobias, please test. Brilliant! It points me right to the buggy component

Re: [Lazarus] comments in source [Re: "show declaration hints" has more power in it than is really used]

2010-07-24 Thread Bernd Kreuss
Ok, I promise I will try to not further mention my dislike for the fpdoc -for-everything approach anymore. If some documentation about the inner workings of the IDE will finally be written some day and it must all be in fpdoc then let it be in fpdoc, I can live with it better than with no documenta

Re: [Lazarus] Tutorial Compiling/installing FPC and Lazarus from Sources of SVN

2010-07-24 Thread Marcos Douglas
On Sat, Jul 24, 2010 at 3:01 PM, Juha Manninen wrote: > Marcos Douglas wrote lauantai, 24. heinäkuuta 2010 19:14:24: >> I agree. But compiling the source from the SVN can not be so simple >> for most people. So I think in this case (using SVN) the information >> should be detailed and, if possible

Re: [Lazarus] "show declaration hints" has more power in it than is really used

2010-07-24 Thread Doug Chamberlin
On 7/24/2010 12:34 PM, Mark Morgan Lloyd wrote: I wonder if I could ask a question that follows on from Bernd's sentiment. He points out that the IDE will pick up a comment /before/ a declaration, but for getting on for 30 years I've been putting comments immediately /after/ and that includes t

Re: [Lazarus] LazIntfImage and OSX

2010-07-24 Thread dmitry boyarintsev
On Sat, Jul 24, 2010 at 6:59 PM, Wolfram Söns wrote: > now it works! Thanks a lot. Sie sind herzlich eingeladen! if you find more bugs with Carbon graphics, please report them to bugs.freepascal.org, otherwise they might be forgotten. But still feel free to discuss them on the mailing list. tha

Re: [Lazarus] anchordockingdsgn on GTK2

2010-07-24 Thread theo
> The bring to front comes from the window manager, so this can not be > changed. Maybe the code I've posted here could help with the WM problem: http://www.mail-archive.com/lazarus@lists.lazarus.freepascal.org/msg10541.html But I understand if you don't want XLib code in the LCL. Thank you The

Re: [Lazarus] LazIntfImage and OSX

2010-07-24 Thread Wolfram Söns
Privet Dmitry, now it works! Thanks a lot. Wolfram Am 23.07.2010 um 15:48 schrieb dmitry boyarintsev: > 2010/7/5 Wolfram Söns : >> I cant see any rule in results like this here: >> Pixel (0,215): 65,43,20 (Mac), 88,57,21 (Windows) >> Pixel (1,215): 53,38,26 (Mac), 73,50,31 (Windows) >> Pixel (2,

Re: [Lazarus] anchordockingdsgn on GTK2

2010-07-24 Thread Mattias Gaertner
On Sat, 24 Jul 2010 18:56:15 +0200 theo wrote: > I've tried for the first time Anchordockingdsgn on GTK2. > > Impressive work. Thank you. > > There is one thing, that I would call a "show stopper" for practical use: > Everytime I choose an Item from the component palette, the Design-Form > goes

Re: [Lazarus] "show declaration hints" has more power in it than is really used

2010-07-24 Thread Mattias Gaertner
On Sat, 24 Jul 2010 16:34:12 + Mark Morgan Lloyd wrote: > Bernd wrote: > > Much stuff that appeared on a single line, with occasional missing > spaces. If it's difficult to write it should be difficult to read. Here > endeth the rant :-) > > I wonder if I could ask a question that follows

Re: [Lazarus] Tutorial Compiling/installing FPC and Lazarus from Sources of SVN

2010-07-24 Thread Juha Manninen
Andreas Schneider wrote perjantai, 23. heinäkuuta 2010 23:26:20: > You mean something like this? > > http://wiki.lazarus.freepascal.org/index.php?title=Special:Allpages&from=&n > amespace=0 > > It's even named "index" btw, although it's more like a cross-over between > TOC and Index. I answered t

Re: [Lazarus] Tutorial Compiling/installing FPC and Lazarus from Sources of SVN

2010-07-24 Thread Juha Manninen
Marcos Douglas wrote lauantai, 24. heinäkuuta 2010 19:14:24: > I agree. But compiling the source from the SVN can not be so simple > for most people. So I think in this case (using SVN) the information > should be detailed and, if possible, automate tasks using scripts. It is easy when you leave t

[Lazarus] anchordockingdsgn on GTK2

2010-07-24 Thread theo
I've tried for the first time Anchordockingdsgn on GTK2. Impressive work. Thank you. There is one thing, that I would call a "show stopper" for practical use: Everytime I choose an Item from the component palette, the Design-Form goes behind the IDE/Editor. And the bug http://bugs.freepascal.org

Re: [Lazarus] "show declaration hints" has more power in it than is really used

2010-07-24 Thread Martin
On 24/07/2010 17:34, Mark Morgan Lloyd wrote: Bernd wrote: Much stuff that appeared on a single line, with occasional missing spaces. If it's difficult to write it should be difficult to read. Here endeth the rant :-) I wonder if I could ask a question that follows on from Bernd's sentiment

Re: [Lazarus] "show declaration hints" has more power in it than is really used

2010-07-24 Thread Mark Morgan Lloyd
Bernd wrote: Much stuff that appeared on a single line, with occasional missing spaces. If it's difficult to write it should be difficult to read. Here endeth the rant :-) I wonder if I could ask a question that follows on from Bernd's sentiment. He points out that the IDE will pick up a com

Re: [Lazarus] Tutorial Compiling/installing FPC and Lazarus from Sources of SVN

2010-07-24 Thread Marcos Douglas
On Fri, Jul 23, 2010 at 11:34 AM, Juha Manninen wrote: > > Marcos Douglas wrote torstai, 22. heinäkuuta 2010 20:09:54: > > > BTW, > > > At the moment we have two wiki pages about installing. > > > Juha has started to clean up / update the 'Getting_Lazarus' page and > > > put each target onto a pag

Re: [Lazarus] comments in source [Re: "show declaration hints" has more power in it than is really used]

2010-07-24 Thread Martin
On 24/07/2010 16:57, Michael Van Canneyt wrote: On Sat, 24 Jul 2010, Mattias Gaertner wrote: On Sat, 24 Jul 2010 16:51:58 +0200 (CEST) Michael Van Canneyt wrote: On Sat, 24 Jul 2010, Mattias Gaertner wrote: On Sat, 24 Jul 2010 14:24:15 +0200 Bernd wrote: You can turn the auto creatin

Re: [Lazarus] comments in source [Re: "show declaration hints" has more power in it than is really used]

2010-07-24 Thread Michael Van Canneyt
On Sat, 24 Jul 2010, Mattias Gaertner wrote: On Sat, 24 Jul 2010 16:51:58 +0200 (CEST) Michael Van Canneyt wrote: On Sat, 24 Jul 2010, Mattias Gaertner wrote: On Sat, 24 Jul 2010 14:24:15 +0200 Bernd wrote: You can turn the auto creating of class headers off in the options. Well, I

Re: [Lazarus] comments in source [Re: "show declaration hints" has more power in it than is really used]

2010-07-24 Thread Hans-Peter Diettrich
Reimar Grabowski schrieb: or I could just hover my mouse over the identifier and have the most useful information in a little hint window. Don't use the evil M-word when talking about an editor, which is operated via key strokes. :) It depends on what you really do: write or read (browse) co

Re: [Lazarus] comments in source [Re: "show declaration hints" has more power in it than is really used]

2010-07-24 Thread Mattias Gaertner
On Sat, 24 Jul 2010 16:51:58 +0200 (CEST) Michael Van Canneyt wrote: > > > On Sat, 24 Jul 2010, Mattias Gaertner wrote: > > > On Sat, 24 Jul 2010 14:24:15 +0200 > > Bernd wrote: > > > > You can turn the auto creating of class headers off in the options. > > > > Well, I use it extensively. >

Re: [Lazarus] comments in source [Re: "show declaration hints" has more power in it than is really used]

2010-07-24 Thread Michael Van Canneyt
On Sat, 24 Jul 2010, Mattias Gaertner wrote: On Sat, 24 Jul 2010 14:24:15 +0200 Bernd wrote: You can turn the auto creating of class headers off in the options. Well, I use it extensively. The only pity is that I cannot specify its form. Michael --

[Lazarus] GTK2 version questions

2010-07-24 Thread theo
Hello I have a question regarding this bug rep. http://bugs.freepascal.org/view.php?id=17010 Is there any backward-compatibility limit for Lazarus regarding GTK2 versions? The functions imported there are from 2.8. Afaics, it was released 13 August 2005. This should be OK to use, right? If I'd m

Re: [Lazarus] comments in source [Re: "show declaration hints" has more power in it than is really used]

2010-07-24 Thread Mattias Gaertner
On Sat, 24 Jul 2010 14:24:15 +0200 Bernd wrote: > Also I have noticed that in many of the rare occasions where a class > has a documentation like here: > > { TSynTextFoldAVLTree > Nodes in the tree cover the folded lines only > the cfCollapsed line at the start of a fold, is *not* part

Re: [Lazarus] comments in source [Re: "show declaration hints" has more power in it than is really used]

2010-07-24 Thread Martin
On 24/07/2010 14:14, Bernd wrote: You came up with the AVL tree and the only place where AVL is mentioned (I did a search on identifiers) anywhere in the IDE was the code folding thing. I have never written a folding text editor in my whole life, so I have no Idea what possible alternatives have

Re: [Lazarus] comments in source [Re: "show declaration hints" has more power in it than is really used]

2010-07-24 Thread Reimar Grabowski
On Sat, 24 Jul 2010 15:39:01 +0200 Bernd wrote: > or I could just hover my mouse over the identifier and > have the most useful information in a little hint window. Don't use the evil M-word when talking about an editor, which is operated via key strokes. :) > The reason it is not reliable in

Re: [Lazarus] comments in source [Re: "show declaration hints" has more power in it than is really used]

2010-07-24 Thread Reimar Grabowski
On Sat, 24 Jul 2010 15:20:22 +0200 Bernd wrote: > > They are automatically created by codetools... > > Then this should be removed No, AFAICR this is Delphi compatible. And I like it, reason enough to keep it. R. -- A: Because it messes up the order in which people normally read text. Q: Why

Re: [Lazarus] Build and macros

2010-07-24 Thread Mattias Gaertner
On Sat, 24 Jul 2010 15:18:36 +0200 Kjow wrote: > 2010/7/24 Mattias Gaertner : > > On Sat, 24 Jul 2010 13:11:31 +0200 > > Kjow wrote: > > > >> Hi all, > >> > >> with macros > >> (http://wiki.lazarus.freepascal.org/IDE_Macros_in_paths_and_filenames) > >> I see that I can build project binary with

Re: [Lazarus] comments in source [Re: "show declaration hints" has more power in it than is really used]

2010-07-24 Thread Bernd
2010/7/24 Martin : > Then again, in *this* *case* this comment is for an internally only used > class, usable only for people working inside this unit. So you read it as > you explore the source, rather than in the hint. All of what I am saying is for people working on the internal code. The hint

Re: [Lazarus] comments in source [Re: "show declaration hints" has more power in it than is really used]

2010-07-24 Thread Bernd
2010/7/24 Martin : >>   { TSynFoldNodeInfoHelper } >> >>   TSynFoldNodeInfoHelper = class >> > > They are automatically created by codetools... Then this should be removed and the codetools should be fixed to not do such things. Some people are already annoyed by useful comments that contain helpf

Re: [Lazarus] Build and macros

2010-07-24 Thread Kjow
2010/7/24 Mattias Gaertner : > On Sat, 24 Jul 2010 13:11:31 +0200 > Kjow wrote: > >> Hi all, >> >> with macros >> (http://wiki.lazarus.freepascal.org/IDE_Macros_in_paths_and_filenames) >> I see that I can build project binary with the target CPU. >> >> e.g. putting in "Target file name" this: MyP

Re: [Lazarus] comments in source [Re: "show declaration hints" has more power in it than is really used]

2010-07-24 Thread Bernd
2010/7/24 Martin : >  As for an explanation of the whole class: I would have simply thought that > finding an AVLNode, in a FoldTree, anyone looking at it would conclude it > contains data about one piece of folded code (eg, fold 10 lines starting at > line 255). You came up with the AVL tree and

Re: [Lazarus] comments in source [Re: "show declaration hints" has more power in it than is really used]

2010-07-24 Thread Mattias Gaertner
On Sat, 24 Jul 2010 13:37:14 +0100 Martin wrote: > On 24/07/2010 13:24, Bernd wrote: > > Also I have noticed that in many of the rare occasions where a class > > has a documentation like here: > > > >{ TSynTextFoldAVLTree > > Nodes in the tree cover the folded lines only > > the cfC

Re: [Lazarus] comments in source [Re: "show declaration hints" has more power in it than is really used]

2010-07-24 Thread Martin
On 24/07/2010 13:24, Bernd wrote: Also I have noticed that in many of the rare occasions where a class has a documentation like here: { TSynTextFoldAVLTree Nodes in the tree cover the folded lines only the cfCollapsed line at the start of a fold, is *not* part of a node. Remove

Re: [Lazarus] comments in source [Re: "show declaration hints" has more power in it than is really used]

2010-07-24 Thread Martin
On 24/07/2010 12:53, Bernd wrote: It seems you misunderstood me too. There are two types of comments, the ones that explain the "how" or the "what" and the ones that explain the "why". "why" might not be the best word to describe. "purpose" may be closer, but doesn't matter. The "what" and

Re: [Lazarus] comments in source [Re: "show declaration hints" has more power in it than is really used]

2010-07-24 Thread Bernd
Also I have noticed that in many of the rare occasions where a class has a documentation like here: { TSynTextFoldAVLTree Nodes in the tree cover the folded lines only the cfCollapsed line at the start of a fold, is *not* part of a node. RemoveFoldForline has special precaution for t

Re: [Lazarus] tail on windows

2010-07-24 Thread Mattias Gaertner
On Mon, 19 Jul 2010 23:07:40 +0400 dmitry boyarintsev wrote: > On Mon, Jul 19, 2010 at 10:09 PM, Mattias Gaertner > wrote: > > Can you create a new patch? > > Here you go. Has just tested it on Vista64. Thanks. Applied in 26809. Mattias -- ___ Laza

Re: [Lazarus] Lazarus Resources (2)

2010-07-24 Thread Mattias Gaertner
On Tue, 20 Jul 2010 18:24:36 +0100 Josh Lee wrote: > Hello people. > I've managed to compile a Lazarus resource, test.lrs. It has cmd.exe in it (I > think!), and I'm trying to make a (useless) stand-alone program that takes > the cmd.exe from the resource and places it in C:\. > I've tried, a

Re: [Lazarus] Tutorial Compiling/installing FPC and Lazarus from Sources of SVN

2010-07-24 Thread Marco van de Voort
On Fri, Jul 23, 2010 at 11:13:19AM -0300, Marcos Douglas wrote: > > I didn't find a starting compiler for windows, but for linux, darwin > > and freebsd you can get ppcxxx from > > ftp://ftp.freepascal.org/pub/fpc/dist/2.4.0/bootstrap/ > > As Win too! Look > ftp://ftp.freepascal.org/pub/fpc/dist/2

Re: [Lazarus] comments in source [Re: "show declaration hints" has more power in it than is really used]

2010-07-24 Thread Bernd
2010/7/23 Martin : > Example: > > I may declare a class: > > TAVLTreeNode = class >  FLeft, FRight, FParent: TAvlNode; >  FBalance: Integer; > end; > > - Now if the reader knows what an AVL tree is, there is no comment needed, > it is perfectly self-explaining. > - If the reader doesn't know, but d

Re: [Lazarus] Build and macros

2010-07-24 Thread Mattias Gaertner
On Sat, 24 Jul 2010 13:11:31 +0200 Kjow wrote: > Hi all, > > with macros > (http://wiki.lazarus.freepascal.org/IDE_Macros_in_paths_and_filenames) > I see that I can build project binary with the target CPU. > > e.g. putting in "Target file name" this: MyProject-$(TargetCPU) > the output binary

[Lazarus] Build and macros

2010-07-24 Thread Kjow
Hi all, with macros (http://wiki.lazarus.freepascal.org/IDE_Macros_in_paths_and_filenames) I see that I can build project binary with the target CPU. e.g. putting in "Target file name" this: MyProject-$(TargetCPU) the output binary will be something like this: MyProject-arm or MyProject-i386 Bu

[Lazarus] Lazarus Resources

2010-07-24 Thread Josh Lee
I know these look like spam, I'm not that familiar with mailing lists... Could someone please give me a description and documented code explaining on how Lazarus Resources works and how to use it to make a stand alone .exe that transfers files to the hard drive? I really need to know, as I wish t