[Lazarus] Code tools error

2016-05-23 Thread Michael Van Canneyt
The lazarus codetools choke on this: {$SCOPEDENUMS ON} Tsensitivity = (normal,personal,private,confidential); msgraph.pas(232,35) Error: identifier expected, but private found Compiler accepts it. Reported as issue #30172 in mantis. Michael. -- _

Re: [Lazarus] HEAPTRACE IFDEF

2016-05-03 Thread Michael Van Canneyt
On Tue, 3 May 2016, Aradeonas wrote: We do have documentation, you know. Is it so much to ask to look at it ? http://www.freepascal.org/docs-html/current/prog/progsu128.html No it is not but it is not came to my searches and FPC documentation is not much good for searching at least from go

Re: [Lazarus] HEAPTRACE IFDEF

2016-05-03 Thread Michael Van Canneyt
On Tue, 3 May 2016, Aradeonas wrote: AFAIK, it's because it's not technically possible. As an amateur can I ask why? Use {$IF DECLARED(useheaptrace)} in your main project file (just like lazarus.pp uses it). Very interesting! I didnt know this ability,Thanks. How it works? what key names it

Re: [Lazarus] How to clear screen in console app

2016-04-23 Thread Michael Van Canneyt
On Sat, 23 Apr 2016, Bo Berglund wrote: On Sat, 23 Apr 2016 08:10:09 +, Mark Morgan Lloyd wrote: I don't know whether the ClrScr procedure refers to libtinfo, or what properties libtinfo thinks the debug window has. It could probably be argued that the debug window should set TERM to in

Re: [Lazarus] How to clear screen in console app

2016-04-23 Thread Michael Van Canneyt
On Sat, 23 Apr 2016, Mark Morgan Lloyd wrote: Michael Van Canneyt wrote: On Sat, 23 Apr 2016, Bo Berglund wrote: On Sat, 23 Apr 2016 07:32:55 +0200, Bo Berglund wrote: I need to make a console app that can run on Linux. It would be a simple thing I believed, but no... I cannot get the

Re: [Lazarus] How to clear screen in console app

2016-04-23 Thread Michael Van Canneyt
On Sat, 23 Apr 2016, Bo Berglund wrote: On Sat, 23 Apr 2016 07:32:55 +0200, Bo Berglund wrote: I need to make a console app that can run on Linux. It would be a simple thing I believed, but no... I cannot get the ClrScr command working, it just puts strange characters on the screen instead

Re: [Lazarus] how to check if the same identifier appear in more than 1 unit of the project?

2016-04-20 Thread Michael Van Canneyt
On Wed, 20 Apr 2016, Graeme Geldenhuys wrote: On 2016-04-20 08:32, Dennis wrote: Is there any tool to find out ? Multiple options: * Do a "Find in Files" search. * In Lazarus, place the edit cursor inside the identifier. Right Click and select "Find declaration of ". Do that in a few uni

Re: [Lazarus] fcl-web or BrookFramework queryfields array

2016-04-15 Thread Michael Van Canneyt
On Fri, 15 Apr 2016, Leonardo M. Ramé wrote: El 15/04/16 a las 16:22, Michael Van Canneyt escribió: On Fri, 15 Apr 2016, Leonardo M. Ramé wrote: Hi, I need to extract the field values of a GET query of type: http://127.0.0.1/cgi-bin/test.cgi?fields[1]=f1value&fields[2]=f2value

Re: [Lazarus] fcl-web or BrookFramework queryfields array

2016-04-15 Thread Michael Van Canneyt
On Fri, 15 Apr 2016, Leonardo M. Ramé wrote: Hi, I need to extract the field values of a GET query of type: http://127.0.0.1/cgi-bin/test.cgi?fields[1]=f1value&fields[2]=f2value Is there a way to handle this apart from HttpRequest.QueryFields? What other way would you like ? What is not go

Re: [Lazarus] [FEATURE REQUEST] Source Editor: jump to the marked line by clicking on it

2016-04-14 Thread Michael Van Canneyt
On Thu, 14 Apr 2016, Alan Corey wrote: It would be nice if these marks could accept clicks, allowing the programmer to jump to the marked line just by clicking on it. I thought in Delphi you could double-click on an error message to jump to the line where it was, but maybe I misremembered.

Re: [Lazarus] [FEATURE REQUEST] Source Editor: jump to the marked line by clicking on it

2016-04-14 Thread Michael Van Canneyt
On Thu, 14 Apr 2016, Ondrej Pokorny wrote: On 14.04.2016 17:22, silvioprog wrote: The new Source Editor shows small marks as illustrated in the attached picture. These marks are put in the exactly source line when it has warning, hints, errors, notes etc. However, in the current trunk versio

Re: [Lazarus] fpPDF: cannot embed DejaVu font

2016-04-13 Thread Michael Van Canneyt
On Wed, 13 Apr 2016, Ondrej Pokorny wrote: On 13.04.2016 18:06, Michael Van Canneyt wrote: On Wed, 13 Apr 2016, Ondrej Pokorny wrote: On 13.04.2016 17:52, Michael Van Canneyt wrote: I prefer more options, it gives more fine-grained control. We can make a CompressAll

Re: [Lazarus] fpPDF: cannot embed DejaVu font

2016-04-13 Thread Michael Van Canneyt
On Wed, 13 Apr 2016, Ondrej Pokorny wrote: On 13.04.2016 17:52, Michael Van Canneyt wrote: I prefer more options, it gives more fine-grained control. We can make a CompressAll = [poCompressText, poCompressFonts, poCompressImages]; constant if you want, which will be kept up-to-date with

Re: [Lazarus] fpPDF: cannot embed DejaVu font

2016-04-13 Thread Michael Van Canneyt
On Wed, 13 Apr 2016, Ondrej Pokorny wrote: On 13.04.2016 13:42, Michael Van Canneyt wrote: The support for compressed images and embedding of raw JPEG is in SVN too, sample program adapted to demonstrate this (-i -j command line options). Thank you very much! Just 2 points: 1.) Is the

Re: [Lazarus] fpPDF: cannot embed DejaVu font

2016-04-13 Thread Michael Van Canneyt
On Wed, 13 Apr 2016, José Mejuto wrote: El 13/04/2016 a las 13:42, Michael Van Canneyt escribió: The support for compressed images and embedding of raw JPEG is in SVN too, sample program adapted to demonstrate this (-i -j command line options). Hello, Does the library detect the same

Re: [Lazarus] FLC-PDF and LazReport

2016-04-13 Thread Michael Van Canneyt
On Wed, 13 Apr 2016, Michael W. Vogel wrote: Am 08.04.2016 um 23:40 schrieb Graeme Geldenhuys: I've written a PDF export filter, using fcl-pdf, for the fpReport (Free Pascal Reporting) project that will be released some time this year. fpReport still needs to bake a bit longer. ;-) There ar

Re: [Lazarus] fpPDF: cannot embed DejaVu font

2016-04-13 Thread Michael Van Canneyt
On Wed, 13 Apr 2016, Graeme Geldenhuys wrote: On 2016-04-13 10:54, Ondrej Pokorny wrote: Am I doing something wrong or is this a bug in fpPDF? It's a bug. The BaseFont, FontName and FontFamily names (in fact any PDFName elemens) may not contain spaces and should be escaped (or encoded). I'v

Re: [Lazarus] fpPDF: set clip rect for text

2016-04-13 Thread Michael Van Canneyt
On Wed, 13 Apr 2016, Graeme Geldenhuys wrote: On 2016-04-13 12:07, Michael Van Canneyt wrote: If the PDF format does not support some form of clipping natively, then it should not go in fpPDF. PDF supports native clipping on all graphic elements. Glyphs are part of the graphic elements

Re: [Lazarus] fpPDF: set clip rect for text

2016-04-13 Thread Michael Van Canneyt
On Wed, 13 Apr 2016, Graeme Geldenhuys wrote: On 2016-04-12 20:25, Ondrej Pokorny wrote: I need to clip text (e.g. in a table column). Is this already supported? No, I haven't done any work on using the clipping operators yet. In fpReport, text is rather wrapped than clipped. Contributions

Re: [Lazarus] PDF generator: please test

2016-04-10 Thread Michael Van Canneyt
On Sun, 10 Apr 2016, Graeme Geldenhuys wrote: On 2016-04-10 08:15, Michael Van Canneyt wrote: Wow, let me interfere here before we go in a wrong direction: The public API should not depend on the selected font. I know. The current implementation gravitated towards the situation we have

Re: [Lazarus] PDF generator: please test

2016-04-10 Thread Michael Van Canneyt
On Sun, 10 Apr 2016, Dmitry Boyarintsev wrote: On Sun, Apr 10, 2016 at 3:15 AM, Michael Van Canneyt wrote: It feels like, these two paragraphs: The user of the API should not have to care what font is used. the API should do whatever is necessary to emit correct PDF for the current font

Re: [Lazarus] PDF generator: please test

2016-04-10 Thread Michael Van Canneyt
On Sun, 10 Apr 2016, Graeme Geldenhuys wrote: On 2016-04-09 09:09, Ondrej Pokorny wrote: P.WriteText(25, 0, 'Sample Text'); // DOESN'T WORK !!! Indeed. As I mentioned, the Write*Text() names are a bit inaccurate and will be improved. At the moment WriteText() is meant for the Standard PD

Re: [Lazarus] PDF generator: please test

2016-04-09 Thread Michael Van Canneyt
On Sat, 9 Apr 2016, Graeme Geldenhuys wrote: On 2016-04-09 18:27, Ondrej Pokorny wrote: As is the text width function (for right/center alignment support). That is already implemented in fpReport (Standard PDF built-in fonts and TTF fonts). What I haven't implemented yet is Font Kerning to

Re: [Lazarus] PDF generator: please test

2016-04-09 Thread Michael Van Canneyt
On Sat, 9 Apr 2016, Ondrej Pokorny wrote: I think I'll develop a TPDFDocument->TCanvas renderer for previewing created PDF documents. Great. I should then be able to plug that into fpReport too. I want to implement a PDF & fpReport -> AggPas renderer too. We should then try to omit unnecess

Re: [Lazarus] PDF generator: please test

