Re: [Lazarus] Kitto2 for Rich Internet Applications

2017-09-28 Thread Michael Van Canneyt via Lazarus
On Thu, 28 Sep 2017, Marcos Douglas B. Santos via Lazarus wrote: On Thu, Sep 28, 2017 at 10:43 AM, Michael Van Canneyt via Lazarus <lazarus@lists.lazarus-ide.org> wrote: On Thu, 28 Sep 2017, Marcos Douglas B. Santos via Lazarus wrote: Hi, I would like to know if anybody here has a

Re: [Lazarus] Kitto2 for Rich Internet Applications

2017-09-28 Thread Michael Van Canneyt via Lazarus
On Thu, 28 Sep 2017, Marcos Douglas B. Santos via Lazarus wrote: Hi, I would like to know if anybody here has already used Kitto2 https://github.com/EtheaDev/kitto2 This project used or was based on the old ExtPascal. My question is because this project compiles only in Delphi and maybe

Re: [Lazarus] MainMenu dropped to the left, Win bug?

2017-09-28 Thread Michael Van Canneyt via Lazarus
On Thu, 28 Sep 2017, Alexey via Lazarus wrote: User reported this bug here: https://github.com/Alexey-T/CudaText/issues/1101 That can happen if OS decides there is not enough room on the right ? Michael. -- ___ Lazarus mailing list

Re: [Lazarus] fpReport - can not render pagefooter

2017-09-28 Thread Michael Van Canneyt via Lazarus
On Thu, 28 Sep 2017, Andrea Mauri via Lazarus wrote: Il 28/09/2017 12:15, Michael Van Canneyt via Lazarus ha scritto: Normally you can, but you will need to copy some additional units from the trunk version of the FPC source repo (in particular, fpexprpars, and fcl-pdf) fpReport

Re: [Lazarus] fpReport - can not render pagefooter

2017-09-28 Thread Michael Van Canneyt via Lazarus
On Thu, 28 Sep 2017, Andrea Mauri via Lazarus wrote: Il 27/09/2017 12:50, Graeme Geldenhuys via Lazarus ha scritto: ps: Note that I compiled your project using the latest fpReport from FPC Trunk. I simply set the correct Unit Source Path in the project. You don't need to use FPC Trunk

Re: [Lazarus] fpReport - can not render pagefooter

2017-09-27 Thread Michael Van Canneyt via Lazarus
On Wed, 27 Sep 2017, Graeme Geldenhuys via Lazarus wrote: On 2017-09-27 09:38, Andreas Frieß via Lazarus wrote: What is my mistake of understanding ? You made a couple of mistakes and highlighted a bug in the PDF exporter. Mistakes: 1. You never registered the standard page sizes with:

Re: [Lazarus] [ANN] Xavier for XML — Compatible with FPC and Delphi

2017-09-24 Thread Michael Van Canneyt via Lazarus
On Sun, 24 Sep 2017, Graeme Geldenhuys via Lazarus wrote: On 2017-09-24 09:02, Graeme Geldenhuys via Lazarus wrote: Of course I would normally agree with that, but if you look at the Java annotations in that article Just curious, I know C# has annotations support too. Does Delphi? Yes.

Re: [Lazarus] [ANN] Xavier for XML — Compatible with FPC and Delphi

2017-09-23 Thread Michael Van Canneyt via Lazarus
On Sat, 23 Sep 2017, Graeme Geldenhuys via Lazarus wrote: On 2017-09-23 12:36, Michael Van Canneyt wrote: FPC doesn't even cover the most basic of things - no decent debugger that can handle all the Object Pascal language features. :-/ > Of course not. FPC is not a debugger, it is a

Re: [Lazarus] [ANN] Xavier for XML — Compatible with FPC and Delphi

2017-09-23 Thread Michael Van Canneyt via Lazarus
On Sat, 23 Sep 2017, Graeme Geldenhuys via Lazarus wrote: On 2017-09-21 04:06, Marcos Douglas B. Santos via Lazarus wrote: Nah... most of them know nothing about true OOP. They believe that an object is a "record" with getters and setters... anyway. If I understand you correctly...

Re: [Lazarus] [ANN] Xavier for XML — Compatible with FPC and Delphi

2017-09-20 Thread Michael Van Canneyt via Lazarus
On Wed, 20 Sep 2017, Marcos Douglas B. Santos via Lazarus wrote: On Wed, Sep 20, 2017 at 4:31 PM, Michael Van Canneyt via Lazarus <lazarus@lists.lazarus-ide.org> wrote: On Wed, 20 Sep 2017, Marcos Douglas B. Santos via Lazarus wrote: Hi, I'm working in my new "pet project&quo

Re: [Lazarus] [ANN] Xavier for XML — Compatible with FPC and Delphi

2017-09-20 Thread Michael Van Canneyt via Lazarus
On Wed, 20 Sep 2017, Marcos Douglas B. Santos via Lazarus wrote: Hi, I'm working in my new "pet project" called Xavier. Xavier is an object-oriented library for work with XML. I don't understand the 'why' ? Should I understand that you consider the DOM units not object-oriented ?

Re: [Lazarus] Why Laz2_DOM, laz2_XMLRead, and laz2_XMLWrite?

2017-09-20 Thread Michael Van Canneyt via Lazarus
On Wed, 20 Sep 2017, Marcos Douglas B. Santos via Lazarus wrote: On Wed, Sep 20, 2017 at 3:02 PM, Michael Van Canneyt via Lazarus <lazarus@lists.lazarus-ide.org> wrote: On Wed, 20 Sep 2017, Marcos Douglas B. Santos via Lazarus wrote: On Wed, Sep 20, 2017 at 12:36 PM, Michael Van C

Re: [Lazarus] Why Laz2_DOM, laz2_XMLRead, and laz2_XMLWrite?

2017-09-20 Thread Michael Van Canneyt via Lazarus
On Wed, 20 Sep 2017, Marcos Douglas B. Santos via Lazarus wrote: On Wed, Sep 20, 2017 at 12:36 PM, Michael Van Canneyt via Lazarus <lazarus@lists.lazarus-ide.org> wrote: These units work using UTF8. The DOM units use UnicodeString (UTF16). Given that these units are quite stable in

Re: [Lazarus] Why Laz2_DOM, laz2_XMLRead, and laz2_XMLWrite?

2017-09-20 Thread Michael Van Canneyt via Lazarus
On Wed, 20 Sep 2017, Marcos Douglas B. Santos via Lazarus wrote: Hi, Nowadays we have Unicode and so on. Is there any reason to these units (Laz2_DOM, laz2_XMLRead, and laz2_XMLWrite) still exists? I've always used them, but days ago I needed to use XPath and the xpath unit works using

Re: [Lazarus] FPReport file names

2017-09-13 Thread Michael Van Canneyt via Lazarus
On Wed, 13 Sep 2017, Ondrej Pokorny via Lazarus wrote: On 13.09.2017 20:33, Graeme Geldenhuys via Lazarus wrote: On 2017-09-13 19:17, Michael Van Canneyt via Lazarus wrote: Similarly, every field in a database I create is always uniquely named. So if I ask "where is field TX_ID'

Re: [Lazarus] FPReport file names

2017-09-13 Thread Michael Van Canneyt via Lazarus
On Wed, 13 Sep 2017, Ondrej Pokorny wrote: Of course there can be collisions - if it happens you have to resolve them with explicit namespaces. Making the whole point moot. You can understand namespaces and subnamespaces as a concept for folder structure within code. Of course you

Re: [Lazarus] FPReport file names

2017-09-13 Thread Michael Van Canneyt via Lazarus
On Wed, 13 Sep 2017, Ondrej Pokorny via Lazarus wrote: On 13.09.2017 12:03, Michael Van Canneyt via Lazarus wrote: On Wed, 13 Sep 2017, Ondrej Pokorny via Lazarus wrote: The benefit of writing fpreport.exporthtml versus fpreportexporthtml is zero. You forgot one thing: third-party

Re: [Lazarus] FPReport file names

2017-09-13 Thread Michael Van Canneyt via Lazarus
On Wed, 13 Sep 2017, Mattias Gaertner wrote: On Wed, 13 Sep 2017 11:28:55 +0200 (CEST) Michael Van Canneyt wrote: [...] The benefit of writing fpreport.exporthtml versus fpreportexporthtml is zero. It's a little bit better than zero. For example shorter uses

Re: [Lazarus] FPReport file names

2017-09-13 Thread Michael Van Canneyt via Lazarus
On Wed, 13 Sep 2017, Ondrej Pokorny via Lazarus wrote: The benefit of writing fpreport.exporthtml versus fpreportexporthtml is zero. You forgot one thing: third-party libraries. E.g. your fpReport could use the "fprep" namespace. In the fpReport package you then define to use the fprep

Re: [Lazarus] FPReport file names

2017-09-13 Thread Michael Van Canneyt via Lazarus
On Wed, 13 Sep 2017, Sven Barth via Lazarus wrote: As long as there are no command-line switch and directive for setting namespaces, they are completely useless. And even with them, the benefit is doubtful. The benefit of writing fpreport.exporthtml versus fpreportexporthtml is zero.

Re: [Lazarus] FPReport file names

2017-09-13 Thread Michael Van Canneyt via Lazarus
On Wed, 13 Sep 2017, Mattias Gaertner via Lazarus wrote: On Wed, 13 Sep 2017 10:44:23 +0200 (CEST) Michael Van Canneyt via Lazarus <lazarus@lists.lazarus-ide.org> wrote: [...] As long as there are no command-line switch and directive for setting namespaces, they are completely u

Re: [Lazarus] FPReport file names

2017-09-13 Thread Michael Van Canneyt via Lazarus
On Wed, 13 Sep 2017, Graeme Geldenhuys via Lazarus wrote: On 2017-09-12 19:01, Alexey via Lazarus wrote: It is new. Please rename (it's easy for new component) all files: usually its good with one prefix. E.g. fprep_*.*. hahaha... I had the units like that, using underscores. eg:

Re: [Lazarus] FPReport file names

2017-09-12 Thread Michael Van Canneyt via Lazarus
On Tue, 12 Sep 2017, Alexey via Lazarus wrote: On 12.09.2017 21:25, Michael Van Canneyt via Lazarus wrote: Why would people see filename conflicts ? None of these files exist yet. because files like dlginputcombo.pp, fradbfdata.*, frmresizeelements.* may exist in BIG app. The ones

Re: [Lazarus] FPReport file names

2017-09-12 Thread Michael Van Canneyt via Lazarus
On Tue, 12 Sep 2017, Alexey via Lazarus wrote: Definitely not. It is good to do (some users will see filename conflicts in big apps). no big apps ready on FPRep yet. Why would people see filename conflicts ? None of these files exist yet. And there are already apps in production using

Re: [Lazarus] FPReport file names

2017-09-12 Thread Michael Van Canneyt via Lazarus
On Tue, 12 Sep 2017, Alexey via Lazarus wrote: Hi It is new. Please rename (it's easy for new component) all files: usually its good with one prefix. E.g. fprep_*.*. Definitely not. Michael. -- ___ Lazarus mailing list

Re: [Lazarus] Dangers of using Move command to insert data into a TBytes array?

2017-08-30 Thread Michael Van Canneyt via Lazarus
On Wed, 30 Aug 2017, Bo Berglund via Lazarus wrote: I just want to check with you which way is safer when using Move() commands in a procedure to combine two TBytes arrays by inserting one into the other at a specified point. What I need to do is the following: - Increase the size of the

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Michael Van Canneyt via Lazarus
On Mon, 21 Aug 2017, Andreas Frieß via Lazarus wrote: Is is not better to call the standard fonts of the system in TFPReportDesignerForm.FormCreate(Sender: TObject); ? if gTTFontCache.SearchPath.Count=0 then begin

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Michael Van Canneyt via Lazarus
On Mon, 21 Aug 2017, Sven Barth via Lazarus wrote: Am 21.08.2017 11:25 schrieb "Graeme Geldenhuys via Lazarus" < lazarus@lists.lazarus-ide.org>: On 2017-08-21 10:18, Michael Van Canneyt wrote: /usr/local/share/fonts /usr/local/lib/X11/fonts fonts

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Michael Van Canneyt via Lazarus
On Mon, 21 Aug 2017, Andreas Frieß via Lazarus wrote: It is possible to use a standard font and give a warning instead of fire an exception. Eg. Font not found, using standardfont instead ? That is what I meant with introducing aliases. The problem is of course that you

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Michael Van Canneyt via Lazarus
On Mon, 21 Aug 2017, Graeme Geldenhuys via Lazarus wrote: On 2017-08-21 09:54, Michael Van Canneyt via Lazarus wrote: These problems will only occur if you're using non-standard fonts. What if you wanted "self contained reports" eg like the demos in fpReport where we

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Michael Van Canneyt via Lazarus
On Mon, 21 Aug 2017, Graeme Geldenhuys via Lazarus wrote: On 2017-08-21 09:18, Michael Van Canneyt via Lazarus wrote: The '../demos/fonts' and other hardcoded values are maybe not really a good idea:) For the life of me, I couldn't think of another solution. eg: you might have a headless

Re: [Lazarus] fpReport -> Lazarus reportdsg.lpr

2017-08-21 Thread Michael Van Canneyt via Lazarus
On Mon, 21 Aug 2017, Andreas Frieß via Lazarus wrote: I think there ara som issues with the fonts. frmreportdesignermain.pp around line 395 if gTTFontCache.SearchPath.Count=0 then begin {$IFDEF UNIX} gTTFontCache.SearchPath.Add(ExtractFilePath(ParamStr(0))+'../demos/fonts/');

Re: [Lazarus] fpReport released

2017-08-21 Thread Michael Van Canneyt via Lazarus
On Mon, 21 Aug 2017, Ondrej Pokorny via Lazarus wrote: On 21.08.2017 1:38, Graeme Geldenhuys via Lazarus wrote: On 2017-08-20 21:16, Andreas Frieß via Lazarus wrote: The freetype dll searched by the fpreport was freetype-6.dll, but the actual freetype-2.3.5-1-bin.zip has only a

Re: [Lazarus] fpReport released

2017-08-21 Thread Michael Van Canneyt via Lazarus
On Mon, 21 Aug 2017, Andreas Frieß via Lazarus wrote: I'm on Win10 Pro/64 1703. The needed fonts are not found by the program, because they are not in my system (%windir%/fonts). In fpTTF only the WinDir is added to the searchlist. So an Exception is raised and the execution of the

Re: [Lazarus] fpReport released

2017-08-21 Thread Michael Van Canneyt via Lazarus
On Sun, 20 Aug 2017, Andreas Frieß via Lazarus wrote: Thx Michael & Graeme for the fcl-report. But is there a fcl-report package for Lazarus, because the web-demo asked me for ? Or should be an extra package for Lazarus planned ? This is an old package from when the sources were in a

[Lazarus] fpReport released

2017-08-20 Thread Michael Van Canneyt via Lazarus
Hello, A long time wait. But it finally made it: fpreport has been committed to FPC SVN: packages/fcl-report. It should compile on windows, linux, freebsd and darwin. Features and architecture are described on: http://wiki.freepascal.org/FPReport Short highlights: - Banded report design. -

Re: [Lazarus] Reporting engine - What it's state?

2017-08-19 Thread Michael Van Canneyt via Lazarus
On Sat, 19 Aug 2017, Andreas Frieß via Lazarus wrote: and the week goes by :-) It's not yet over. Any news about the report-engine ? Or had i miss this in the (fpc) trunk ? No, it is planned for tomorrow. I have other things on my plate as well :) Michael.--

Re: [Lazarus] GlobalMemoryStatus is Windows only, how to get installed RAM on Linux ?

2017-08-16 Thread Michael Van Canneyt via Lazarus
On Wed, 16 Aug 2017, Landmesser John via Lazarus wrote: googled in vain ... ... and "TsmBios" ( -> Win/Linux https://github.com/RRUZ/tsmbios ) won't compile :-( So how to get Information about installed RAM on Linux for example? Ok, i could grep "hwinfo" or such in a terminal but thats

Re: [Lazarus] String vs WideString

2017-08-16 Thread Michael Van Canneyt via Lazarus
On Wed, 16 Aug 2017, Michael Schnell via Lazarus wrote: On 15.08.2017 22:45, Graeme Geldenhuys via Lazarus wrote: How is that not "abuse"??? IMHO it's a major shortcoming to define "string" as "printable text". On the contrary. That is exactly what it means. Anything else is just a

Re: [Lazarus] String vs WideString

2017-08-15 Thread Michael Van Canneyt via Lazarus
On Tue, 15 Aug 2017, Mattias Gaertner via Lazarus wrote: On Tue, 15 Aug 2017 14:26:34 +0200 Michael Schnell via Lazarus wrote: On 15.08.2017 11:15, Tony Whyman via Lazarus wrote: > Why shouldn't there be a single char type that intuitively represents > a

Re: [Lazarus] String vs WideString

2017-08-15 Thread Michael Van Canneyt via Lazarus
On Tue, 15 Aug 2017, Michael Schnell via Lazarus wrote: On 15.08.2017 12:15, Michael Van Canneyt via Lazarus wrote: What does S[2] mean in your proposal ? Is it 1, 2, 4 or even 8 bytes ? Regarding the users' appreciation, the S[x] notation is decently incompatible between the different

Re: [Lazarus] String vs WideString

2017-08-15 Thread Michael Van Canneyt via Lazarus
On Tue, 15 Aug 2017, Mattias Gaertner via Lazarus wrote: On Tue, 15 Aug 2017 12:02:28 +0200 Michael Schnell via Lazarus <lazarus@lists.lazarus-ide.org> wrote: On 15.08.2017 11:52, Michael Van Canneyt via Lazarus wrote: > This cannot be solved properly except by duplicating the cla

Re: [Lazarus] String vs WideString

2017-08-15 Thread Michael Van Canneyt via Lazarus
On Tue, 15 Aug 2017, Michael Schnell via Lazarus wrote: On 15.08.2017 11:25, Michael Van Canneyt via Lazarus wrote: WideString/UnicodeString for those that want 2-byte characters. A codepage-aware single-byte string for those that want 1-byte characters. The shortstring is even still

Re: [Lazarus] String vs WideString

2017-08-15 Thread Michael Van Canneyt via Lazarus
On Tue, 15 Aug 2017, Mattias Gaertner via Lazarus wrote: On Mon, 14 Aug 2017 18:47:58 +0200 Sven Barth via Lazarus wrote: [...] The main problem of such a dynamic type would be the inability to do fast indexing as the compiler would need to insert runtime

Re: [Lazarus] Reporting engine - What it's state?

2017-08-12 Thread Michael Van Canneyt via Lazarus
Hi, I will commit the code to FPC svn the coming week. Michael. On Fri, 11 Aug 2017, Andreas Frieß via Lazarus wrote: Hi, pls, where can the actual 'unstable ?' Code found ? fpc trunk, where ? Thanks Andreas Am 24.07.2017 um 08:54 schrieb Michael Van Canneyt via Lazarus: On Mon, 24

Re: [Lazarus] High DPI ?

2017-08-05 Thread Michael Van Canneyt via Lazarus
On Sat, 5 Aug 2017, Ondrej Pokorny via Lazarus wrote: On 05.08.2017 14:16, Michael Van Canneyt via Lazarus wrote: How can I check that the IDE has actually enabled/activated HDPI and uses big icons/button images? Check for Application.Scaled := True in lazarus.pp. This enables Hi-DPI

[Lazarus] High DPI ?

2017-08-05 Thread Michael Van Canneyt via Lazarus
Hello, I'm running lazarus on a high-dpi laptop. The laptop has a dual-boot Linux mint and Mac OS. I run Lazarus on both OS-es but I seriously doubt it has enabled HighDPI, because the icon buttons are still very small. How can I check that the IDE has actually enabled/activated HDPI and uses

Re: [Lazarus] Optimize SwapEndian for widestring?

2017-08-01 Thread Michael Van Canneyt via Lazarus
On Tue, 1 Aug 2017, Alexey via Lazarus wrote: Pls tell can I optimize this func? E.g. calc each char's PWord and read/write word. Probably this will be faster: function SSwapEndian(const S: UnicodeString): UnicodeString; var i: integer; p :pwidechar; begin Result:= S;

Re: [Lazarus] FCL DOM [vs] laz2_DOM, and more

2017-07-30 Thread Michael Van Canneyt via Lazarus
On Sun, 30 Jul 2017, Michalis Kamburelis via Lazarus wrote: 2017-07-30 10:00 GMT+02:00 Michael Van Canneyt via Lazarus <lazarus@lists.lazarus-ide.org>: On Sat, 29 Jul 2017, Marcos Douglas B. Santos via Lazarus wrote: Hi, Nowadays, we have full Unicode support in FPC. So, my qu

Re: [Lazarus] FCL DOM [vs] laz2_DOM, and more

2017-07-30 Thread Michael Van Canneyt via Lazarus
On Sat, 29 Jul 2017, Marcos Douglas B. Santos via Lazarus wrote: Hi, Nowadays, we have full Unicode support in FPC. So, my question is: The units bellow is still necessary to use XML with Lazarus or we can use just the original provided by FCL? laz2_DOM laz2_XMLRead laz2_XMLWrite

Re: [Lazarus] ComparePoints func

2017-07-26 Thread Michael Van Canneyt via Lazarus
On Wed, 26 Jul 2017, Reimar Grabowski via Lazarus wrote: On Wed, 26 Jul 2017 18:53:34 +0100 Graeme Geldenhuys via Lazarus wrote: On 2017-07-26 17:27, Alexey via Lazarus wrote: > Hm, in my app Int makes sense: i need to compare Points in binary > search, and

Re: [Lazarus] ComparePoints func

2017-07-26 Thread Michael Van Canneyt via Lazarus
On Wed, 26 Jul 2017, Alexey via Lazarus wrote: On 26.07.2017 18:11, Graeme Geldenhuys via Lazarus wrote: ComparePoints() returning a Integer is not a very friendly return type either, Hm, in my app Int makes sense: i need to compare Points in binary search, and see: >, <, =. This

Re: [Lazarus] ComparePoints func

2017-07-26 Thread Michael Van Canneyt via Lazarus
On Wed, 26 Jul 2017, Graeme Geldenhuys via Lazarus wrote: On 2017-07-26 14:54, Alexey via Lazarus wrote: I think LCL has many Compare funcs, but misses func for TPoint. Here it's comparing x/y screen coordinates Why not extend TPoint with an IsEquals() method, so you can do something

Re: [Lazarus] Reporting engine - What it's state?

2017-07-24 Thread Michael Van Canneyt via Lazarus
On Mon, 24 Jul 2017, Gabor Boros via Lazarus wrote: Hi All, 2015. 07. 09. 21:45 keltezéssel, Michael Van Canneyt írta: Just an opinion: I am working with Graeme Geldenhuys to create a reporting engine from scratch. I think Lazreport's design contains some fundamental flaws, which can only

Re: [Lazarus] Breaking change

2017-07-23 Thread Michael Van Canneyt via Lazarus
On Sun, 23 Jul 2017, Sven Barth via Lazarus wrote: On 23.07.2017 12:50, Michael Van Canneyt via Lazarus wrote: Hello, I have fixed bug 28760: https://bugs.freepascal.org/view.php?id=28760 This will cause compilation of win32wsdialogs.pp to fail, in particular in class procedure

Re: [Lazarus] Breaking change

2017-07-23 Thread Michael Van Canneyt via Lazarus
On Sun, 23 Jul 2017, Ondrej Pokorny via Lazarus wrote: On 23.07.2017 12:50, Michael Van Canneyt via Lazarus wrote: Directly passing an interface where (T)REFIID is expected, will no longer be possible. What is the fix? "@GetTypeData(TypeInfo(IShellItem))^.Guid" ? That is on

Re: [Lazarus] Breaking change

2017-07-23 Thread Michael Van Canneyt via Lazarus
On Sun, 23 Jul 2017, Martok via Lazarus wrote: { IUnknown } function QueryInterface({$IFDEF FPC_HAS_CONSTREF}constref{$ELSE}const{$ENDIF} IID: TGUID; out Obj): Hresult; virtual; {$IFNDEF WINDOWS}cdecl{$ELSE}stdcall{$ENDIF}; That is a historical monstrosity :) I a gree we can do

Re: [Lazarus] Breaking change

2017-07-23 Thread Michael Van Canneyt via Lazarus
On Sun, 23 Jul 2017, Martok via Lazarus wrote: Am 23.07.2017 um 14:24 schrieb Michael Van Canneyt via Lazarus: The pointer-ness of REFIID is an artefact of the C-ABI. It is not meant to mean 'pass a pointer to a GUID-struct', but 'pass a GUID using byref'. We have constref for that. See

Re: [Lazarus] Breaking change

2017-07-23 Thread Michael Van Canneyt via Lazarus
On Sun, 23 Jul 2017, Martok via Lazarus wrote: Hello, I have fixed bug 28760: https://bugs.freepascal.org/view.php?id=28760 as the reporter: not really. The pointer-ness of REFIID is an artefact of the C-ABI. It is not meant to mean 'pass a pointer to a GUID-struct', but 'pass a GUID

[Lazarus] Breaking change

2017-07-23 Thread Michael Van Canneyt via Lazarus
Hello, I have fixed bug 28760: https://bugs.freepascal.org/view.php?id=28760 This will cause compilation of win32wsdialogs.pp to fail, in particular in class procedure TWin32WSOpenDialog.SetupVistaFileDialog(ADialog: IFileDialog; const AOpenDialog: TOpenDialog); search for: if InitialDir

[Lazarus] TStringStream changes

2017-07-21 Thread Michael Van Canneyt via Lazarus
Hello, TStringStream now observes encoding, following the fix for: https://bugs.freepascal.org/view.php?id=30508 Basically, this is a Delphi compatibility fix. This may impact some programs which use encodings that deviate from the default system encoding. In that case, the solution is to

Re: [Lazarus] Congrats to the FPC/Lazarus projects - job well done!

2017-07-20 Thread Michael Van Canneyt via Lazarus
On Thu, 20 Jul 2017, Juha Manninen via Lazarus wrote: On Thu, Jul 20, 2017 at 2:39 PM, Ondrej Pokorny via Lazarus wrote: IMO we should give the Lazarus foundation more importance/advertisement. It should be the other way around. The foundation should

Re: [Lazarus] Cross OS API Wrappers

2017-07-10 Thread Michael Van Canneyt via Lazarus
On Mon, 10 Jul 2017, R0b0t1 via Lazarus wrote: Hello, I was wondering if cross-platform (Linux, BSD, Windows) wrappers exist for certain goals like "create a system timer" or "use asynchronous IO." A good example would be a class which uses timerfds and epoll on Linux, kqueues and kevent on

Re: [Lazarus] GetAppConfigDir and GetAppConfigDirUTF8 and Apache

2017-07-06 Thread Michael Van Canneyt via Lazarus
On Thu, 6 Jul 2017, Andrea Mauri via Lazarus wrote: Dear all, I have a question related GetAppConfigDir function when the application is called from a script being run by apache. One of my application user gets this result from GetAppConfigDir(False): /root/.config/myappname since my app

Re: [Lazarus] Lazarus Release Candidate 3 of 1.8.0

2017-07-05 Thread Michael Van Canneyt via Lazarus
On Wed, 5 Jul 2017, Juha Manninen via Lazarus wrote: On Wed, Jul 5, 2017 at 12:49 AM, brian via Lazarus wrote: I think "annoying" is a bit of an understatement, myself. If the final release of 1.8 still shows the problem *for me*, then I'm certainly going to

Re: [Lazarus] Res leaks on exiting gtk2 app

2017-06-14 Thread Michael Van Canneyt via Lazarus
On Wed, 14 Jun 2017, Mattias Gaertner via Lazarus wrote: On Wed, 14 Jun 2017 12:02:34 +0300 Alexey via Lazarus wrote: CudaText app, gtk2 WS. I run it from terminal, it loads dir to Treeview [only top level of /usr], i exit. Why do you think this is a bug in

Re: [Lazarus] Lazarus The Complete Guide

2017-05-23 Thread Michael Van Canneyt via Lazarus
On Tue, 23 May 2017, Salvatore Coppola via Lazarus wrote: Hi to all the authors, is in program a new edition of the guide? Yes, but no date is set. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

Re: [Lazarus] Attn Michael, uses section

2017-05-18 Thread Michael Van Canneyt via Lazarus
On Thu, 18 May 2017, Mattias Gaertner via Lazarus wrote: On Thu, 18 May 2017 13:46:07 +0200 Joe via Lazarus wrote: [...] > Either move the Windows unit in front of the SysUtils unit, or use > SysUtils.GetEnvironmentVariable Yes, both solutions work; thank

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-18 Thread Michael Van Canneyt via Lazarus
On Thu, 18 May 2017, Luca Olivetti via Lazarus wrote: El 18/05/17 a les 09:17, Luca Olivetti via Lazarus ha escrit: El 17/05/17 a les 20:22, Luca Olivetti via Lazarus ha escrit: El 17/05/17 a les 20:16, Luca Olivetti via Lazarus ha escrit: Excellent, this is OK, with my selected fonts and

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-17 Thread Michael Van Canneyt via Lazarus
On Thu, 18 May 2017, Kostas Michalopoulos via Lazarus wrote: I've noticed that the window shrinking bug in window maker with Gtk2 is still there, but i finally managed to figure it out and made a fix. I originally wrote the fix in 1.8RC1 so it should apply there, but the patch is against SVN.

Re: [Lazarus] Form resize to standard size in IDE.

