Re: [Lazarus] Rescan FPC sources crashes Lazarus

2011-03-26 Thread Graeme Geldenhuys
On 25 March 2011 23:55, Mattias Gaertner nc-gaertnma@ wrote: If you don't know the purpose of a variable, why change it? Well you know programmers, especially 'newbie' ones... They sometimes do just as dumb things as end-users. ;-) The documentation and comment do not say that you should

Re: [Lazarus] Rescan FPC sources crashes Lazarus

2011-03-26 Thread Graeme Geldenhuys
On 25 March 2011 23:36, Sven Barth pascaldra...@googlemail.com wrote: You know the answer, Graeme... But I agree that this could be done better. Keep the IsMultiThread variable for Delphi compatibility, And if Delphi jumps off a cliff so will all FPC developers? Well, I will NOT. While we

Re: [Lazarus] Rescan FPC sources crashes Lazarus

2011-03-26 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb: [fpc] should rather use some singleton class with a read-only property, A class is not required, FPC supports unit-level properties as well :-) DoDi -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] TVirtualStringView (new trunk) and issues with items display

2011-03-26 Thread Hans-Peter Diettrich
ik schrieb: I have created the demo of TVirtualStringView https://github.com/ik5/TVirtualTreeView-examples/tree/master/src/demo1 from the wiki (with few changes), and when I compile it, it just display the first char of the caption of each item, rather then the whole string. I remember

Re: [Lazarus] Rescan FPC sources crashes Lazarus

2011-03-26 Thread Graeme Geldenhuys
On 26 March 2011 11:15, Hans-Peter Diettrich DrDiettrich1@ wrote: A class is not required, FPC supports unit-level properties as well :-) True, though that is a language feature I have never seen used by anybody in the wild. :) -- Regards,   - Graeme -

Re: [Lazarus] Rescan FPC sources crashes Lazarus

2011-03-26 Thread Mattias Gaertner
On Sat, 26 Mar 2011 11:06:48 +0200 Graeme Geldenhuys graemeg.li...@gmail.com wrote: On 25 March 2011 23:55, Mattias Gaertner nc-gaertnma@ wrote: If you don't know the purpose of a variable, why change it? Well you know programmers, especially 'newbie' ones... They sometimes do just

Re: [Lazarus] Rescan FPC sources crashes Lazarus

2011-03-26 Thread patspiper
On 03/26/2011 12:28 PM, Mattias Gaertner wrote: On Sat, 26 Mar 2011 11:06:48 +0200 Graeme Geldenhuysgraemeg.li...@gmail.com wrote: On 25 March 2011 23:55, Mattias Gaertnernc-gaertnma@ wrote: If you don't know the purpose of a variable, why change it? Well you know programmers,

Re: [Lazarus] Rescan FPC sources crashes Lazarus

2011-03-26 Thread Mattias Gaertner
On Sat, 26 Mar 2011 12:43:58 +0200 patspiper patspi...@gmail.com wrote: [...] AFAIK when writing your own thread manager you must set it. Still no excuse for a global variable. Simply registering that thread manager with some RTL class could automatically return True if the function

Re: [Lazarus] Rescan FPC sources crashes Lazarus

2011-03-26 Thread patspiper
On 03/26/2011 12:55 PM, Mattias Gaertner wrote: On Sat, 26 Mar 2011 12:43:58 +0200 patspiperpatspi...@gmail.com wrote: [...] AFAIK when writing your own thread manager you must set it. Still no excuse for a global variable. Simply registering that thread manager with some RTL class could

Re: [Lazarus] Rescan FPC sources crashes Lazarus

2011-03-26 Thread Graeme Geldenhuys
On 26 March 2011 12:55, Mattias Gaertner nc-gaertnma@net wrote: The joke was to use a function. And my point was that anything (not necessarily a function) is better that a global read-write variable that could cause something as serious an an application crash. A read only property

Re: [Lazarus] Rescan FPC sources crashes Lazarus

2011-03-26 Thread Graeme Geldenhuys
On 26 March 2011 12:43, patspiper wrote: A compile time 'read only' error would have saved me a lot of grief. And not to mention that debugging global variables are notoriously hard. Yes MSEide supports the ability to notify the developer if something like a global variable changes, but I

Re: [Lazarus] Rescan FPC sources crashes Lazarus

2011-03-26 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb: On 26 March 2011 11:15, Hans-Peter Diettrich DrDiettrich1@ wrote: A class is not required, FPC supports unit-level properties as well :-) True, though that is a language feature I have never seen used by anybody in the wild. :) I used it several times, just

[Lazarus] Handle a windows message by IDE

2011-03-26 Thread t . wieckowski
Does Lazarus can handle windows messages ? I think about feature request for detect shut down windows. Lazarus should handle WM_QUERYENDSESSION or WM_ENDSESSION when Windows shuts down and ask for save project files. Such a non cross-platform feature is possible at all ? best regards tomek --

[Lazarus] PascalScript

2011-03-26 Thread Juha (gmail)
Hi How to get PascalScript for Lazarus on Linux? I have read this: http://wiki.lazarus.freepascal.org/Pascal_Script but didn't manage to get it. Didn't find it in CCR. REMObjects offers a Windows .exe or .NET version. Juha -- ___ Lazarus mailing

[Lazarus] [OT] About licences

2011-03-26 Thread Kjow
Hi all, I need some help to understand the licences world, probably due my not English origins I have some difficulties to understand the terms of various licences and their relating limitations. Do you know a simple and clear site that explain all terms in few words? e.g. (these are only

Re: [Lazarus] FPC and Lazarus on ARM

2011-03-26 Thread Marco van de Voort
On Fri, Mar 25, 2011 at 11:21:27PM +, Mark Morgan Lloyd wrote: Everybody knows that benchmarks are odious, but I've got a handy torture test that I've run on a variety of systems from a 16-way Sun down to a Slug. Usefully, this can be used both to get a time to completion of the

Re: [Lazarus] [OT] About licences

2011-03-26 Thread Marco van de Voort
On Sat, Mar 26, 2011 at 02:43:45PM +0100, Kjow wrote: I need some help to understand the licences world, probably due my not English origins I have some difficulties to understand the terms of various licences and their relating limitations. Do you know a simple and clear site that explain all

Re: [Lazarus] Rescan FPC sources crashes Lazarus

2011-03-26 Thread Marco van de Voort
On Fri, Mar 25, 2011 at 11:19:48PM +0200, Graeme Geldenhuys wrote: In all fairness, how are all developers supposed to know that? Isn't there a better way that FPC could hide such functionality (not allowing a developer to set a RTL controlled variable they are not supposed do). That should

Re: [Lazarus] Rescan FPC sources crashes Lazarus

2011-03-26 Thread Marco van de Voort
On Sat, Mar 26, 2011 at 11:12:18AM +0200, Graeme Geldenhuys wrote: You know the answer, Graeme... But I agree that this could be done better. Keep the IsMultiThread variable for Delphi compatibility, And if Delphi jumps off a cliff so will all FPC developers? Well, I will NOT.

Re: [Lazarus] [OT] About licences

2011-03-26 Thread de_jean_7777
On 26.3.2011 15:14, Marco van de Voort wrote: The only problem is designtime code. This links into the IDE, and thus touched the GPL. However, the GPL only activates on distribution, so unless you plan to release Lazarus with MPL stuff preinstalled, there is no problem. I don't think this is

Re: [Lazarus] Rescan FPC sources crashes Lazarus

2011-03-26 Thread Marco van de Voort
On Sat, Mar 26, 2011 at 11:55:28AM +0100, Mattias Gaertner wrote: I have to partially agree with Graeme on this point, especially that this package was ported from Delphi. The symptoms were on the surface unrelated to the cause. I had to debug for quite a while until I stumbled upon the

Re: [Lazarus] Rescan FPC sources crashes Lazarus

2011-03-26 Thread Marco van de Voort
On Sat, Mar 26, 2011 at 11:36:26AM +0200, Graeme Geldenhuys wrote: A class is not required, FPC supports unit-level properties as well :-) True, though that is a language feature I have never seen used by anybody in the wild. :) They apparantly you don't use unices. Since errno and cerrno

Re: [Lazarus] [OT] About licences

2011-03-26 Thread Marco van de Voort
On Sat, Mar 26, 2011 at 03:28:56PM +0100, de_jean_ wrote: On 26.3.2011 15:14, Marco van de Voort wrote: The only problem is designtime code. This links into the IDE, and thus touched the GPL. However, the GPL only activates on distribution, so unless you plan to release Lazarus with MPL

Re: [Lazarus] Rescan FPC sources crashes Lazarus

2011-03-26 Thread Florian Klaempfl
Am 26.03.2011 10:15, schrieb Hans-Peter Diettrich: Graeme Geldenhuys schrieb: [fpc] should rather use some singleton class with a read-only property, A class is not required, FPC supports unit-level properties as well :-) True, but the issue with them is: you cannot use them to create a

Re: [Lazarus] Handle a windows message by IDE

2011-03-26 Thread Paul Ishenin
26.03.2011 18:57, t.wieckow...@gmail.com wrote: Does Lazarus can handle windows messages ? I think about feature request for detect shut down windows. Lazarus should handle WM_QUERYENDSESSION or WM_ENDSESSION when Windows shuts down and ask for save project files. Such a non cross-platform

Re: [Lazarus] Icon transparency

2011-03-26 Thread Zaher Dirkey
On Sat, Mar 26, 2011 at 12:54 AM, patspiper patspi...@gmail.com wrote: Hi, Component palette icons should use as transparent color the lower left pixel. While the component palette honors this, the icon loses its transparency when the component is placed on a form (IDE design mode). The

Re: [Lazarus] Icon transparency

2011-03-26 Thread patspiper
On 03/26/2011 06:04 PM, Zaher Dirkey wrote: On Sat, Mar 26, 2011 at 12:54 AM, patspiper patspi...@gmail.com mailto:patspi...@gmail.com wrote: Hi, Component palette icons should use as transparent color the lower left pixel. While the component palette honors this, the icon

Re: [Lazarus] Handle a windows message by IDE

2011-03-26 Thread t . wieckowski
2011/3/26 Paul Ishenin webpi...@mail.ru: Look at TApplication.OnEndSession(). This feature for Lazarus itself. That's what I mean ;) best regards tomek -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Rescan FPC sources crashes Lazarus

2011-03-26 Thread Graeme Geldenhuys
On 26 March 2011 16:22, Marco van de Voort marcov@*** wrote: We will probably jump of the cliff. Wow, you are really sad! The trouble is that you always tend to focus on the tiniest little detail And setting a value of a global variable allows an application to crash... Oh that's

Re: [Lazarus] Rescan FPC sources crashes Lazarus

2011-03-26 Thread Hans-Peter Diettrich
Florian Klaempfl schrieb: A class is not required, FPC supports unit-level properties as well :-) True, but the issue with them is: you cannot use them to create a fool proof read-only property without using a function because there is no unit level encapsulation aka private/protected on

Re: [Lazarus] Lazarus 0.9.30 Linux Mint 10 installation fails... Build Lazarus gives Error...

2011-03-26 Thread Mattias Gaertner
On Sat, 26 Mar 2011 15:58:42 +1100 Peter Williams pewilliams2...@live.com wrote: Hi All, Today I downloaded these 2 files: lazarus-0.9.30-i386.deb.tar fpc-2.4.2-0.i386.deb.tar and after unarchiving them I did a sudo dpkg -i * Selecting Applications / Programming / Lazarus (0.9.30) gives:

[Lazarus] Codetools confused?

2011-03-26 Thread Bart
Hi, I'm using Lazarus 0.9.31 r29641 (Win9x). My CodeTools seem confused. I have a TPageControl (name = NoteBook) on my form. When I type NoteBook. (in the source editor) and then wait a while (after typing the dot), CodeTools pops up and amogst others suggest BorderStyle. However TPageControl

Re: [Lazarus] Lazarus 0.9.30 Linux Mint 10 installation fails... Build Lazarus gives Error...

2011-03-26 Thread Peter Williams
Hi All, From: pewilliams2...@live.com To: laza...@lazarus.freepascal.org Date: Sat, 26 Mar 2011 15:58:42 +1100 Subject: [Lazarus] Lazarus 0.9.30 Linux Mint 10 installation fails... Build Lazarus gives Error... Hi All, Today I downloaded these 2 files: lazarus-0.9.30-i386.deb.tar

Re: [Lazarus] Codetools confused?

2011-03-26 Thread Mattias Gaertner
On Sat, 26 Mar 2011 19:58:49 +0100 Bart bartjun...@gmail.com wrote: Hi, I'm using Lazarus 0.9.31 r29641 (Win9x). My CodeTools seem confused. I have a TPageControl (name = NoteBook) on my form. When I type NoteBook. (in the source editor) and then wait a while (after typing the dot),

Re: [Lazarus] Rescan FPC sources crashes Lazarus

2011-03-26 Thread Florian Klämpfl
Am 26.03.2011 19:36, schrieb Hans-Peter Diettrich: Making IsMultiThreaded a function is a no-no: it is used in really speed critical code paths and using an inline function neither because it's used mostly in assembler code Simple solution: the variable continues to exist, under a different

Re: [Lazarus] Setting a cursor from resource

2011-03-26 Thread Zaher Dirkey
On Fri, Mar 25, 2011 at 10:59 AM, patspiper patspi...@gmail.com wrote: On 03/25/2011 09:34 AM, Paul Ishenin wrote: 24.03.2011 17:45, patspiper пишет: Since you mentioned FPC resources, can palette components (IDE) have their resources as FPC resources instead of using .lrs ones? No at

Re: [Lazarus] Setting a cursor from resource

2011-03-26 Thread Mattias Gaertner
On Sat, 26 Mar 2011 21:21:28 +0200 Zaher Dirkey parm...@gmail.com wrote: On Fri, Mar 25, 2011 at 10:59 AM, patspiper patspi...@gmail.com wrote: On 03/25/2011 09:34 AM, Paul Ishenin wrote: 24.03.2011 17:45, patspiper пишет: Since you mentioned FPC resources, can palette components

[Lazarus] Nice error in IDE - missing form resource

2011-03-26 Thread Michael Van Canneyt
Hi, When I click 'check consistency' in the Key mappings page of the options dialog, I get a nice error that the form's resources cannot be found. See attached screenshot. Reproducable with today's lazarus. Michael.attachment: error.png-- ___

[Lazarus] Bug in find-in-files and replace :(

2011-03-26 Thread Michael Van Canneyt
Hi, I have a bug in Find in files: Search Excercise and replace with Exercise If you have TSomeExcercise = Class(TExcercise) Then you'll end up with TSomeExercise = Class(Exercisee) i.e. the second occurrence is replaced, but the placement is offset by 1 character, presumably because

Re: [Lazarus] Rescan FPC sources crashes Lazarus

2011-03-26 Thread Sven Barth
On 26.03.2011 20:07, Florian Klämpfl wrote: Am 26.03.2011 19:36, schrieb Hans-Peter Diettrich: Making IsMultiThreaded a function is a no-no: it is used in really speed critical code paths and using an inline function neither because it's used mostly in assembler code Simple solution: the

Re: [Lazarus] Nice error in IDE - missing form resource

2011-03-26 Thread Juha (gmail)
Michael Van Canneyt kirjoitti lauantai, 26. maaliskuuta 2011 21:43:19: When I click 'check consistency' in the Key mappings page of the options dialog, I get a nice error that the form's resources cannot be found. r30021, I fixed it like this: constructor TKeyMapErrorsForm.Create(AnOwner:

Re: [Lazarus] Nice error in IDE - missing form resource

2011-03-26 Thread Mattias Gaertner
On Sat, 26 Mar 2011 22:47:30 +0200 Juha (gmail) juha.mannine...@gmail.com wrote: Michael Van Canneyt kirjoitti lauantai, 26. maaliskuuta 2011 21:43:19: When I click 'check consistency' in the Key mappings page of the options dialog, I get a nice error that the form's resources cannot be

Re: [Lazarus] FPC and Lazarus on ARM

2011-03-26 Thread Tobias Giesen
Hello, many thanks for all the help! If anybody is looking for an ARM device, the Toshiba AC100 is pretty cool. Around 200 EUR with Cortex A9 dual core and 512 MB RAM. It is a netbook computer and has HDMI as well as USB. Mine has an 8GB SSD. It comes with Android 2.1 (a 2.2 update is

Re: [Lazarus] Setting a cursor from resource

2011-03-26 Thread patspiper
On 03/26/2011 09:26 PM, Mattias Gaertner wrote: On Sat, 26 Mar 2011 21:21:28 +0200 Zaher Dirkeyparm...@gmail.com wrote: On Fri, Mar 25, 2011 at 10:59 AM, patspiperpatspi...@gmail.com wrote: On 03/25/2011 09:34 AM, Paul Ishenin wrote: 24.03.2011 17:45, patspiper пишет: Since you

Re: [Lazarus] FPC and Lazarus on ARM

2011-03-26 Thread Den Jean
On Saturday 26 March 2011 15:05:49 Marco van de Voort wrote: It would be interesting to see how the efika fares. (also 25min I'd expect, Google translate if your French is rusty. http://www.blogarm.net/test-du-genesi-efikamx-smartbook-par-pipou24/

Re: [Lazarus] Rescan FPC sources crashes Lazarus

2011-03-26 Thread Sven Barth
On 26.03.2011 22:01, Mattias Gaertner wrote: On Sat, 26 Mar 2011 21:47:24 +0100 Sven Barthpascaldra...@googlemail.com wrote: On 26.03.2011 20:07, Florian Klämpfl wrote: Am 26.03.2011 19:36, schrieb Hans-Peter Diettrich: Making IsMultiThreaded a function is a no-no: it is used in really

Re: [Lazarus] Rescan FPC sources crashes Lazarus

2011-03-26 Thread Hans-Peter Diettrich
Florian Klämpfl schrieb: Simple solution: the variable continues to exist, under a different name. The property only implements Delphi compatibility :-) Possible, but I fear this is also only half of a solution: a property cannot replace a variable, see var parameter problem or assembler

Re: [Lazarus] Codetools confused?

2011-03-26 Thread Bart
On 3/26/11, Mattias Gaertner nc-gaert...@netcologne.de wrote: Please provide a complete example. See attached screenshot and unit I was working on. ATM I cannot reproduce the popup after a dot in a text constant, I'll make another screenshot when it happens again (and I rember to do so). Bart

Re: [Lazarus] Icon transparency

2011-03-26 Thread Paul Ishenin
26.03.2011 23:12, patspiper wrote: As i know component palette icons is png image with alpha channels . Where can I find an example of such an icon with the corresponding FPC resource file (res or dcr)? What should it be marked in the resource file? BITMAP? ICON? Only RT_BITMAP resources can

Re: [Lazarus] Icon transparency

2011-03-26 Thread patspiper
On 03/27/2011 07:30 AM, Paul Ishenin wrote: 26.03.2011 23:12, patspiper wrote: As i know component palette icons is png image with alpha channels . Where can I find an example of such an icon with the corresponding FPC resource file (res or dcr)? What should it be marked in the resource