2016-04-09 Thread Michael Van Canneyt
On Sat, 9 Apr 2016, Ondrej Pokorny wrote: On 09.04.2016 19:00, Michael Van Canneyt wrote: On Sat, 9 Apr 2016, Ondrej Pokorny wrote: I see that the PDF generator doesn't support image compression. This is a no-go in my eyes. Is anybody working on that or should I try to study it? W

Re: [Lazarus] PDF generator: please test

2016-04-09 Thread Michael Van Canneyt
On Sat, 9 Apr 2016, Ondrej Pokorny wrote: I see that the PDF generator doesn't support image compression. This is a no-go in my eyes. Is anybody working on that or should I try to study it? We are not yet working on this, it was on the TODO list, but not very high priority. AFAIR SynPDF u

Re: [Lazarus] [fpc-pascal] PDF generator: please test

2016-04-09 Thread Michael Van Canneyt
On Sat, 9 Apr 2016, silvioprog wrote: On Fri, Apr 8, 2016 at 3:22 PM, Michael Van Canneyt wrote: [...] Graeme has fixed a number of errors that should hopefully solve the problems with codepages; Changes have been tested on windows/linux/bsd but on Windows only with a system that has an

Re: [Lazarus] PDF generator: please test

2016-04-09 Thread Michael Van Canneyt
On Sat, 9 Apr 2016, Ondrej Pokorny wrote: Please don't take it as an offence, there is no. I just first opened the PDF, saw the typo and then I had to check in the source code if it is really a typo or the library picks up the wrong character for the PDF. It is a typo, so everything is OK.

Re: [Lazarus] PDF generator: please test

2016-04-08 Thread Michael Van Canneyt
On Fri, 8 Apr 2016, Ondrej Pokorny wrote: On 08.04.2016 20:57, Ondrej Pokorny wrote: Sorry, I missed the latest revision. I'll update and report back! I updated and now SetMultiByteConversionCodePage(CP_UTF8) isn't needed. The files are exactly the same (=the same byte contents) as before

Re: [Lazarus] PDF generator: please test

2016-04-08 Thread Michael Van Canneyt
On Fri, 8 Apr 2016, Ondrej Pokorny wrote: On 08.04.2016 20:22, Michael Van Canneyt wrote: We would appreciate it if someone could test the PDF generating demo on a Windows with non-english locale, and report whether the first page of the generated PDF looks OK. I am now testing it. The

[Lazarus] PDF generator: please test

2016-04-08 Thread Michael Van Canneyt
Hello, Graeme has fixed a number of errors that should hopefully solve the problems with codepages; Changes have been tested on windows/linux/bsd but on Windows only with a system that has an english locale. These changes have been committed to FPC svn. (rev 33453) We would appreciate it if

Re: [Lazarus] Suggestion for TRadioGroup documentation

2016-04-08 Thread Michael Van Canneyt
On Fri, 8 Apr 2016, Graeme Geldenhuys wrote: On 2016-04-08 15:54, Michael Thompson wrote: To be fair, a TGroupBox gets things dropped in it, and both nomenclature and look/feel are similar. I fully agree. As far as I can remember, even in my Delphi days I've made that mistake of dropping ra

Re: [Lazarus] German umlauts in component names

2016-04-08 Thread Michael Van Canneyt
On Fri, 8 Apr 2016, Zeljko wrote: On 04/08/2016 12:24 PM, Vojtěch Čihák wrote: Why sometimes come these empty mails from jel...@misticnabica.hr? Is it regular member or some bot? I think it's hacked machine...I'll inform that ppl that they are sending spam. btw. I don't see such empty e

[Lazarus] Extend unit path

2016-04-07 Thread Michael Van Canneyt
Hi, When adding unit files from disk to a package, the IDE asks to extend the unit path with '.'. I understand why it needs to ask to extend the unit path, but for '.' this is not necessary, I think. I always click no, and I didn't get in trouble yet :) Michael. --

Re: [Lazarus] Cant compile the IDE with the most recent fpc (3.1.1)

2016-04-07 Thread Michael Van Canneyt
On Thu, 7 Apr 2016, Michael Schnell wrote: On 04/07/2016 04:19 PM, Mattias Gaertner wrote: What -Fu paths do you have in your fpc.cfg? I did suppose something like this. Am I supposed to manually edit this file even for the unmodified svn d/l ? Normally not. I have this in my fpc.cfg, it

Re: [Lazarus] Cant compile the IDE with the most recent fpc (3.1.1)

2016-04-07 Thread Michael Van Canneyt
On Thu, 7 Apr 2016, Michael Schnell wrote: On 04/06/2016 09:47 AM, Michael Schnell wrote: It happened to me (again) :(. I resolved a lot of unit referenced to fpc RTL units by defining links for the files in /usr/lib/fpc/3.1.1/units/i386-linux/rtl (I suppose I should not do that this way,

Re: [Lazarus] Search dialog scope

2016-04-07 Thread Michael Van Canneyt
On Thu, 7 Apr 2016, Ondrej Pokorny wrote: I fixed it in r52143. But the behavior is not like it was before. It's now: scope: selected text, *origin: from beginning.* for search on selection. (it was scope: selected text, origin: from cursor. before). Please test, it should fulfill your and

Re: [Lazarus] PDF generator, try 2

2016-04-07 Thread Michael Van Canneyt
On Thu, 7 Apr 2016, Graeme Geldenhuys wrote: On 2016-03-31 16:48, silvioprog wrote: +{$IFDEF VER3} + Buffer := Default(TBuffer) +{$ELSE} + FillChar(Buffer,SizeOf(TBuffer),0) +{$ENDIF}; Just thought I would mention, I've seen the above code listed a few times now to remove the fam

Re: [Lazarus] Search dialog scope

2016-04-07 Thread Michael Van Canneyt
On Thu, 7 Apr 2016, Martok wrote: Hello, Since some time, I must alwas set the scope to "selection", and the origin to 'beginning' manually. No matter where my cursor is. I am pretty sure that before, if there is a nonempty selection, the dialog would set these settings correct for me. I c

Re: [Lazarus] Search dialog scope

2016-04-07 Thread Michael Van Canneyt
On Thu, 7 Apr 2016, Ondrej Pokorny wrote: On 07.04.2016 9:34, Michael Van Canneyt wrote: Did something change in the search(&replace) dialog scope handling ? I changed it a little bit to match Delphi's behavior. The reason is described here: http://mantis.freepascal.org/view.php

[Lazarus] Search dialog scope

2016-04-07 Thread Michael Van Canneyt
Hello, Did something change in the search(&replace) dialog scope handling ? Since some time, I must alwas set the scope to "selection", and the origin to 'beginning' manually. No matter where my cursor is. I am pretty sure that before, if there is a nonempty selection, the dialog would set the

Re: [Lazarus] PDF generator, try 2

2016-04-06 Thread Michael Van Canneyt
On Thu, 7 Apr 2016, Sven Barth wrote: the SetMultiByteConversionCodePage(CP_UTF8) call makes DefaultSystemCodePage=CP_UTF8 which matches UTF8String and so in fpc_ansistr_to_ansistr no conversion is performed. And so that is why SetMultiByteConversionCodePage(CP_UTF8) is needed when compil

Re: [Lazarus] PDF generator, try 2

2016-04-06 Thread Michael Van Canneyt
On Wed, 6 Apr 2016, silvioprog wrote: On Wed, Apr 6, 2016 at 2:14 PM, Michael Van Canneyt wrote: [...] Why is this patch needed ? It should not be needed at all ? Sorry, I sent a wrong patch, please consider this new one in attachment. My patch just fix wrong chars in the generated PDF

Re: [Lazarus] PDF generator, try 2

2016-04-06 Thread Michael Van Canneyt
On Wed, 6 Apr 2016, Graeme Geldenhuys wrote: On 2016-04-06 17:57, silvioprog wrote: This attached patch definitely fixes this error on Windows. :-) This was already fixed (plus other changes). I simply forgot to send Michael the email yesterday to update FPC. Patch applied. Rev. 33428. M

Re: [Lazarus] PDF generator, try 2

2016-04-06 Thread Michael Van Canneyt
On Wed, 6 Apr 2016, silvioprog wrote: On Thu, Mar 31, 2016 at 1:17 PM, Michael Van Canneyt wrote: [...] Please, don't do {%H-} etc: procedure CreateTTFCIDSystemInfo(const {%H-}EmbeddedFontNum: integer;{%H-}FontDef: TFontDef);virtual; {$HINTS OFF} instead of it? No, fix the hin

Re: [Lazarus] PDF generator, try 2

2016-04-06 Thread Michael Van Canneyt
On Wed, 6 Apr 2016, silvioprog wrote: On Thu, Mar 31, 2016 at 1:13 PM, Michael Van Canneyt wrote: On Thu, Mar 31, 2016 at 11:18 AM, silvioprog wrote: [...] Greek: Ge?? s?? ??s Polish: Witaj swiecie Portuguese: Ol? mundo Russian: ??? Vietnamese: Xin ch?o th? gi?i This

Re: [Lazarus] TDataset result 1e2 instead of 100

2016-04-05 Thread Michael Van Canneyt
On Tue, 5 Apr 2016, John Landmesser wrote: if i execute fo example a query with a oracle Database:    Select 100 from dual;   Result will be 1e2 ( scientific notation )   as i learned from this:   https://sourceforge.net/p/zeoslib/tickets/22/   it's probably caused  by TDataset?   Is there any

Re: [Lazarus] German umlauts in component names

2016-04-02 Thread Michael Van Canneyt
On Sat, 2 Apr 2016, Martin Schreiber wrote: On Saturday 02 April 2016 10:30:51 Mattias Gaertner wrote: We have many Delphi Programs with German Umlauts in component names and would like to go to Lazarus with them. Any hints? This is not supported by FPC yet. Not supported *yet*? Shudder.

Re: [Lazarus] German umlauts in component names

2016-04-02 Thread Michael Van Canneyt
On Sat, 2 Apr 2016, Special wrote: How can I use names with German Umlauts and 'ß' in the Name Field of TButton components? For instance, I try to set MyButton.Name to "Schließenbutton" and get an error message "Komponentenname Schließenbutton ist kein gültiger Bezeichner". This happens wi

Re: [Lazarus] Xamarin becomes free and open-source

2016-04-02 Thread Michael Van Canneyt
On Sat, 2 Apr 2016, Marco van de Voort wrote: On Fri, Apr 01, 2016 at 08:58:14AM +0200, Michael Van Canneyt wrote: they've learned to love on Linux. I seriously doubt this will have any effect. Most (if not all) of their admin tools are GUI based. That makes scripting them imposs

Re: [Lazarus] The return of the dreaded "The IDE is still building"

2016-04-01 Thread Michael Van Canneyt
On Fri, 1 Apr 2016, Dmitry Boyarintsev wrote: On Fri, Apr 1, 2016 at 4:52 AM, Michael Van Canneyt wrote: See attachment. The IDE main window caption does not say 'building', and it is not building. The messages window shows the package compilation is in progress. I typicall

Re: [Lazarus] Xamarin becomes free and open-source

2016-04-01 Thread Michael Van Canneyt
On Fri, 1 Apr 2016, Santiago A. wrote: I agree that is not easy. Windows has created his own set of services, uses a strange jargon and nomenclature for services and stuff that has been there for years in unix world. But that's its strategy: Make unix admins a little more comfortable with win

[Lazarus] The return of the dreaded "The IDE is still building"

2016-04-01 Thread Michael Van Canneyt
Hi, See attachment. The IDE main window caption does not say 'building', and it is not building. It happens very seldom these days, but still. Sigh... :( Michael.-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.f

Re: [Lazarus] Xamarin becomes free and open-source

2016-04-01 Thread Michael Van Canneyt
On Fri, 1 Apr 2016, Michael Schnell wrote: On 04/01/2016 09:53 AM, Michael Van Canneyt wrote: "Windows IOT" is a misnomer. Windows = GUI. The name kind of gives it away. Of course language-wise you are right, but politically of course M$ needs to stick to the "Windows

Re: [Lazarus] Xamarin becomes free and open-source

2016-04-01 Thread Michael Van Canneyt
On Fri, 1 Apr 2016, Michael Schnell wrote: On 04/01/2016 08:58 AM, Michael Van Canneyt wrote: Some years ago they announced that the sever could run "without GUI". In fact "Windows IOT" is windows 10 without the GUI API (i.e. you can run Aervicesm but you can'

Re: [Lazarus] Xamarin becomes free and open-source

2016-03-31 Thread Michael Van Canneyt
On Thu, 31 Mar 2016, vfclists . wrote: On 31 March 2016 at 21:56, Denis Kozlov wrote: On 31/03/2016 21:31, vfclists . wrote: They are going all out against Apple and Redhat. You meant Apple and Google maybe? They target Windows, Mac/iOS and Android. A wide selection of supported platf

Re: [Lazarus] PDF generator, try 2

2016-03-31 Thread Michael Van Canneyt
On Fri, 1 Apr 2016, Ondrej Pokorny wrote: On 31.03.2016 22:58, Michael Van Canneyt wrote: I suspect this can be easily implemented. Synopse pdf is the reason I started fppdf. Synopse is heavily Windows centric, but otherwise quite capable. Yes, correct. I was who implemented exact drawing

Re: [Lazarus] PDF generator, try 2

2016-03-31 Thread Michael Van Canneyt
On Thu, 31 Mar 2016, Ondrej Pokorny wrote: On 31.03.2016 20:39, Michael Van Canneyt wrote: On Thu, 31 Mar 2016, Ondrej Pokorny wrote: A quick question (sorry I haven't tested): is word breaking supported and is it possible to get the target rect of multiline and singleline text?

Re: [Lazarus] Xamarin becomes free and open-source

2016-03-31 Thread Michael Van Canneyt
On Thu, 31 Mar 2016, Maciej Izak wrote: 2016-03-31 20:30 GMT+02:00 Anthony Walter : I thought this was newsworthy and of interest to us: https://blog.xamarin.com/xamarin-for-all/ kind of inspiration for better Lazarus and FreePascal I fail to see how ? Michael. -- ___

Re: [Lazarus] PDF generator, try 2

2016-03-31 Thread Michael Van Canneyt
On Thu, 31 Mar 2016, Ondrej Pokorny wrote: A quick question (sorry I haven't tested): is word breaking supported and is it possible to get the target rect of multiline and singleline text? It is possible to get a target rect of a single line; unit fpttf: function TextWidth(AStr: string; APo

Re: [Lazarus] PDF generator, try 2

2016-03-31 Thread Michael Van Canneyt
On Thu, 31 Mar 2016, silvioprog wrote: On Thu, Mar 31, 2016 at 11:18 AM, silvioprog wrote: On Thu, Mar 31, 2016 at 11:02 AM, Michael Van Canneyt < mich...@freepascal.org> wrote: Hello In revision 33401 of FPC subversion, a lot of fixes have been committed for Font handling in t

Re: [Lazarus] PDF generator, try 2

2016-03-31 Thread Michael Van Canneyt
On Thu, 31 Mar 2016, silvioprog wrote: On Thu, Mar 31, 2016 at 12:45 PM, silvioprog wrote: On Thu, Mar 31, 2016 at 11:18 AM, silvioprog wrote: On Thu, Mar 31, 2016 at 11:02 AM, Michael Van Canneyt < mich...@freepascal.org> wrote: Hello In revision 33401 of FPC subversion, a

Re: [Lazarus] System variables visibility

2016-03-31 Thread Michael Van Canneyt
On Thu, 31 Mar 2016, John Landmesser wrote: Hi, i developed an application ( Linux ) that need to know where $ORACLE_HOME points to. The only way was to start my app with a shell-script, defining: #! /bin/bash export ORACLE_HOME=/usr/lib/oracle/ # run my app Lazarus_Oracle_app Had n

[Lazarus] PDF generator, try 2

2016-03-31 Thread Michael Van Canneyt
Hello In revision 33401 of FPC subversion, a lot of fixes have been committed for Font handling in the PDF generator: e.g. Unicode fonts should now render correctly. The test program generates the following PDF: http://www.freepascal.org/~michael/test.pdf Page 1 looks as follows on my system:

Re: [Lazarus] Using libjpeg

2016-03-31 Thread Michael Van Canneyt
On Wed, 30 Mar 2016, Aradeonas wrote: Hi, I want use libjpeg and I found pasjpeg package in fpc that contains jpeglib.pas unit but I coudnt find a working demo to know how load a jpeg file and show it. Can anyone point me to a better direction? pasjpeg is very low-level. Why not use tfpimag

Re: [Lazarus] Testing Rapberry Pi 3 performance

2016-03-29 Thread Michael Van Canneyt
On Tue, 29 Mar 2016, Michael Schnell wrote: On 03/25/2016 12:17 PM, Graeme Geldenhuys wrote: A word of caution, there is a major bug in FPC 3.0 regarding floating point values (see the FPC mailing list), so I wouldn't recommend anybody upgrade to FPC 3.0 at this point - at least until 3.0.2

Re: [Lazarus] Having multiple Lazarus like GetLazarus version

2016-03-24 Thread Michael Van Canneyt
On Thu, 24 Mar 2016, Aradeonas wrote: How do you know that it works ? What do mean from that? If you mean GetLaarus version I have one installed and if you mean I have another old Lazarus that I tried using cfg. I understood your remark as "getlazarus offers this functionality already".

Re: [Lazarus] Having multiple Lazarus like GetLazarus version

2016-03-24 Thread Michael Van Canneyt
On Thu, 24 Mar 2016, Aradeonas wrote: Of course it looses all the settings, because you just told it to look in a different directory. Copy your original settings from their default location over to the new one and you should be good to go. Ichecked and there is not any old cfg file. Be care

Re: [Lazarus] TPQConnection and float

2016-03-22 Thread Michael Van Canneyt
On Mon, 21 Mar 2016, Björn Lundin wrote: Hi ! I'm new to Lazarus (since Saturday) but in the 90:ies id wrote some Turbo Pascal for school and liked it. However, the last 15 years, I've worked with a system written in Ada so that is the language I'm fluid in. But it is close to Pascal. So - I

Re: [Lazarus] LCL exports CC-licensed icons to every LCL application

2016-03-21 Thread Michael Van Canneyt
On Mon, 21 Mar 2016, Juha Manninen wrote: Ok, I should read the dev-list discussion more carefully. My head does not work well with licensing details. For free and open source stuff it feels like a useless extra complication. I understand it is only me and the reality is more complex. I happil

Re: [Lazarus] LCL exports CC-licensed icons to every LCL application

2016-03-21 Thread Michael Van Canneyt
On Mon, 21 Mar 2016, Ondrej Pokorny wrote: On 21.03.2016 10:49, Michael Van Canneyt wrote: Yes, but that does not tell me which of these icons are silk icons ? Yes, this is also a problem. Or are they all silk icons ? No, they are not all form silk. Lazarus developers haven't

Re: [Lazarus] LCL exports CC-licensed icons to every LCL application

2016-03-21 Thread Michael Van Canneyt
On Mon, 21 Mar 2016, Ondrej Pokorny wrote: On 21.03.2016 10:05, Michael Van Canneyt wrote: Can you please be a bit more specific ? Which silk icons are exported exactly ? It depends what units you use in your LCL application. Please see the "lcl/images" folder. All icons that a

Re: [Lazarus] LCL exports CC-licensed icons to every LCL application

2016-03-21 Thread Michael Van Canneyt
On Mon, 21 Mar 2016, Ondrej Pokorny wrote: Corresponding issue report: http://mantis.freepascal.org/view.php?id=29869 Every LCL application includes icons (at least) from the famfamfam (Silk icon set) that are licensed under Creative Commons Attribution 2.5/3.0 license. As a result every LCL

Re: [Lazarus] ActiveX in Lazarus and classic ASP

2016-03-19 Thread Michael Van Canneyt
On Thu, 17 Mar 2016, Marcos Douglas wrote: Hi, I would like to know if is possible to made an ActiveX component using FPC/Lazarus. This component will be used integrated with a classic ASP web application. As far as I know, the only thing you need to do is create a class that implements IDi

Re: [Lazarus] ActiveX in Lazarus and classic ASP

2016-03-18 Thread Michael Van Canneyt
On Fri, 18 Mar 2016, Marcos Douglas wrote: Hi Michael, On Fri, Mar 18, 2016 at 6:00 AM, Michael Van Canneyt wrote: As far as I know, the only thing you need to do is create a class that implements IDispatch. You hardly need a wizard for that, I think ? Well, using Delphi 7 I click in

Re: [Lazarus] CMS in Pascal ?

2016-03-14 Thread Michael Van Canneyt
On Mon, 14 Mar 2016, Graeme Geldenhuys wrote: On 2016-03-12 09:25, Michael Van Canneyt wrote: Is there one written in Object Pascal ? Yes, PWU (aka Powtils) included one. I used it to run a small wiki on my server some years ago. The content was in a plain text file, and the SCMS (aka

[Lazarus] CMS in Pascal ?

2016-03-12 Thread Michael Van Canneyt
Hi, I'm looking for a minimalist flat-file CMS. There are many floating around, I found a list on e.g. http://www.hongkiat.com/blog/flat-cms/ Is there one written in Object Pascal ? Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepas

Re: [Lazarus] Desktops ?

2016-03-11 Thread Michael Van Canneyt
On Fri, 11 Mar 2016, Ondrej Pokorny wrote: The OI gets correctly hidden if you load the desktop after the start of the IDE. So the problem is in IDE startup procedure that forces the OI to show. I can confirm this behaviour, yes. Michael. -- ___

Re: [Lazarus] Bug in FPC 3.0 discovered

2016-03-11 Thread Michael Van Canneyt
On Fri, 11 Mar 2016, Mattias Gaertner wrote: On Fri, 11 Mar 2016 14:12:41 +0100 (CET) Michael Van Canneyt wrote: On Fri, 11 Mar 2016, Mattias Gaertner wrote: On Fri, 11 Mar 2016 13:57:02 +0100 LacaK wrote: [...] There was discovered bug in FPC 3.0 (already fixed in trunk) when

[Lazarus] Desktops ?

2016-03-11 Thread Michael Van Canneyt
Hi, Is the current desktops functionality supposed to restore windows that were hidden ? I have 1 desktop defined, "Default". I layouted my windows, closed the object inspector window, and used 'Save current desktop' to save it as default. I quit lazarus and restarted it. It shows a default

Re: [Lazarus] Bug in FPC 3.0 discovered

2016-03-11 Thread Michael Van Canneyt
On Fri, 11 Mar 2016, Mattias Gaertner wrote: On Fri, 11 Mar 2016 13:57:02 +0100 LacaK wrote: [...] There was discovered bug in FPC 3.0 (already fixed in trunk) when currency and double data types are involved in mathematical operations like addition or multiplication. Is this bug http://b

Re: [Lazarus] Is there aTDBLabel?

2016-03-10 Thread Michael Van Canneyt
On Thu, 10 Mar 2016, LacaK wrote: It works. But still I wonder, is there a another way? I've tried TDBText but that shows th field value, not the DisplayLabel. There is no standard control for it. But it should in fact be easy to add to the LCL. I have used DB-aware version of TLabe

Re: [Lazarus] PDF generator

2016-03-09 Thread Michael Van Canneyt
On Wed, 9 Mar 2016, leledumbo wrote: I have committed a PDF generator to FPC Subversion: fcl-pdf The package must be excluded from build for msdos target because its dependencies are not available for msdos, otherwise full build will fail. There are already embedded and win16 in the exclude

Re: [Lazarus] Is there aTDBLabel?

2016-03-09 Thread Michael Van Canneyt
On Wed, 9 Mar 2016, Frans wrote: Hi I use Lazarus 1.6 on Windows 7. I've used lazdatadesktop to change the Displaylabel of the DB fields. In a DBGrid that new names popup as the column names. But in a form with TDBEdit fields I can't use a TDBLabel that automatically takes the name from the

Re: [Lazarus] Windows API calls and german Umlauts

2016-03-09 Thread Michael Van Canneyt
On Wed, 9 Mar 2016, John Landmesser wrote: Hi,   if i call a windows API function for special folder, like:   uses ... shlobj;   var AppDataPath: Array[0..MaxPathLen] of Char; begin SHGetSpecialFolderPath(0,AppDataPath,CSIDL_STARTUP,false); end;   I get on a german localized Windows XP

Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Michael Van Canneyt
On Tue, 8 Mar 2016, Reimar Grabowski wrote: On Tue, 8 Mar 2016 14:15:23 +0100 (CET) Michael Van Canneyt wrote: Well. You take yourself as a reference I think. When you called it very confusing... ... you were speaking on behalf of humanity? ... you stated an objective fact? ... you stated

Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Michael Van Canneyt
On Tue, 8 Mar 2016, Ondrej Pokorny wrote: On 08.03.2016 15:51, Michael Van Canneyt wrote: I introduced the ctrl+shift+x shortcut for the "interactive Code Completion" (class code create). Aha. This was not clear to me ? Just read the very first email from this thread :) So w

Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Michael Van Canneyt
On Tue, 8 Mar 2016, Ondrej Pokorny wrote: On 08.03.2016 15:07, Mattias Gaertner wrote: ctrl-shift-x -> ctrl-shift-alt-x >ctrl-shift-space -> ctrl-shift-alt-space >etc. > >(btw those are some ugly short-cuts) Code completion is ctrl+shift+c. I thought Michael's X was a typo or placeholder.

Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Michael Van Canneyt
On Tue, 8 Mar 2016, Reimar Grabowski wrote: On Tue, 8 Mar 2016 10:13:22 +0100 Mattias Gaertner wrote: On Tue, 8 Mar 2016 09:49:45 +0100 (CET) Michael Van Canneyt wrote: [...] No, this kind of behaviour is very confusing for me. See, fixed that for you. Because at least I and Jesus do

Re: [Lazarus] Microsoft SQL Server coming to Linux

2016-03-08 Thread Michael Van Canneyt
On Tue, 8 Mar 2016, vfclists . wrote: The cloud is getting dominated by Linux and if Microsoft doesn't have an offering there it is bound to be left out. The idea is to let customers who may be tempted switch to Linux know that SQL Server will be available for them if they do.. I'm sure th

Re: [Lazarus] Microsoft SQL Server coming to Linux

2016-03-08 Thread Michael Van Canneyt
On Tue, 8 Mar 2016, Anthony Walter wrote: For those of you using Linux with interest in database development here is some news for you: Microsoft SQL Server will soon be officially supported on Linux. https://blogs.microsoft.com/blog/2016/03/07/announcing-sql-server-on-linux/ Microsoft Exec

Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Michael Van Canneyt
On Mon, 7 Mar 2016, Jesus Reyes A. wrote: En Mon, 07 Mar 2016 21:21:03 -0600, Ondrej Pokorny escribió: I don't think this is possible or reasonable. On 08.03.2016 2:39, Dmitry Boyarintsev wrote: procedure TClass.Test(y: integer); begin x private|:= y; end; One problem is that CodeTool

Re: [Lazarus] Ann: class code creation

2016-03-07 Thread Michael Van Canneyt
On Mon, 7 Mar 2016, Ondrej Pokorny wrote: I implemented "class code creation" in r51851. I was already tired of creating/copying object variables by hand. The idea is the same as with code creation (ctrl+shift+c), but the variable is created in one of the class section: Nice, that will com

Re: [Lazarus] PDF generator

2016-03-05 Thread Michael Van Canneyt
On Sat, 5 Mar 2016, Martok wrote: Nice work! Certainly comes just in time as I'm looking at PDF libraries for the next work-related project. - On windows (possibly mac), allow to use native font mechanisms for extracting info from TTF files. Would using freetype/freetype2 make more sense?

Re: [Lazarus] PDF generator

2016-03-05 Thread Michael Van Canneyt
On Sat, 5 Mar 2016, silvioprog wrote: On Sat, Mar 5, 2016 at 2:27 PM, Michael Van Canneyt wrote: [...] Optionally: - PDF Forms ? - Archive format ? - Signatures ? - File attachments? [1] [1] https://github.com/libharu/libharu/blob/master/demo/attach.c I have added it to the list in

[Lazarus] PDF generator

2016-03-05 Thread Michael Van Canneyt
Hi, I have committed a PDF generator to FPC Subversion: fcl-pdf. Why a new pascal PDF generator ? Mainly because the existing ones written in Object Pascal suffer from several disadvantages: - Font support usually incomplete or downright buggy. - Dependency on a GUI (LCL, VCL, Windows). The l

Re: [Lazarus] How to automatically free classes/objects?

2016-03-01 Thread Michael Van Canneyt
On Tue, 1 Mar 2016, Aradeonas wrote: Subject say what I want and as discussed here there are couple of ways to do this and one of them is a custom garbage collector : http://stackoverflow.com/questions/415958/how-to-automatically-free-classes-objects I want to know is there any better way in

Re: [Lazarus] Raspberry Pi 3 Now Available

2016-02-29 Thread Michael Van Canneyt
On Mon, 29 Feb 2016, Anthony Walter wrote: This is just a heads up to Lazrus/FPC users who are interested in the Raspberry Pi. Raspberry Pi is now available. New features include integrated wireless bluetooth, and a quad-core 64-bit ARM Cortex A53 clocked at 1.2 GHz. https://www.raspberrypi.

Re: [Lazarus] [ANN] Eye Candy Controls 0.9.4

2016-02-29 Thread Michael Van Canneyt
On Sun, 28 Feb 2016, Vojtěch Čihák wrote:   Hello,   I released new version of EC-Controls. Announcement is on the forum: http://forum.lazarus.freepascal.org/index.php/topic,31734.0.html   The main thing is the new tab-control alternative with support for tab stacking and multiple rows. Im

Re: [Lazarus] Easy to use memory dataset and TMemDataset problems

2016-02-26 Thread Michael Van Canneyt
On Fri, 26 Feb 2016, Aradeonas wrote: Hi, I want a memory dataset like VirtualTable [1]and really I cant understand what are these bufdataset and memdataset and wiki[2] page as I cant make bufdataset works without a file. Why not ? It should perfectly work without file. Michael. -- ___

  1   2   3   4   5   6   7   8   9   10   >