2017-05-16 Thread Michael Van Canneyt via Lazarus
On Tue, 16 May 2017, Ondrej Pokorny via Lazarus wrote: On 16.05.2017 20:44, Michael Van Canneyt via Lazarus wrote: Anything else I can do ? (except dumping linux mint, obviously...) Maybe this is an option for you until it gets properly fixed: you could build the IDE for Qt. (You can

Re: [Lazarus] Form resize to standard size in IDE.

2017-05-16 Thread Michael Van Canneyt via Lazarus
On Mon, 8 May 2017, zeljko wrote: On 08.05.2017 15:51, Michael Van Canneyt wrote: How can I investigate this ? Where can/should I put some writelns to see what is happening ? I don't mind helping out, but I need some pointers where to start. Gtk2WSForms.pp , line 168 see my comment

Re: [Lazarus] Menu editor unstable? - stack trace

2017-05-09 Thread Michael Van Canneyt via Lazarus
On Tue, 9 May 2017, Michael W. Vogel via Lazarus wrote: Am 09.05.2017 um 15:15 schrieb Michael Van Canneyt via Lazarus: Hi, I manage to reliably reproduce it ! 1 Open attached project. 2 Double click MainMenu1 to edit 3 Under MenuItem5, delete MenuItem14,13,12,11 (I use the - button

Re: [Lazarus] Menu editor unstable? - stack trace

2017-05-09 Thread Michael Van Canneyt via Lazarus
- Open project - Select a popup menu (there are several) - Double click to edit - Select menu item 1 - Immediatly select menu item 2 Here, the crash happens when going to the object inspector. If you want, you can add a minimal example and explain every single step again, what you do,

[Lazarus] intercepting keyboard events

2017-05-08 Thread Michael Van Canneyt via Lazarus
Hi, How can I respond to keyboard events in a TCustomControl (and hence TWinControl) descendent ? I have asigned the various OnKey* events handlers but they are not called. My control also does not seem to receive focus when clicked, I assume this is why it doesn't get keyboard events

Re: [Lazarus] Menu editor unstable? - stack trace

2017-05-08 Thread Michael Van Canneyt via Lazarus
On Mon, 8 May 2017, Michael W. Vogel via Lazarus wrote: Am 08.05.2017 um 15:09 schrieb Michael Van Canneyt via Lazarus: I managed to produce a stacktrace. Hopefully this, combined with the stacktrace at the end is sufficient to solve the issue. Michael. (gdb) cont Continuing. WARNING

Re: [Lazarus] Form resize to standard size in IDE.

2017-05-08 Thread Michael Van Canneyt via Lazarus
On Mon, 8 May 2017, zeljko wrote: On 08.05.2017 12:08, Michael Van Canneyt via Lazarus wrote: On Mon, 8 May 2017, Fabio Luis Girardi via Lazarus wrote: Em 8 de mai de 2017 04:43, "Michael Van Canneyt via Lazarus" < lazarus@lists.lazarus-ide.org> escreveu: On Mon, 8

Re: [Lazarus] Menu editor unstable? - stack trace

2017-05-08 Thread Michael Van Canneyt via Lazarus
y On Mon, 8 May 2017, Michael Van Canneyt via Lazarus wrote: On Mon, 8 May 2017, Juha Manninen via Lazarus wrote: Can you please create a proper backtrace with gdb using the latest Lazarus trunk. It shows also function names and parameter values etc. I was actually able to reproduce

Re: [Lazarus] Menu editor unstable? - stack trace

2017-05-08 Thread Michael Van Canneyt via Lazarus
On Mon, 8 May 2017, Juha Manninen via Lazarus wrote: Can you please create a proper backtrace with gdb using the latest Lazarus trunk. It shows also function names and parameter values etc. I was actually able to reproduce the access violation once but not more however much I tried. The

Re: [Lazarus] Form resize to standard size in IDE.

2017-05-08 Thread Michael Van Canneyt via Lazarus
On Mon, 8 May 2017, Fabio Luis Girardi via Lazarus wrote: Em 8 de mai de 2017 04:43, "Michael Van Canneyt via Lazarus" < lazarus@lists.lazarus-ide.org> escreveu: On Mon, 8 May 2017, Kostas Michalopoulos via Lazarus wrote: Maybe it is also related to the problem i mentione

Re: [Lazarus] Form resize to standard size in IDE.

2017-05-08 Thread Michael Van Canneyt via Lazarus
On Mon, 8 May 2017, Kostas Michalopoulos via Lazarus wrote: Maybe it is also related to the problem i mentioned a few days ago? It does sound kind of similar to what i demo in the video here: https://webmshare.com/q78rb It certainly looks like it. Michael. On Mon, May 8, 2017 at

Re: [Lazarus] Form resize to standard size in IDE.

2017-05-07 Thread Michael Van Canneyt via Lazarus
On Sun, 7 May 2017, zeljko wrote: If you suspect on HiDPI then you should disable scaling at application level (lazaruside) via Application.Scaled := False (or similar prop name) . In that case TCustomForm.Scaled should not be taken into account in any case. Is there a command-line option

Re: [Lazarus] RTTI grid with multiple objects ?

2017-05-07 Thread Michael Van Canneyt via Lazarus
On Sun, 7 May 2017, Mattias Gaertner via Lazarus wrote: On Sun, 7 May 2017 15:15:29 +0200 (CEST) Michael Van Canneyt via Lazarus <lazarus@lists.lazarus-ide.org> wrote: Hello, How to make the RTTI property grid display the properties of a set of TComponents ? Currently I have: (

[Lazarus] RTTI grid with multiple objects ?

2017-05-07 Thread Michael Van Canneyt via Lazarus
Hello, How to make the RTTI property grid display the properties of a set of TComponents ? Currently I have: (MyGrid is the property grid) Var I : integer; L : TPersistentSelectionList; begin C:=0; L:=MyGrid.Selection; L.BeginUpdate; try L.Clear; if Not

Re: [Lazarus] TSQLQuery Scroll events

2017-05-07 Thread Michael Van Canneyt via Lazarus
On Sun, 7 May 2017, kapibara via Lazarus wrote: I made a test app to unerstand more about TSQLQuery events. It requires SQLite and has one table with three records. 1) Why does the dataset scroll 6 times to open a query that has a resultset with three records? 2) Also, directly after

Re: [Lazarus] Annoying lazarus mailing list behaviour

2017-05-07 Thread Michael Van Canneyt via Lazarus
On Sun, 7 May 2017, Sven Barth via Lazarus wrote: Am 07.05.2017 12:11 schrieb "Michael Van Canneyt via Lazarus" < lazarus@lists.lazarus-ide.org>: Hi, Can we please get rid of the Cc: being added to the mails sent through the lazarus mailing list ? In most cases, when

Re: [Lazarus] Menu editor unstable?

2017-05-07 Thread Michael Van Canneyt via Lazarus
On Sun, 7 May 2017, Mattias Gaertner via Lazarus wrote: On Sat, 6 May 2017 21:26:38 +0200 (CEST) Michael Van Canneyt via Lazarus <lazarus@lists.lazarus-ide.org> wrote: [...] I have not exactly been able to reproduce reliably, but the following just triggered it: - Start IDE - Open p

Re: [Lazarus] Installation issue - unit not found

2017-05-07 Thread Michael Van Canneyt via Lazarus
On Sun, 7 May 2017, Gabriella Lynns via Lazarus wrote: I have been trying to install Lazarus for two unprivileged users, each in a subdirectory of their own $HOME  I've been using a script originally from getlazarus.org   The first installation went smoothly. The second, using exactly the

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Michael Van Canneyt via Lazarus
On Fri, 5 May 2017, Mattias Gaertner via Lazarus wrote: On Fri, 5 May 2017 12:52:48 +0200 (CEST) Michael Van Canneyt via Lazarus <lazarus@lists.lazarus-ide.org> wrote: [...] I propose to let the compiler observe the BOM. But I don't think more is needed. FPC observes the BOM

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Michael Van Canneyt via Lazarus
On Fri, 5 May 2017, Juha Manninen via Lazarus wrote: On Fri, May 5, 2017 at 9:43 AM, Michael Van Canneyt via Lazarus <lazarus@lists.lazarus-ide.org> wrote: What tricks do you still need in 3.0.x ? The annoying tricky part with our UTF-8 solution is the assignment of Unicode string li

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Michael Van Canneyt via Lazarus
On Fri, 5 May 2017, Ondrej Pokorny via Lazarus wrote: On 05.05.2017 11:17, Michael Van Canneyt via Lazarus wrote: On Fri, 5 May 2017, Graeme Geldenhuys via Lazarus wrote: On 2017-05-05 07:43, Michael Van Canneyt via Lazarus wrote: As far as I know, you don't need any tricks to work

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Michael Van Canneyt via Lazarus
On Fri, 5 May 2017, Ondrej Pokorny via Lazarus wrote: On 05.05.2017 11:06, Graeme Geldenhuys via Lazarus wrote: On 2017-05-05 07:43, Michael Van Canneyt via Lazarus wrote: As far as I know, you don't need any tricks to work with unicode filenames or output in 3.0.2. Maybe with exception

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Michael Van Canneyt via Lazarus
On Fri, 5 May 2017, Graeme Geldenhuys via Lazarus wrote: On 2017-05-05 07:43, Michael Van Canneyt via Lazarus wrote: As far as I know, you don't need any tricks to work with unicode filenames or output in 3.0.2. Maybe with exception of TStrings and TFileStream. Again, I didn't have time

Re: [Lazarus] Startup environment: to Gui, or not to GUI?

2017-05-04 Thread Michael Van Canneyt via Lazarus
On Thu, 4 May 2017, Mark Morgan Lloyd via Lazarus wrote: On 11/04/17 09:30, Mark Morgan Lloyd via Lazarus wrote: Apologies if this is an FAQ. Is there an orthodox way that a Lazarus program can very early on look at how it's been started and decide whether it can usefully fall back to a text

Re: [Lazarus] Configure IDE dlg tab-set

2017-04-23 Thread Michael Van Canneyt via Lazarus
On Sun, 23 Apr 2017, Mattias Gaertner via Lazarus wrote: On Sun, 23 Apr 2017 11:13:43 +0200 (CEST) Michael Van Canneyt via Lazarus <lazarus@lists.lazarus-ide.org> wrote: [...] I like your use of "soon" :-) Given that the dialog has not changed substantially in many years,

Re: [Lazarus] Configure IDE dlg tab-set

2017-04-23 Thread Michael Van Canneyt via Lazarus
On Sun, 23 Apr 2017, Mattias Gaertner via Lazarus wrote: On Sun, 23 Apr 2017 10:49:02 +0200 (CEST) Michael Van Canneyt via Lazarus <lazarus@lists.lazarus-ide.org> wrote: [...] *If* something needs to be removed, I would remove the listbox. It only takes up a lot of space, and it's

Re: [Lazarus] Configure IDE dlg tab-set

2017-04-23 Thread Michael Van Canneyt via Lazarus
On Sun, 23 Apr 2017, Sandro Cumerlato via Lazarus wrote: With Michael explanation it looks like the best solution. Sorry for my misunderstanding. ? No need to apologize. All is clear in the end, that's what matters :) Michael. -- ___ Lazarus

Re: [Lazarus] Configure IDE dlg tab-set

2017-04-23 Thread Michael Van Canneyt via Lazarus
On Sun, 23 Apr 2017, Sandro Cumerlato via Lazarus wrote: If I have understand correctly, it is better to have only one list. I prefer the left Listbox. Ah... Why is it better ? I quite like the fact that there are 2 possibilities ? Seems very much like a matter of taste to me. Michael.

Re: [Lazarus] Configure IDE dlg tab-set

2017-04-23 Thread Michael Van Canneyt via Lazarus
On Sun, 23 Apr 2017, Sandro Cumerlato via Lazarus wrote: On 23 Apr 2017 10:30, "Graeme Geldenhuys Simply remove the listbox and then place error state icons in the tabs where applicable. So you will still get an overview of what settings are wrong. -1 IMHO left ListBox is better because

Re: [Lazarus] Configure IDE dlg tab-set

2017-04-23 Thread Michael Van Canneyt via Lazarus
On Sun, 23 Apr 2017, Alexey via Lazarus wrote: This dialog has one tabset -from PageControl, and another - from left Listbox/Listview. Confusing. Better leave one Listbox. Picture. Can you explain in more detail what is wrong with the dialog ? I look at this picture, and I see absolutely

<    3   4   5   6   7   8   9   >