Re: [Lazarus] Code completion question

2016-01-26 Thread Michael Van Canneyt
On Tue, 26 Jan 2016, Graeme Geldenhuys wrote: On 2016-01-26 22:39, Mattias Gaertner wrote: Maybe it would be better to show them in the completion box with some warning marker. +1 for that idea. + ! Michael. -- ___ Lazarus mailing list

[Lazarus] Treeview example(s) needed

2016-01-26 Thread Joe Shepherd
Hi   I'm having trouble with TTreeView - no doubt due to ignorance. Does anyone have simple example(s) of builing and using a treeview?   Here's the sort of ignorance I confess to:   I have tv: TTreeview on a form, and code that adds some nodes:          newnode := tv.items.addchild(nil, 'A

Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-26 Thread silvioprog
On Tue, Jan 26, 2016 at 10:51 PM, Fabrício Srdic wrote: > Em 26/01/2016 23:23, "silvioprog" escreveu: > > > > On Tue, Jan 26, 2016 at 1:01 PM, Fabrício Srdic < > fabricio.sr...@gmail.com> wrote: > >> > >> Em 26/01/2016 11:30, "silvioprog" escreveu > >> Why i can't make an Android app using Laza

Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-26 Thread silvioprog
On Tue, Jan 26, 2016 at 9:54 PM, Marc Santhoff wrote: > On Mo, 2016-01-25 at 22:09 -0300, silvioprog wrote: > > > But, unfortunatelly, even with this pros, Pascal programmers avoid to use > > external libraries, that's a real fact. :-/ > > Speaking of the core team, you may be right. And speaking

Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-26 Thread Fabrício Srdic
Em 26/01/2016 23:23, "silvioprog" escreveu: > > On Tue, Jan 26, 2016 at 1:01 PM, Fabrício Srdic wrote: >> >> Em 26/01/2016 11:30, "silvioprog" escreveu >> Why i can't make an Android app using Lazarus, as the free pascal compiler provides support to it? Is it because there is no GTK to android?

Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-26 Thread silvioprog
On Tue, Jan 26, 2016 at 1:01 PM, Fabrício Srdic wrote: > Em 26/01/2016 11:30, "silvioprog" escreveu: > > > > As I said: "... But the one of the basic steps before chosing a library > (from any language) is read its specification, and know if it provides the > needed features, works in the expect

Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-26 Thread Marc Santhoff
On Mo, 2016-01-25 at 22:09 -0300, silvioprog wrote: > But, unfortunatelly, even with this pros, Pascal programmers avoid to use > external libraries, that's a real fact. :-/ Speaking of the core team, you may be right. And speaking about people writing cross plattform programm it presumably is a

Re: [Lazarus] Code completion question

2016-01-26 Thread Ondrej Pokorny
On 26.01.2016 21:50, Michael Van Canneyt wrote: Just curious: if I ask code completion in a class TMyClass = Class(TMYParentClass) Protected Procedure Valid| Fixed this one as well in r51426. The methods are shown in gray. Good night :) Ondrej -- ___

Re: [Lazarus] Code completion question

