Re: [Lazarus] When does ComponentPageControl gets filled?
> I've just installed Lazarus 1.2 and I realize that KZDesktop's way of embedding component palette no longer works as it was in 1.0.14. It looks like KZDesktop has overriden the event when ComponentPageControl gets filled. Do I need to call something to make it filled? Or perhaps an easier one, what are the differences between 1.0.14 an 1.2's way of filling component paletter? Sorry, my bad. I installed EducationLaz accidentally and it disables all my components (by default, with "enable education settings" unchecked). The bug should be assigned to EducationLaz instead. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/When-does-ComponentPageControl-gets-filled-tp4036110p4036134.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TAChart stopped working
Replying to myself: On Mo, 2014-03-03 at 02:41 +0100, Marc Santhoff wrote: > Hi, > > while running a program using TAChart with a newer version of Lazarus > (1.0.10 or 1.0.14) and fpc 2.6.2 an exception "ERangeError" is thrown. > The program dates before Lazarus 1.0.10 and worked flawlessly then. > > The error occurs in line 1103 of TACustomSeries: > > > procedure TBasicPointSeries.PrepareGraphPoints( > const AExtent: TDoubleRect; AFilterByExtent: Boolean); > ... > SetLength(FGraphPoints, FUpBound - FLoBound + 1); > if (AxisIndexX < 0) and (AxisIndexY < 0) then > ... > > > when SetLength is called. > > I'm using 4 UserDefinedChartSeries for drawing 4 graphs. The > PointsNumber is 256. When SetLenght is called, in FGraphPoints does have > approriate contents, FUpBound is 0 and FLoBound is 255. > > Before I document the complete workings of my program I'd like to ask: > Has there been any change making this one a known issue? Actually there have been lots of changes since 1.0.10. A new (short) test using laz 1.2 works flawlessly. Thanks for the effort, fpc + lazarus is still the best thing one can get. :) -- Marc Santhoff -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Howto dropdown the calendar of TDateEdit programmatically
Le 07/03/2014 16:05, JmLandmesser a écrit : DateEdit.Button.Click and the miracle takes place 8-) Antonio. Thats true, the miracle happened, thank you!! You're welcome :-) Well, this is only FPC-Lazarus magic actually. -- Antonio Fortuny Senior Software engineer 220, avenue de la Liberté L-4602 Niederkorn Tel.: +352 58 00 93 - 93 www.sitasoftware.lu Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce que la protection Antivirus avast! est active. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to access C and C++ libraries?
Am 07.03.2014 15:12, schrieb Daniel Gaspary: On Fri, Mar 7, 2014 at 6:38 AM, Sven Barth wrote: Am 07.03.2014 10:13, schrieb Danny Weldon: You can't access a C++ API. Not yet. But it is planned for the future: http://freepascal.org/future.var "Linking with C++ code" And with quite some restrictions it already works, see $fpc/tests/test/cg/tcppcl{1,2}.pp. Is this feature at trunk? I haven't worked on it since some time, so the current state is even in 2.6.0. Further examples of use.. ? A cppclass is declared like this: === code begin === type TTest = cppclass external 'MyCLib' name 'Test' (TParent) procedure Test; class procedure StaticTest; end; === code end === Notes: - if TParent is defined it needs to be a cppclass as well - for sizeof to work correctly you need to specifiy the fields the same way as in C++ (though this might still be buggy) - cppclass instances are not implicit pointers like classes, so you need to use "myvar^.Test" instead Current restrictions: - currently no namespaces supported - currently no support for virtual metods (static methods work, instance methods *should* work) - no support for construction/destruction yet (so you need to have the library instantiate the object) - no support for multiple inheritance or virtual inheritance - no support for operators (especially not the C++ specific ones) In general this feature is experimental/in development, so your mileage may vary. Bug reports are welcome though :) Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Howto dropdown the calendar of TDateEdit programmatically
Le 07/03/2014 15:07, John Landmesser a écrit : Hi, i want to dropdown the calendar of an DateEdit at start of my app, so the user will see what to do next. There is a "DateEdit.Button.Clicḱ" procedure and "TCustomMaskEdit.DoButtonClick", but they don't show the calendar. Just do DateEdit.Button.Click and the miracle takes place 8-) Antonio. Is it possible to show the calendar by code? thank you for a tipp!! -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus --- Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce que la protection avast! Antivirus est active. http://www.avast.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to access C and C++ libraries?
On Fri, Mar 7, 2014 at 6:38 AM, Sven Barth wrote: > Am 07.03.2014 10:13, schrieb Danny Weldon: >>> You can't access a C++ API. >> >> Not yet. But it is planned for the future: >> >>http://freepascal.org/future.var >>"Linking with C++ code" > > And with quite some restrictions it already works, see > $fpc/tests/test/cg/tcppcl{1,2}.pp. Is this feature at trunk? Further examples of use.. ? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Howto dropdown the calendar of TDateEdit programmatically
Hi, i want to dropdown the calendar of an DateEdit at start of my app, so the user will see what to do next. There is a "DateEdit.Button.Clicḱ" procedure and "TCustomMaskEdit.DoButtonClick", but they don't show the calendar. Is it possible to show the calendar by code? thank you for a tipp!! -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to access C and C++ libraries?
Thanks everybody! The two links were just what I needed. And some parts were faintly familiar. :-) Cheers Chavoux -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to access C and C++ libraries?
Am 07.03.2014 10:13, schrieb Danny Weldon: You can't access a C++ API. Not yet. But it is planned for the future: http://freepascal.org/future.var "Linking with C++ code" And with quite some restrictions it already works, see $fpc/tests/test/cg/tcppcl{1,2}.pp. Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] OnGuard
On 06/03/2014 20:47, Richard Mace wrote: > Hi all, > I tried to add the OnGuard package to Lazarus 1.2 and am unable to > compile because it is complaining of a missing unit ogreg. > Has anyone got this working recently? > > Thanks in advance, and many thanks for all who were involved in making > 1.2 happen. Similar thread/question that may be helpful: http://forum.lazarus.freepascal.org/index.php/topic,23495.msg142005.html#msg142005 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to access C and C++ libraries?
> You can't access a C++ API. Not yet. But it is planned for the future: http://freepascal.org/future.var "Linking with C++ code" On 7 March 2014 18:29, Michael Schnell wrote: > On 03/06/2014 08:31 PM, Chavoux Luyt wrote: >> >> >> Years ago I used Delphi (on Windows) to access a C or C++ API > > You can't access a C++ API. > > -Michael > > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Regards Danny -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to access C and C++ libraries?
On 03/06/2014 08:31 PM, Chavoux Luyt wrote: Years ago I used Delphi (on Windows) to access a C or C++ API You can't access a C++ API. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus