Re: [Lazarus] Change type of object in form

2013-03-14 Thread Jürgen Hestermann
Am 2013-03-13 18:58, schrieb Juha Manninen: For me it works correctly. I just tested. Shure? All anchor references in the changed object were retained but references in other (not changed) objects that used the changed object were gone. Maybe I find some time to investigate more in it but as

Re: [Lazarus] WinINet STDCALL callback crash

2013-03-14 Thread Ludo Brands
On 03/14/2013 12:09 AM, Benito van der Zander wrote: However, I still get frequent, random segfaults when calling Windows functions. My current attempt, as simple as I can make it, is below. About 50% of the time, the first command in the execute procedure works fine; the other times it

Re: [Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-14 Thread Mattias Gaertner
On Wed, 13 Mar 2013 17:52:59 +0100 Vincent Snijders vincent.snijd...@gmail.com wrote: [...] What fixes branch are you talking about? FPC 2.6 fixes or Lazarus 1.0 fixes? In the next release we should mention that it uses a newer compiler, which includes many bug fixes, but contains a few

Re: [Lazarus] Change type of object in form

2013-03-14 Thread Juha Manninen
On Thu, Mar 14, 2013 at 8:14 AM, Jürgen Hestermann juergen.hesterm...@gmx.de wrote: Shure? All anchor references in the changed object were retained but references in other (not changed) objects that used the changed object were gone. You are right. I was testing it the other way around. It is

Re: [Lazarus] Change type of object in form

2013-03-14 Thread Juha Manninen
The workaround is to manually edit also the .lfm file. Changing the same type in both .pas and .lfm files works, although it may complain about non-existent properties the first time you open it. Juha -- ___ Lazarus mailing list

Re: [Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-14 Thread Sven Barth
Am 14.03.2013 09:28, schrieb Mattias Gaertner: On Wed, 13 Mar 2013 17:52:59 +0100 Vincent Snijders vincent.snijd...@gmail.com wrote: [...] What fixes branch are you talking about? FPC 2.6 fixes or Lazarus 1.0 fixes? In the next release we should mention that it uses a newer compiler, which

Re: [Lazarus] Change type of object in form

2013-03-14 Thread Mattias Gaertner
On Thu, 14 Mar 2013 10:40:31 +0200 Juha Manninen juha.mannine...@gmail.com wrote: The workaround is to manually edit also the .lfm file. Changing the same type in both .pas and .lfm files works, although it may complain about non-existent properties the first time you open it. Keeping

Re: [Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-14 Thread Mattias Gaertner
On Thu, 14 Mar 2013 09:41:18 +0100 Sven Barth pascaldra...@googlemail.com wrote: Am 14.03.2013 09:28, schrieb Mattias Gaertner: On Wed, 13 Mar 2013 17:52:59 +0100 Vincent Snijders vincent.snijd...@gmail.com wrote: [...] What fixes branch are you talking about? FPC 2.6 fixes or Lazarus

Re: [Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-14 Thread Lukasz Sokol
On 13/03/2013 17:27, Graeme Geldenhuys wrote: Anyway, you have to change your code to the following. GCache.ClientHeight := GCache.ClientHeight - (DefaultRowHeight * FooterRowCount + 2); ... which is sort of more readable than Dec() construct Frank was using, (but it is IMOTMV only) ...

Re: [Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-14 Thread Graeme Geldenhuys
On 2013-03-14 11:11, Lukasz Sokol wrote: GCache.ClientHeight := GCache.ClientHeight - (DefaultRowHeight * FooterRowCount + 2); ... which is sort of more readable than Dec() construct Frank was using, (but it is IMOTMV only) ... [personal opinion] I agree fully. I don't really like

Re: [Lazarus] FPC / Lazarus ARM Embedded Debuging

2013-03-14 Thread Toan Pham
i think you'll be better off developing in C. Dont waste your time with lazarus/freepascal when it comes to embedded systems. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-14 Thread Frank Church
On 13 March 2013 17:20, Frank Church vfcli...@gmail.com wrote: On 13 March 2013 16:52, Vincent Snijders vincent.snijd...@gmail.com wrote: 2013/3/13 Frank Church vfcli...@gmail.com: Upgrading to Lazarus 1.0.7 with FPC 2.6.2 raised this error in a file I was compiling? What does it mean?

Re: [Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-14 Thread Frank Church
On 14 March 2013 14:08, Graeme Geldenhuys gra...@geldenhuys.co.uk wrote: On 2013-03-14 11:11, Lukasz Sokol wrote: GCache.ClientHeight := GCache.ClientHeight - (DefaultRowHeight * FooterRowCount + 2); ... which is sort of more readable than Dec() construct Frank was using, (but it is

Re: [Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-14 Thread Graeme Geldenhuys
On 2013-03-14 14:42, Frank Church wrote: domain better. For instance if you are iterating over an array where elements are referenced by an integers, +1, +2 etc give the impression your program involves number arithmetic, where as Next and Prev, or And why I created and use an Iterator unit,

Re: [Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-14 Thread Sven Barth
Am 14.03.2013 15:25, schrieb Frank Church: On 13 March 2013 17:20, Frank Church vfcli...@gmail.com wrote: On 13 March 2013 16:52, Vincent Snijders vincent.snijd...@gmail.com wrote: 2013/3/13 Frank Church vfcli...@gmail.com: Upgrading to Lazarus 1.0.7 with FPC 2.6.2 raised this error in a file

Re: [Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-14 Thread Sven Barth
Am 14.03.2013 12:11, schrieb Lukasz Sokol: I also believe the new FPC changes also means that with properties you also can't use the short *= += -= etc syntax, which I loved to use. The above would have been written as GCache.ClientHeight -= (DefaultRowHeight * FooterRowCount + 2); and

Re: [Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-14 Thread Lukasz Sokol
On 14/03/2013 16:35, Sven Barth wrote: Am 14.03.2013 12:11, schrieb Lukasz Sokol: I also believe the new FPC changes also means that with properties you also can't use the short *= += -= etc syntax, which I loved to use. The above would have been written as GCache.ClientHeight -=

Re: [Lazarus] Weird GTK TGroupBox bug

2013-03-14 Thread Giuliano Colla
Mattias Gaertner ha scritto: Please create a bug report with an example. I'm currently at a customer site. I'll do it as soon as I'm back home. Giuliano -- Giuliano Colla Whenever people agree with me, I always feel I must be wrong (O. Wilde) --

Re: [Lazarus] FPC / Lazarus ARM Embedded Debuging

2013-03-14 Thread Michael Ring
Totally disagree (when there is no need to meet a deadline) ;-) ;-) The implementation is still a little rough but growing knowledge by working low level has it's own appeal. And microcontrollers (at least when they are a hobby) should be fun, and I do not want to ruin this fun with huge

Re: [Lazarus] FPC / Lazarus ARM Embedded Debuging

2013-03-14 Thread Curt Carpenter
I second that. On 3/14/2013 1:11 PM, Michael Ring wrote: Totally disagree (when there is no need to meet a deadline) ;-) ;-) The implementation is still a little rough but growing knowledge by working low level has it's own appeal. And microcontrollers (at least when they are a hobby)

[Lazarus] Doubts about target platform selection

2013-03-14 Thread Arí Ricardo Ody
I've used Lazarus 0.9.30 for 2 years to compile e execute a WinCE arm application. I been used the Project|Project Options|Code generation to control the target platform destination for generate the executable program. In the next week I installed Lazarus 1.0.6. I pretend to migrate my old

Re: [Lazarus] Doubts about target platform selection

2013-03-14 Thread Mattias Gaertner
On Thu, 14 Mar 2013 22:25:43 +0100 Arí Ricardo Ody ar...@gmx.com wrote: I've used Lazarus 0.9.30 for 2 years to compile e execute a WinCE arm application. I been used the Project|Project Options|Code generation to control the target platform destination for generate the executable program.

Re: [Lazarus] Menu key brings up wrong menu in source code editor

2013-03-14 Thread Sven Barth
On 13.03.2013 19:08, Frank Church wrote: On 13 March 2013 17:50, Sven Barth pascaldra...@googlemail.com wrote: Am 13.03.2013 18:43 schrieb Frank Church vfcli...@gmail.com: On 13 March 2013 17:22, Graeme Geldenhuys gra...@geldenhuys.co.uk wrote: On 2013-03-13 16:29, Juha Manninen wrote:

Re: [Lazarus] Menu key brings up wrong menu in source code editor

2013-03-14 Thread Henry Vermaak
On Thu, Mar 14, 2013 at 11:03:22PM +0100, Sven Barth wrote: On 13.03.2013 19:08, Frank Church wrote: https://forums.embarcadero.com/message.jspa?messageID=535727 Graeme was rather mild in that discussion, not the usual Graeme :). The Embarcadero guys were just laughable, not confidence

[Lazarus] IDE autocomplete nuisance

2013-03-14 Thread Xiangrong Fang
Hi All, While I use auto complete of a property, the IDE inserts := for me automatically, this is good, but how can I make it auto insert a SPACE before the colon so that I don't need to get back and insert it myself everytime? Thanks -- ___ Lazarus

[Lazarus] IDE: debug watch

2013-03-14 Thread Xiangrong Fang
Hi, While single-stepping. I would like to check some data with the Evaluate/Modify tool, for example view the count of a stringlist, I get: Type TSTRINGLIST = class has no component named COUNT. As a matter of fact, I get this kind of thing with most variables, except simple stuff like

Re: [Lazarus] IDE: debug watch

2013-03-14 Thread Martin
On 15/03/2013 02:14, Xiangrong Fang wrote: Hi, While single-stepping. I would like to check some data with the Evaluate/Modify tool, for example view the count of a stringlist, I get: Type TSTRINGLIST = class has no component named COUNT. As a matter of fact, I get this kind of thing with

Re: [Lazarus] IDE autocomplete nuisance

2013-03-14 Thread Martin
On 15/03/2013 02:42, stdreamer wrote: On 15/3/2013 3:56 πμ, Xiangrong Fang wrote: Hi All, While I use auto complete of a property, the IDE inserts := for me automatically, this is good, but how can I make it auto insert a SPACE before the colon so that I don't need to get back and insert it

Re: [Lazarus] IDE autocomplete nuisance

2013-03-14 Thread Xiangrong Fang
No: Check Insert Space in FRONT of Symbol That's the effect I want. thanks. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus