Re: [Lazarus] Why is TCustomControl.Canvas public?

2011-07-14 Thread Felipe Monteiro de Carvalho
2011/7/14 Flávio Etrusco flavio.etru...@gmail.com: I guess you mean the current behavior is as it is for Delphi compatibility, right? I supposed so, but isn't it worth changing? No, there are many component sets which work with both the VCL and the LCL. Creating incompatibilities generates

[Lazarus] Latest Chanhes brakes the WinCE Notebook/Tab controls

2011-07-14 Thread Tommi Prami
Hello, I just updated the latest SVN truck version (Revision : 31692) Compiling of the our winCE project will fail with message : C:\lazarus\lcl\interfaces\wince\wincewscomctrls.pp(69,20) Error: There is no method in an ancestor class to be overridden: class

Re: [Lazarus] How would you organize build directories for different versions?

2011-07-14 Thread Frank Church
On 3 October 2010 11:41, Frank Church vfcli...@gmail.com wrote: On 29 September 2010 08:38, Mattias Gaertner nc-gaert...@netcologne.dewrote: On Wed, 29 Sep 2010 06:59:02 +0100 Frank Church vfcli...@gmail.com wrote: If you are using different Lazarus versions but with same components and

[Lazarus] -WG compiler parameter issue in cross-platform projects

2011-07-14 Thread Graeme Geldenhuys
Hi, Last night I switched to FPC 2.5.1 and tried to compile my project. I got a compiler error because I had the Windows GUI application (-WG compiler parameter) checked in my project setting. Lazarus being cross-platform and all, how am I supposed to handle this issue in a Lazarus project? Now

Re: [Lazarus] -WG compiler parameter issue in cross-platform projects

2011-07-14 Thread Graeme Geldenhuys
Searching the mailing list archives (which I should have done before I posted - sorry), I noticed that there was recently a discussion about this issue, but from that message thread I couldn't determine what the final solution was. BTW: I am using the latest stable Lazarus IDE 0.9.30. So from a

Re: [Lazarus] -WG compiler parameter issue in cross-platform projects

2011-07-14 Thread Felipe Monteiro de Carvalho
On Thu, Jul 14, 2011 at 10:24 AM, Graeme Geldenhuys graemeg.li...@gmail.com wrote: BTW: I am using the latest stable Lazarus IDE 0.9.30. So from a earlier message thread, it seems we can't use stable Lazarus IDE with FPC Trunk any more. One solution is creating a windows-only build mode, but

[Lazarus] View form as .lfm crashes Lazarus

2011-07-14 Thread Torsten Bonde Christiansen
Hi List. I was trying to check out my form with the .lfm view mode of lazarus, but there seems to be a bug. This is with the latest svn revision: Lazarus 0.9.31 r31694M FPC 2.4.2 x86_64-linux-gtk 2 Even very simple forms will make the program crash. This was the stack-track (+ debug info

Re: [Lazarus] How would you organize build directories for different versions?

2011-07-14 Thread Mattias Gaertner
    Frank Church vfcli...@gmail.com hat am 14. Juli 2011 um 10:11 geschrieben: [...] If you are using different Lazarus versions but with same components and packages, how would you organize separate build directories for the different versions, but same

Re: [Lazarus] RE : RE : Lazarus on Solaris 10

2011-07-14 Thread Mark Morgan Lloyd
Ludo Brands wrote: Can you update us on how this works on SPARC? If that goes well, I'll turn this into a wiki page. I think it would be worth knocking that into a wiki page, then when I've got time I can either write a parallel one for SPARC or annotate yours. Here it is :

Re: [Lazarus] View form as .lfm crashes Lazarus

2011-07-14 Thread Mattias Gaertner
    Torsten Bonde Christiansen t...@epidata.dk hat am 14. Juli 2011 um 10:45 geschrieben: Hi List. I was trying to check out my form with the .lfm view mode of lazarus, but there seems to be a bug. This is with the latest svn revision: Lazarus 0.9.31 r31694M FPC 2.4.2 x86_64-linux-gtk

Re: [Lazarus] How would you organize build directories for different versions?

2011-07-14 Thread Frank Church
2011/7/14 Mattias Gaertner nc-gaert...@netcologne.de ** Frank Church vfcli...@gmail.com hat am 14. Juli 2011 um 10:11 geschrieben: [...] If you are using different Lazarus versions but with same components and packages, how would you organize separate build directories for the

Re: [Lazarus] View form as .lfm crashes Lazarus

2011-07-14 Thread Torsten Bonde Christiansen
On 2011-07-14 11:06, Mattias Gaertner wrote: Torsten Bonde Christiansen t...@epidata.dk hat am 14. Juli 2011 um 10:45 geschrieben: Hi List. I was trying to check out my form with the .lfm view mode of lazarus, but there seems to be a bug. This is with the latest svn revision: Lazarus

[Lazarus] RE : RE : RE : Lazarus on Solaris 10

2011-07-14 Thread Ludo Brands
If I'm reading that properly you're using FPC 2.5.1, but what (numeric) version of Lazarus? First line says lazarus svn and fpc svn. Trunk lazarus is 0.9.31. Reason for using svn is the patch commited recently to solaris rtl and to get the non-commited alignment patches to Lazarus,

Re: [Lazarus] -WG compiler parameter issue in cross-platform projects

2011-07-14 Thread Graeme Geldenhuys
On 07/14/2011 10:32 AM, Felipe Monteiro de Carvalho wrote: One solution is creating a windows-only build mode, but I don't remember if 0.9.30 has build modes, since I always use trunk... My version (0.9.30.1) does have a option for build modes, but the -WG fall under the Linking settings.

Re: [Lazarus] How would you organize build directories for different versions?

2011-07-14 Thread Mattias Gaertner
    Frank Church vfcli...@gmail.com hat am 14. Juli 2011 um 11:24 geschrieben: 2011/7/14 Mattias Gaertner nc-gaert...@netcologne.de [mailto:nc-gaert...@netcologne.de]       Frank Church vfcli...@gmail.com [mailto:vfcli...@gmail.com] hat am 14. Juli 2011 um 10:11

Re: [Lazarus] View form as .lfm crashes Lazarus

2011-07-14 Thread Mattias Gaertner
    Torsten Bonde Christiansen t...@epidata.dk hat am 14. Juli 2011 um 11:27 geschrieben: On 2011-07-14 11:06, Mattias Gaertner wrote:     Torsten Bonde Christiansen t...@epidata.dk [mailto:t...@epidata.dk] hat am 14. Juli 2011 um 10:45 geschrieben: Hi List. I

Re: [Lazarus] How would you organize build directories for different versions?

2011-07-14 Thread Graeme Geldenhuys
On 07/14/2011 11:43 AM, Mattias Gaertner wrote: I thought they would all be dumped into a single directory. That would be a Delphi mess. Separate output directories is one of the key features of the Lazarus package system. And that can cause it's own set of headaches. Yes it saves on

Re: [Lazarus] RE : RE : RE : Lazarus on Solaris 10

2011-07-14 Thread Mark Morgan Lloyd
Ludo Brands wrote: If I'm reading that properly you're using FPC 2.5.1, but what (numeric) version of Lazarus? First line says lazarus svn and fpc svn. Trunk lazarus is 0.9.31. Reason for using svn is the patch commited recently to solaris rtl and to get the non-commited alignment

Re: [Lazarus] Why is TCustomControl.Canvas public?

2011-07-14 Thread Luiz Americo Pereira Camara
On 14/7/2011 01:08, Flávio Etrusco wrote: (...) TCustomControl is to be a base class not for quick hacks. Adding more functions would blow the code for most components that don't use it Oh my. I suppose it's not be used directly in TCustomControl, but on descendants. What about descendants

Re: [Lazarus] How would you organize build directories for different versions?

2011-07-14 Thread Mattias Gaertner
    Graeme Geldenhuys graemeg.li...@gmail.com hat am 14. Juli 2011 um 11:56 geschrieben: On 07/14/2011 11:43 AM, Mattias Gaertner wrote: I thought they would all be dumped into a single directory.   That would be a Delphi mess. Separate output directories is one of the key

[Lazarus] Transparent (key color based) drawing questions

2011-07-14 Thread Max Vlasov
Hi, I used the technique described here http://wiki.lazarus.freepascal.org/Developing_with_Graphics#Drawing_color_transparent_bitmaps for transparent drawing on windows. So when porting to cross-platform used this example. Two observations: 1. At least on linux gtk the order of assignments

Re: [Lazarus] How would you organize build directories for different versions?

2011-07-14 Thread Graeme Geldenhuys
On 07/14/2011 12:20 PM, Mattias Gaertner wrote: And that can cause it's own set of headaches. Yes it saves on disk space No, it needs more disk space, because you have several output directories per package, .e.g. targetcpu-targetos. I think you missunderstood my statement. I meant that

Re: [Lazarus] How would you organize build directories for different versions?

2011-07-14 Thread Mattias Gaertner
    Graeme Geldenhuys graemeg.li...@gmail.com hat am 14. Juli 2011 um 12:39 geschrieben: On 07/14/2011 12:20 PM, Mattias Gaertner wrote:   And that can cause it's own set of headaches. Yes it saves on disk space No, it needs more disk space, because you have several output directories

Re: [Lazarus] Latest Chanhes brakes the WinCE Notebook/Tab controls

2011-07-14 Thread Hans-Peter Diettrich
Tommi Prami schrieb: I just updated the latest SVN truck version (Revision : 31692) Compiling of the our winCE project will fail with message : C:\lazarus\lcl\interfaces\wince\wincewscomctrls.pp(69,20) Error: There is no method in an ancestor class to be overridden: class

Re: [Lazarus] Latest Chanhes brakes the WinCE Notebook/Tab controls

2011-07-14 Thread Bart
It is Felipe's work in progress I think. Bart On 7/14/11, Hans-Peter Diettrich drdiettri...@aol.com wrote: Tommi Prami schrieb: I just updated the latest SVN truck version (Revision : 31692) Compiling of the our winCE project will fail with message :

Re: [Lazarus] -WG compiler parameter issue in cross-platform projects

2011-07-14 Thread Sven Barth
Am 14.07.2011 11:43, schrieb Graeme Geldenhuys: Although I still think this is a bug in FPC. +1 What is the point of 'cross-platform support' then? Letting the compiler simply ignore parameters that ain't relevant for the target seems a rather simple solution - at it worked like that for

[Lazarus] Examples of TListView.OnCustomDrawItem

2011-07-14 Thread Fabio Luis Girardi
I searched on web and lazarus examples, but I don't found any example of how use TListView.OnCustomDrawItem to color each row using latest lazarus version. Somebody did something like this? Regards, Fabio -- ___ Lazarus mailing list

[Lazarus] Memory need on ARM

2011-07-14 Thread Michael Schnell
Hi Experts, We are designing a controller PCB using Linux on an ARM CPU. We would like to run Lazarus generated programs with a GUI on this hardware. Now we would like to know how much RAM is necessary (besides the Business Logic variables the program uses). I suppose we will need to use

Re: [Lazarus] Memory need on ARM

2011-07-14 Thread Roberto P.
2011/7/14 Michael Schnell mschn...@lumino.de: Hi Experts, We are designing a controller PCB using Linux on an ARM CPU. We would like to run Lazarus generated programs with a GUI on this hardware. Now we would like to know how much RAM is necessary (besides the Business Logic variables the

[Lazarus] Frames and Events

2011-07-14 Thread Hans-Peter Diettrich
How can events be added to frames? I want to add an OnFileClick event, that reacts on an click into a listbox in the frame. The new event is typed as TOnFileClick = procedure(Sender: TMyFrame; p,d: string) of object; and the handler in the frame provides the strings and calls the assigned

Re: [Lazarus] Latest Chanhes brakes the WinCE Notebook/Tab controls

2011-07-14 Thread Felipe Monteiro de Carvalho
On Thu, Jul 14, 2011 at 1:55 PM, Bart bartjun...@gmail.com wrote: It is Felipe's work in progress I think. Are you sure? I think that not ... I checked wince after my changes. It could be Hans-Peter's patch, however. -- Felipe Monteiro de Carvalho --

Re: [Lazarus] Memory need on ARM

2011-07-14 Thread Michael Schnell
On 07/14/2011 02:37 PM, Roberto P. wrote: Though I can't help with main question about the RAM needs, I dare adding to your w.s. list fpGUI. Of course fpGUI is my top desire on that behalf, but unfortunately it's not yet as perfect with thread synchronization as GTK2 is (I did not yet test

Re: [Lazarus] Latest Chanhes brakes the WinCE Notebook/Tab controls

2011-07-14 Thread Felipe Monteiro de Carvalho
On Thu, Jul 14, 2011 at 2:43 PM, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: Are you sure? I think that not ... I checked wince after my changes. It could be Hans-Peter's patch, however. Yes, it was ...

Re: [Lazarus] Latest Chanhes brakes the WinCE Notebook/Tab controls

2011-07-14 Thread Tommi Prami
On 14.7.2011 15:14, Hans-Peter Diettrich wrote: Tommi Prami schrieb: I just updated the latest SVN truck version (Revision : 31692) Compiling of the our winCE project will fail with message : C:\lazarus\lcl\interfaces\wince\wincewscomctrls.pp(69,20) Error: There is no method in an ancestor

Re: [Lazarus] Latest Chanhes brakes the WinCE Notebook/Tab controls

2011-07-14 Thread Felipe Monteiro de Carvalho
It should be fixed in rev 31701 -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Transparent (key color based) drawing questions

2011-07-14 Thread Felipe Monteiro de Carvalho
On Thu, Jul 14, 2011 at 12:37 PM, Max Vlasov max.vla...@gmail.com wrote: 1. At least on linux gtk the order of assignments should be reverse On the site  bmp.Transparent := True;  bmp.TransparentColor := clFuchsia; But the correct order is  bmp.TransparentColor := clFuchsia;  

Re: [Lazarus] Latest Chanhes brakes the WinCE Notebook/Tab controls

2011-07-14 Thread Hans-Peter Diettrich
Bart schrieb: It is Felipe's work in progress I think. Yes, based on my supplied patch, that's why I can explain what remains to do. The mapping between logical Pages and visible Tabs in the TCustomNotebook was scattered into multiple unrelated places, e.g. TCustomPage and the

Re: [Lazarus] Examples of TListView.OnCustomDrawItem

2011-07-14 Thread Hans-Peter Diettrich
Fabio Luis Girardi schrieb: I searched on web and lazarus examples, but I don't found any example of how use TListView.OnCustomDrawItem to color each row using latest lazarus version. It should not be different from any other CustomDraw procedures. Do a FillRect with the desired color, before

Re: [Lazarus] Latest Chanhes brakes the WinCE Notebook/Tab controls

2011-07-14 Thread Felipe Monteiro de Carvalho
On Thu, Jul 14, 2011 at 4:19 PM, Hans-Peter Diettrich drdiettri...@aol.com wrote: Eventually another Delphi compatible rename should be made. As I just found out, Delphi defines PageIndexFromTabIndex for my TabToPageIndex. But since this is a private method in TPageControl, and the LCL used

Re: [Lazarus] Latest Chanhes brakes the WinCE Notebook/Tab controls

2011-07-14 Thread Felipe Monteiro de Carvalho
On Thu, Jul 14, 2011 at 4:19 PM, Hans-Peter Diettrich drdiettri...@aol.com wrote: I'd suggest to remove GetPageRealIndex from the widget classes at all, to prevent possibly incompatible overrides. When ever required, a widget should use PageToTabIndex instead of GetPageRealIndex, and

Re: [Lazarus] Memory need on ARM

2011-07-14 Thread Mark Morgan Lloyd
Michael Schnell wrote: Hi Experts, We are designing a controller PCB using Linux on an ARM CPU. We would like to run Lazarus generated programs with a GUI on this hardware. Now we would like to know how much RAM is necessary (besides the Business Logic variables the program uses). I

Re: [Lazarus] Memory need on ARM

2011-07-14 Thread Mark Morgan Lloyd
Roberto P. wrote: I suppose we will need to use some Widget Set (QT ?, GKT ?) and X11 Server, even though the GUI should only be visible via VNC via TCP/IP. Though I can't help with main question about the RAM needs, I dare adding to your w.s. list fpGUI. I would consider it for an embedded

Re: [Lazarus] Memory need on ARM

2011-07-14 Thread Michael Schnell
On 07/14/2011 03:45 PM, Mark Morgan Lloyd wrote: I've had enough success with it to be generally impressed, would be nice if it were sufficiently mature to be an option for the Lazarus IDE. +1 I suppose Graemes 1st priority is the stand alone Version rather than the Lazarus integration. I

Re: [Lazarus] Memory need on ARM

2011-07-14 Thread Michael Schnell
On 07/14/2011 03:39 PM, Mark Morgan Lloyd wrote: Watch out here: I believe that there's some form of bug in (at least some variants of) VNC which prevents it working on ARM. Remember that you can also tunnel X over SSH. Hmmm. I did not yet hear of problems of VNC on ARM. Maybe this is

Re: [Lazarus] How would you organize build directories for different versions?

2011-07-14 Thread Marcos Douglas
On Thu, Jul 14, 2011 at 9:54 AM, Marcos Douglas m...@delfire.net wrote: 2011/7/14 Mattias Gaertner nc-gaert...@netcologne.de: You can define a project macro and use that in each package custom options. See here

Re: [Lazarus] How would you organize build directories for different versions?

2011-07-14 Thread Graeme Geldenhuys
On 07/14/2011 01:17 PM, Mattias Gaertner wrote: I compared to common Delphi setting of having one global output directory. Then I don't do it like Delphi either. I have a output directory per project and then per target platform inside that, not one huge output directory as was done in

Re: [Lazarus] Why is TCustomControl.Canvas public?

2011-07-14 Thread Flávio Etrusco
On Thu, Jul 14, 2011 at 3:00 AM, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: 2011/7/14 Flávio Etrusco flavio.etru...@gmail.com: I guess you mean the current behavior is as it is for Delphi compatibility, right? I supposed so, but isn't it worth changing? No, there

Re: [Lazarus] How would you organize build directories for different versions?

2011-07-14 Thread Mattias Gaertner
On Thu, 14 Jul 2011 11:13:53 -0300 Marcos Douglas m...@delfire.net wrote: On Thu, Jul 14, 2011 at 9:54 AM, Marcos Douglas m...@delfire.net wrote: 2011/7/14 Mattias Gaertner nc-gaert...@netcologne.de: You can define a project macro and use that in each package custom options. See

Re: [Lazarus] How would you organize build directories for different versions?

2011-07-14 Thread Marcos Douglas
On Thu, Jul 14, 2011 at 12:20 PM, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Thu, 14 Jul 2011 11:13:53 -0300 Marcos Douglas m...@delfire.net wrote: On Thu, Jul 14, 2011 at 9:54 AM, Marcos Douglas m...@delfire.net wrote: 2011/7/14 Mattias Gaertner nc-gaert...@netcologne.de: You

Re: [Lazarus] How would you organize build directories for different versions?

2011-07-14 Thread Bart
I read the wiki article but I'm a little puzzled. I can define build modes (Debug/Release) with different compiler/linker options, and this seems to work. It just builds my project with the altered settings, and leaves the packages as is. However I have to repeat these steps for every project I

Re: [Lazarus] Memory need on ARM

2011-07-14 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 07/14/2011 03:39 PM, Mark Morgan Lloyd wrote: Watch out here: I believe that there's some form of bug in (at least some variants of) VNC which prevents it working on ARM. Remember that you can also tunnel X over SSH. Hmmm. I did not yet hear of problems of VNC on

Re: [Lazarus] Transparent (key color based) drawing questions

2011-07-14 Thread Flávio Etrusco
On Thu, Jul 14, 2011 at 7:37 AM, Max Vlasov max.vla...@gmail.com wrote: Hi, I used the technique described here  http://wiki.lazarus.freepascal.org/Developing_with_Graphics#Drawing_color_transparent_bitmaps for transparent drawing on windows. So when porting to cross-platform used this

Re: [Lazarus] Latest Chanhes brakes the WinCE Notebook/Tab controls

2011-07-14 Thread Hans-Peter Diettrich
Felipe Monteiro de Carvalho schrieb: On Thu, Jul 14, 2011 at 4:19 PM, Hans-Peter Diettrich drdiettri...@aol.com wrote: Eventually another Delphi compatible rename should be made. As I just found out, Delphi defines PageIndexFromTabIndex for my TabToPageIndex. But since this is a private method

Re: [Lazarus] -WG compiler parameter issue in cross-platform projects

2011-07-14 Thread Florian Klämpfl
Am 14.07.2011 14:04, schrieb Sven Barth: Am 14.07.2011 11:43, schrieb Graeme Geldenhuys: Although I still think this is a bug in FPC. +1 What is the point of 'cross-platform support' then? Letting the compiler simply ignore parameters that ain't relevant for the target seems a rather simple

Re: [Lazarus] Can't find unit LResources used by Component1

2011-07-14 Thread Mattias Gaertner
On Thu, 14 Jul 2011 19:53:24 +0200 John Landmesser joh...@online.de wrote: Hi Mattias, all troubles are gone since i realized after ages that i have a corrupted component icon.lrs. Some experiences i made: Lazarus IDE is frozen for this compiler directive: {$I findfile1_icon.lrs} in

Re: [Lazarus] How would you organize build directories for different versions?

2011-07-14 Thread Mattias Gaertner
On Thu, 14 Jul 2011 17:49:31 +0200 Bart bartjun...@gmail.com wrote: [...] To make clear what I want: In all projects I have available a Debug and Release mode, these modes are the same for all projects I make/open. The options I set in these modes do not force installed packages to be

Re: [Lazarus] Can't find unit LResources used by Component1

2011-07-14 Thread John Landmesser
Am 14.07.2011 20:39, schrieb Mattias Gaertner: On Thu, 14 Jul 2011 19:53:24 +0200 John Landmesserjoh...@online.de wrote: Hi Mattias, all troubles are gone since i realized after ages that i have a corrupted component icon.lrs. Some experiences i made: Lazarus IDE is frozen for this

Re: [Lazarus] How would you organize build directories for different versions?

2011-07-14 Thread Marcos Douglas
On Thu, Jul 14, 2011 at 4:45 PM, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Thu, 14 Jul 2011 17:49:31 +0200 Bart bartjun...@gmail.com wrote: [...] To make clear what I want: In all projects I have available a Debug and Release mode, these modes are the same for all projects I

Re: [Lazarus] -WG compiler parameter issue in cross-platform projects

2011-07-14 Thread Felipe Monteiro de Carvalho
On Thu, Jul 14, 2011 at 7:07 PM, Florian Klämpfl flor...@freepascal.org wrote: Pretty simple: most target specific switches were never silently ignored if they didn't apply to the current target. A arm compiler complains also about a -Oppentium. -WG was one of the few examples of the group of

[Lazarus] Code templates engine

2011-07-14 Thread Lee Jenkins
Is this (Code Templates engine) part of Lazarus' version of SynEdit or something separate. In either case, can it be reused fairly easy for a custom editor project? Thanks, -- Warm Regards, Lee -- ___ Lazarus mailing list

Re: [Lazarus] -WG compiler parameter issue in cross-platform projects

2011-07-14 Thread Florian Klämpfl
Am 14.07.2011 22:25, schrieb Felipe Monteiro de Carvalho: On Thu, Jul 14, 2011 at 7:07 PM, Florian Klämpfl flor...@freepascal.org wrote: Pretty simple: most target specific switches were never silently ignored if they didn't apply to the current target. A arm compiler complains also about a

Re: [Lazarus] How would you organize build directories for different versions?

2011-07-14 Thread Mattias Gaertner
On Thu, 14 Jul 2011 17:00:04 -0300 Marcos Douglas m...@delfire.net wrote: [...] To make clear what I want: In all projects I have available a Debug and Release mode, these modes are the same for all projects I make/open. The options I set in these modes do not force installed packages

Re: [Lazarus] How would you organize build directories for different versions?

2011-07-14 Thread Marcos Douglas
On Thu, Jul 14, 2011 at 5:43 PM, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Thu, 14 Jul 2011 17:00:04 -0300 Marcos Douglas m...@delfire.net wrote: [...] To make clear what I want: In all projects I have available a Debug and Release mode, these modes are the same for all

Re: [Lazarus] -WG compiler parameter issue in cross-platform projects

2011-07-14 Thread Florian Klämpfl
Am 14.07.2011 22:37, schrieb Florian Klämpfl: Am 14.07.2011 22:25, schrieb Felipe Monteiro de Carvalho: On Thu, Jul 14, 2011 at 7:07 PM, Florian Klämpfl flor...@freepascal.org wrote: Pretty simple: most target specific switches were never silently ignored if they didn't apply to the current

Re: [Lazarus] Inserting many components on form

2011-07-14 Thread Alexander Klenin
On Tue, Jul 12, 2011 at 21:53, Fabio Luis Girardi fluisgira...@gmail.com wrote: I found another way to do this: extend the TCollection and write a new procedure Add to allow choose what's the item class the user wants create and make a Property editor for this new Collection class, that will

Re: [Lazarus] Code templates engine

2011-07-14 Thread Martin
On 14/07/2011 21:28, Lee Jenkins wrote: Is this (Code Templates engine) part of Lazarus' version of SynEdit or something separate. In either case, can it be reused fairly easy for a custom editor project? Depends what part of codetemplates you look for. Look at sourceditor.pp line 9040

Re: [Lazarus] Converting Icon from Windows handle to TBitmap with transparency

2011-07-14 Thread cobines
2011/6/8 cobines cobi...@gmail.com: Hello everyone. I want to convert an icon retrieved by Windows API to a TBitmap saving transparency. As I understand transparency can be achieved by: - using an additional Mask bitmap - using 32bpp TBitmap with alpha channel Having the handle to an icon

Re: [Lazarus] How would you organize build directories for different versions?

2011-07-14 Thread Luiz Americo Pereira Camara
On 14/7/2011 12:20, Mattias Gaertner wrote: On Thu, 14 Jul 2011 11:13:53 -0300 Marcos Douglasm...@delfire.net wrote: These macros do not works in Lazarus [0.9.30.1] only from the version [0.9.31]? Yes. Nice feature. Only take a look at it now Is it possible to define dependency for a

Re: [Lazarus] Converting Icon from Windows handle to TBitmap with transparency

2011-07-14 Thread cobines
2011/7/15 cobines cobi...@gmail.com: Also a question: Why TIcon always has Masked=True? Icons with alpha channel don't work properly with TIcon and they don't use Mask. Is support for alpha channel icons simply not implemented? More question related to this. In function

Re: [Lazarus] Converting Icon from Windows handle to TBitmap with transparency

2011-07-14 Thread Maxim Ganetsky
15.07.2011 2:10, cobines пишет: 2011/6/8 cobinescobi...@gmail.com: Hello everyone. I want to convert an icon retrieved by Windows API to a TBitmap saving transparency. As I understand transparency can be achieved by: - using an additional Mask bitmap - using 32bpp TBitmap with alpha channel