2016-01-26 Thread Ondrej Pokorny
On 26.01.2016 21:50, Michael Van Canneyt wrote: Just curious: if I ask code completion in a class TMyClass = Class(TMYParentClass) Protected Procedure Valid| If you complete it like this: TMyClass = Class(TMYParentClass) Protected Valid| CodeTools list it (and also add it correctly as "

Re: [Lazarus] Code completion question

2016-01-26 Thread Ondrej Pokorny
On 26.01.2016 23:39, Ondrej Pokorny wrote: + What bugs me even more is that protected methods are not available with the inherited keyword: procedure TMyClass2.Foo; begin inherited Proc // CodeTools do not list Proc that is in protected section of parent class from different unit. It works w

Re: [Lazarus] Code completion question

2016-01-26 Thread Graeme Geldenhuys
On 2016-01-26 22:39, Mattias Gaertner wrote: > Maybe it would be better to show them in the completion box with > some warning marker. +1 for that idea. Regards, - Graeme - My public PGP key: http://tinyurl.com/graeme-pgp -- ___ Lazarus mailing l

Re: [Lazarus] Code completion question

2016-01-26 Thread Ondrej Pokorny
On 26.01.2016 23:12, Vojtěch Čihák wrote: It is a bug? I know this behaviour for a long time and I always believed it is by design. I also came across it and it confused me for a second as well. Then I realized my mistake. But anyway, you can do it and the code compiles, so CodeTools should

Re: [Lazarus] Code completion question

2016-01-26 Thread Mattias Gaertner
On Tue, 26 Jan 2016 23:12:51 +0100 Vojtěch Čihák wrote: > Hi, >   > It is a bug? I know this behaviour for a long time and I always believed it > is by design. FPC gives a warning, so it is bad coding, but it is not forbidden. Maybe it would be better to show them in the completion box with so

Re: [Lazarus] Code completion question

2016-01-26 Thread Vojtěch Čihák
Hi,   It is a bug? I know this behaviour for a long time and I always believed it is by design.   V. __ Od: Mattias Gaertner Komu: Datum: 26.01.2016 22:46 Předmět: Re: [Lazarus] Code completion question On Tue, 26 Jan 2016 21:50:43

Re: [Lazarus] Code completion question

2016-01-26 Thread Mattias Gaertner
On Tue, 26 Jan 2016 21:50:43 +0100 (CET) Michael Van Canneyt wrote: > [...] > do the codetools refuse to show identifiers with less restricted visibility ? > (so in a protected section, I will not get public) > > Is this intentional ? > > I can imagine it is confusing to the beginner and experi

[Lazarus] Code completion question

2016-01-26 Thread Michael Van Canneyt
Hi, Just curious: if I ask code completion in a class TMyClass = Class(TMYParentClass) Protected Procedure Valid| Cursor is at |. I ask the codetools to complete in order to override a method in the parent class. It doesn't show a procedure that it I KNOW is present in the parent class.

Re: [Lazarus] Bug 28281

2016-01-26 Thread Michael Van Canneyt
On Tue, 26 Jan 2016, Michael Van Canneyt wrote: I have no idea, how the project inspector could influence the external tools. I hope it is not some memory corruption. Maybe the problem is keyboard (keyup/keydown/onkey events) related. Keydown caught in project inspector, transferred to mai

[Lazarus] CodeTools bug

2016-01-26 Thread Aradeonas
Hi, It seems CodeTools has a problem with packages that are in address with "#" in the directory name at least in Windows. It cant find package units and do auto complete but program will compile and this problem will happen for only packages and units that are in a folder like this "c:\test\#dir\

Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-26 Thread Fabrício Srdic
Em 26/01/2016 11:30, "silvioprog" escreveu: > > As I said: "... But the one of the basic steps before chosing a library (from any language) is read its specification, and know if it provides the needed features, works in the expected SOs, and provides a good documentation with a stable support. I

Re: [Lazarus] Bug 28281

2016-01-26 Thread Michael Van Canneyt
On Tue, 26 Jan 2016, Mattias Gaertner wrote: On Mon, 25 Jan 2016 21:37:16 +0100 (CET) Michael Van Canneyt wrote: Hi, Any news on bug 29281 ? http://bugs.freepascal.org/view.php?id=28281 I can add the following extra info: if compilation fails, it quite often never detects this and fail

Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-26 Thread silvioprog
On Tue, Jan 26, 2016 at 9:17 AM, Fabrício Srdic wrote: > 2016-01-25 23:09 GMT-02:00 silvioprog : > >> But, unfortunatelly, even with this pros, Pascal programmers avoid to use >> external libraries, that's a real fact. :-/ >> >> > This issue is not restricted to Pascal programmers, this problem i

Re: [Lazarus] Bug 28281

2016-01-26 Thread Mattias Gaertner
On Mon, 25 Jan 2016 21:37:16 +0100 (CET) Michael Van Canneyt wrote: > > Hi, > > Any news on bug 29281 ? > > http://bugs.freepascal.org/view.php?id=28281 > > I can add the following extra info: > > if compilation fails, it quite often never detects this and fails to show the > compiler error

Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-26 Thread Mattias Gaertner
On Tue, 26 Jan 2016 10:17:36 -0200 Fabrício Srdic wrote: >[...]Three > months after, your project's requirements changes. The new requirement is > that your code shall run on Linux. However, that external library runs only > on windows. So, your code are constrained by this limitation. Now, you n

Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-26 Thread Fabrício Srdic
2016-01-25 23:09 GMT-02:00 silvioprog : > But, unfortunatelly, even with this pros, Pascal programmers avoid to use > external libraries, that's a real fact. :-/ > > This issue is not restricted to Pascal programmers, this problem is inherent in any development platform. The root problem of using

Re: [Lazarus] Printing on Raspberry Pi

2016-01-26 Thread Koenraad Lelong
Op 29-10-15 om 16:24 schreef Koenraad Lelong: Hi, I'm trying to print a lazreport on a Raspberry Pi2. It's not working, I get : Bus Error or misaligned data access Press OK to ignore ... Pressing OK does nothing. Any suggestions to solve this ? I also tried the example from http://wiki.lazaru