Re: [Lazarus] Change type of object in form

2013-03-13 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] Menu key brings up wrong menu in source code editor

2013-03-13 Thread Graeme Geldenhuys
On 2013-03-13 18:08, Frank Church wrote: > > Graeme was rather mild in that discussion, not the usual Graeme :). :) I'm learning to stir the pot less vigorously. Regards, - Graeme - -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.or

Re: [Lazarus] WinINet STDCALL callback crash

2013-03-13 Thread Benito van der Zander
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 causes a crash. An actually crash or just a segfault mess

Re: [Lazarus] Change type of object in form

2013-03-13 Thread Mark Morgan Lloyd
Juha Manninen wrote: On Wed, Mar 13, 2013 at 6:23 PM, Jürgen Hestermann wrote: How can this be changed (and why is the code change ignored)? The component is defined also in the .lfm file. The designer popup menu has "Change Class ..." which does it properly. It would be useful if some more

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

2013-03-13 Thread Frank Church
On 13 March 2013 17:50, Sven Barth wrote: > Am 13.03.2013 18:43 schrieb "Frank Church" : > > >> >> On 13 March 2013 17:22, Graeme Geldenhuys wrote: >> > On 2013-03-13 16:29, Juha Manninen wrote: >> >> >> >> It seems to be merged already. >> > >> > There you go Embarcadero... beat that for support

Re: [Lazarus] Change type of object in form

2013-03-13 Thread Juha Manninen
On Wed, Mar 13, 2013 at 7:12 PM, Jürgen Hestermann wrote: > Thanks, it works in that respect that it replaces the object type > but now all anchor references in other objects that used the replaced > object are gone and I have to set them again. > So in the end it's nearly the same as if I would h

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

2013-03-13 Thread Sven Barth
Am 13.03.2013 18:43 schrieb "Frank Church" : > > On 13 March 2013 17:22, Graeme Geldenhuys wrote: > > On 2013-03-13 16:29, Juha Manninen wrote: > >> > >> It seems to be merged already. > > > > There you go Embarcadero... beat that for support and speed! ;-) > > > > > > You have been spending time

[Lazarus] Differences between snapshot file names and version info in 'Help About'

2013-03-13 Thread Frank Church
I just installed a Lazarus snapshot with the file name - Lazarus-1.0.7-40531-fpc-2.6.2-20130312-win32.exe, dated 12 March, but when I check the version info in the Help | About it is Lazarus 1.0.7 r40502 FPC 2.6.2 i386-win32-win32/win64. Why the mismatch? Do they refer to different information? -

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

2013-03-13 Thread Frank Church
On 13 March 2013 17:22, Graeme Geldenhuys wrote: > On 2013-03-13 16:29, Juha Manninen wrote: >> >> It seems to be merged already. > > There you go Embarcadero... beat that for support and speed! ;-) > > You have been spending time in those Embarcadero forums haven't you? I know. The thread you we

Re: [Lazarus] Error on first compilation of a legacy WinCe project

2013-03-13 Thread Arí Ricardo Ody
Congratulations! You're right. My project for WinCe finally compiles ok. I can't test it exactly now, but it compiles. I have no reasons to suppose that it won't run ok. I would like to ask another favour. Can you prepare an organized list of what kind of customize list about what I must do to

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

2013-03-13 Thread Graeme Geldenhuys
On 2013-03-13 16:10, Frank Church wrote: > > Is the fixes branch supposed to introduce new functionality that can > break code that compiled in previous releases? For FPC yes that is the case. As Flavio stated. You can't pass a property as a var parameter any more. Annoying, but I the FPC devel h

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

2013-03-13 Thread Graeme Geldenhuys
On 2013-03-13 16:29, Juha Manninen wrote: > > It seems to be merged already. There you go Embarcadero... beat that for support and speed! ;-) Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ --

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

2013-03-13 Thread Frank Church
On 13 March 2013 16:52, Vincent Snijders wrote: > 2013/3/13 Frank Church : >> Upgrading to Lazarus 1.0.7 with FPC 2.6.2 raised this error in a file >> I was compiling? What does it mean? >> >> procedure TRxDBGrid.CheckNewCachedSizes(var AGCache: TGridDataCache); >> begin >> if (rdgFooterRows in

Re: [Lazarus] Change type of object in form

2013-03-13 Thread Jürgen Hestermann
Am 2013-03-13 17:34, schrieb Juha Manninen: The component is defined also in the .lfm file. The designer popup menu has "Change Class ..." which does it properly. Thanks, it works in that respect that it replaces the object type but now all anchor references in other objects that used the rep

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

2013-03-13 Thread Flávio Etrusco
On Wed, Mar 13, 2013 at 1:10 PM, Frank Church wrote: > Upgrading to Lazarus 1.0.7 with FPC 2.6.2 raised this error in a file > I was compiling? What does it mean? > > procedure TRxDBGrid.CheckNewCachedSizes(var AGCache: TGridDataCache); > begin > if (rdgFooterRows in OptionsRx) and (FooterRowCou

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

2013-03-13 Thread Vincent Snijders
2013/3/13 Frank Church : > Upgrading to Lazarus 1.0.7 with FPC 2.6.2 raised this error in a file > I was compiling? What does it mean? > > procedure TRxDBGrid.CheckNewCachedSizes(var AGCache: TGridDataCache); > begin > if (rdgFooterRows in OptionsRx) and (FooterRowCount > 0) then > Dec(GCache

Re: [Lazarus] WinINet STDCALL callback crash

2013-03-13 Thread matthew
Sven, Thank you very much for your threading example below. I have used the model several times to build threaded implementations. 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

Re: [Lazarus] Change type of object in form

2013-03-13 Thread Juha Manninen
On Wed, Mar 13, 2013 at 6:23 PM, Jürgen Hestermann wrote: > How can this be changed (and why is the code change ignored)? The component is defined also in the .lfm file. The designer popup menu has "Change Class ..." which does it properly. Juha -- __

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

2013-03-13 Thread Juha Manninen
On Wed, Mar 13, 2013 at 5:52 PM, Frank Church wrote: > I can see r40541 at the end of the 1.0.8 list. Does it mean it has > already been backported and will be present in the next snapshot, or > that it has been requested but not committed yet? It seems to be merged already. Juha -- ___

Re: [Lazarus] Error on first compilation of a legacy WinCe project

2013-03-13 Thread Antonio Fortuny
Le 13/03/2013 17:14, "Arí Ricardo Ody" a écrit : Hi Antonio See in the link below the screens you mentined. http://migre.me/dEONW Looking fort these screensI don't understand what you explanation. LCLWidgetType??? Look at screen "ide_build_modes_screen.jpg" You have the IDE macro values pa

[Lazarus] Change type of object in form

2013-03-13 Thread Jürgen Hestermann
In Lazarus I added objects of type "TFileNameEdit" to my form and placed it relativ to other elements with anchor docking. Now I wanted to replace these "TFileNameEdit" objects by "TDirectoryEdit" objects without deleting the original objects and adding new ones (and loosing all visual placement

[Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

2013-03-13 Thread Frank Church
Upgrading to Lazarus 1.0.7 with FPC 2.6.2 raised this error in a file I was compiling? What does it mean? procedure TRxDBGrid.CheckNewCachedSizes(var AGCache: TGridDataCache); begin if (rdgFooterRows in OptionsRx) and (FooterRowCount > 0) then Dec(GCache.ClientHeight, DefaultRowHeight * Foot

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

2013-03-13 Thread Frank Church
On 13 March 2013 15:21, Juha Manninen wrote: > On Wed, Mar 13, 2013 at 3:21 PM, Frank Church wrote: >> How do you tell which branch it goes into. Is it the 1.1 branch or 1.0.7? > > The revision number does not tell it by itself, but all changes go > first to trunk (1.1). > Later they may be backp

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

2013-03-13 Thread Juha Manninen
On Wed, Mar 13, 2013 at 3:21 PM, Frank Church wrote: > How do you tell which branch it goes into. Is it the 1.1 branch or 1.0.7? The revision number does not tell it by itself, but all changes go first to trunk (1.1). Later they may be backported to fixes branch (1.0.7). This page tells which rev

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

2013-03-13 Thread Graeme Geldenhuys
On 2013-03-13 13:21, Frank Church wrote: > How do you tell which branch it goes into. Is it the 1.1 branch or 1.0.7? The git mirror only tracks the "Trunk" branch, so it is committed in there. What the latest version number is of Trunk, I don't know. 1.1 I guess. Regards, - Graeme - -- fpG

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

2013-03-13 Thread Frank Church
On 13 March 2013 11:09, Graeme Geldenhuys wrote: > On 2013-03-13 11:04, Frank Church wrote: >> >> Which commit contains the fix? > > I presume the following: > > https://github.com/graemeg/lazarus/commit/75498c4d49904af7fa42f92db48b39d452fdb5c4 > > In svn terms... r40541 > > > Regards, > - Graem

[Lazarus] FPC / Lazarus ARM Embedded Debuging

2013-03-13 Thread Justin Smyth
Sorry of this cross posts but i wasn't sure where to send this question to. I am currently using a LPC 1343 Microprocessor board and i have recently purchased a ULINK2 debugging kit from china. i am aware that there are plans to allow debugging these boards using the UNLINK2, but it wasnt som

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

2013-03-13 Thread Graeme Geldenhuys
On 2013-03-13 11:04, Frank Church wrote: > > Which commit contains the fix? I presume the following: https://github.com/graemeg/lazarus/commit/75498c4d49904af7fa42f92db48b39d452fdb5c4 In svn terms... r40541 Regards, - Graeme - -- ___ Lazarus ma

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

2013-03-13 Thread Frank Church
On 13 March 2013 10:15, Mattias Gaertner wrote: > On Wed, 13 Mar 2013 08:41:26 + > Graeme Geldenhuys wrote: > >> Hi, >> >> If I'm in the editor and want to do some [limited] refactoring via >> CodeTools, I right click in the editor, select "Refactoring -> ..." >> >> Now if I want to do the sa

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

2013-03-13 Thread Graeme Geldenhuys
On 2013-03-13 10:15, Mattias Gaertner wrote: > > Confirmed and fixed for gtk2. Wow that was quick! Thanks for your excellent support. ps: Sorry I forgot to mention in my original post that I was using Lazarus IDE compiled with GTK2. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform G

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

2013-03-13 Thread Mattias Gaertner
On Wed, 13 Mar 2013 08:41:26 + Graeme Geldenhuys wrote: > Hi, > > If I'm in the editor and want to do some [limited] refactoring via > CodeTools, I right click in the editor, select "Refactoring -> ..." > > Now if I want to do the same via the keyboard, I press the Menu key, but > then the

Re: [Lazarus] Error on first compilation of a legacy WinCe project

2013-03-13 Thread Antonio Fortuny
I think Felipe is right: project options --> build modes check the one with Wince as target depending on IDE version (I use 1.1) click on IDE macro values and change LCLWidgetType to WinCE or on the build mode tab change LCLWidgetType to WinCE Le 13/03/2013 02:04, "Arí Ricardo Ody" a écrit : Hi

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

2013-03-13 Thread Graeme Geldenhuys
Hi, If I'm in the editor and want to do some [limited] refactoring via CodeTools, I right click in the editor, select "Refactoring -> ..." Now if I want to do the same via the keyboard, I press the Menu key, but then the popup menu for the tabsheets appear, not the popup menu of the source code e