Re: [Lazarus] Examples of CairoCanvas usage

2015-02-10 Thread Graeme Geldenhuys
On 2015-02-10 21:18, Mattias Gaertner wrote: > Where can I download that aggpas? It's included in the fpGUI repo (latest is in the 'develop' branch), but can still be used stand-alone. https://github.com/graemeg/fpGUI/tree/develop/src/corelib/render/software Regards, - Graeme - -- fpGUI Tool

Re: [Lazarus] Column ruler above a synedit

2015-02-10 Thread Martin Frb
On 10/02/2015 22:18, Mark Morgan Lloyd wrote: Martin Frb wrote: You should be able to copy the entire class TSourceLazSynSurfaceManager = class(TLazSynSurfaceManager) (It is in the IDE, but check the svn logs / blame, if no one else but me changed it then consider it lgpl+except) TopLineCoun

Re: [Lazarus] Column ruler above a synedit

2015-02-10 Thread Mark Morgan Lloyd
Martin Frb wrote: You should be able to copy the entire class TSourceLazSynSurfaceManager = class(TLazSynSurfaceManager) (It is in the IDE, but check the svn logs / blame, if no one else but me changed it then consider it lgpl+except) TopLineCount sets how much space you get on top. TSourceL

Re: [Lazarus] Examples of CairoCanvas usage

2015-02-10 Thread Mattias Gaertner
On Tue, 10 Feb 2015 09:22:17 + Graeme Geldenhuys wrote: >[...] > eg: I've used AggPas (one included with fpGUI as it is more up to date > than the Lazarus one) in console and CGI apps to generate graphs and > images (with or without text) - no dependencies on GUI toolkits or > external librar

Re: [Lazarus] Column ruler above a synedit

2015-02-10 Thread Martin Frb
You should be able to copy the entire class TSourceLazSynSurfaceManager = class(TLazSynSurfaceManager) (It is in the IDE, but check the svn logs / blame, if no one else but me changed it then consider it lgpl+except) TopLineCount sets how much space you get on top. TSourceLazSynSurfaceManager

Re: [Lazarus] another fatal eror

2015-02-10 Thread Martin Frb
On 10/02/2015 19:44, FreeMan wrote: I fix my problem. Open IDE and remove some component and rebuild, now I can build via lazbuild. But if you wanna still try find this bug, I backedup packagefiles.xml file. If lazbuild work with this file, error still going on. On 10.02.2015 21:16, Martin F

Re: [Lazarus] Column ruler above a synedit

2015-02-10 Thread Mark Morgan Lloyd
Martin Frb wrote: On 10/02/2015 19:12, Mark Morgan Lloyd wrote: Is there a preferred way of putting a column ruler above the text in a synedit, either (two lines) marking columns or (one line) marking tab positions? I've previously done this for a file viewer oriented towards large files wit

Re: [Lazarus] Examples of CairoCanvas usage

2015-02-10 Thread Graeme Geldenhuys
On 2015-02-10 13:59, Juha Manninen wrote: > BTW, does anybody know how to create PDFs with embedded fonts in a > server without X or any other GUI? > What libs are needed? This should be possible with the one included in fpGUI, once you strip the print preview dependency. Not a large job, so could

Re: [Lazarus] another fatal eror

2015-02-10 Thread FreeMan
I fix my problem. Open IDE and remove some component and rebuild, now I can build via lazbuild. But if you wanna still try find this bug, I backedup packagefiles.xml file. If lazbuild work with this file, error still going on. On 10.02.2015 21:16, Martin Frb wrote: Open the file again in gd

Re: [Lazarus] Examples of CairoCanvas usage

2015-02-10 Thread Graeme Geldenhuys
On 2015-02-10 12:27, Michael Van Canneyt wrote: > so that has been completely reworked, > it can now embed fonts on-the-fly, without external tools :) Oh, that would be a welcome change. Because of that external tool (it worked but was clunky), I kept my reports with the standard PDF fonts. Rega

Re: [Lazarus] another fatal eror

2015-02-10 Thread FreeMan
I added trace result (gdb) info line *0x100222C11 Line 729 of "lazloggerbase.pas" starts at address 0x100222bd8 and ends at 0x100222c35 . (gdb) info symbol 0x100222C11 LAZLOGGERBASE$_$TLAZLOGGER_$__$$_DBGOUT$array_of_const + 57 in section .text of /Volumes/ram_disk/opt/lazarus/lazbuild (gdb)

Re: [Lazarus] Column ruler above a synedit

2015-02-10 Thread Martin Frb
On 10/02/2015 19:12, Mark Morgan Lloyd wrote: Is there a preferred way of putting a column ruler above the text in a synedit, either (two lines) marking columns or (one line) marking tab positions? I've previously done this for a file viewer oriented towards large files with columnar text (e.

Re: [Lazarus] another fatal eror

2015-02-10 Thread Martin Frb
Open the file again in gdb, but do not run it, For each of the addresses from the trace do info line *0x100222C11 should (hopefully return something like) Line 692 of "../win/sysutils.pp" starts at address 0x428421 and ends at 0x428431 . and also do (this time no "*") info symbol 0x10

[Lazarus] Column ruler above a synedit

2015-02-10 Thread Mark Morgan Lloyd
Is there a preferred way of putting a column ruler above the text in a synedit, either (two lines) marking columns or (one line) marking tab positions? I've previously done this for a file viewer oriented towards large files with columnar text (e.g. database query output) by having two synedit

Re: [Lazarus] another fatal eror

2015-02-10 Thread Mattias Gaertner
On Tue, 10 Feb 2015 19:17:06 +0200 FreeMan wrote: > I attached results Please try this: gdb lazbuild break FPC_RAISEEXCEPTION run .. bt Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mai

Re: [Lazarus] German Umlauts and Oracle Connection

2015-02-10 Thread John Landmesser
Am 10.02.2015 um 16:17 schrieb Mattias Gaertner: SQLDB has "CharSet", but unit oracleconnection does not seem to use it. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/laza

Re: [Lazarus] another fatal eror

2015-02-10 Thread Mattias Gaertner
On Tue, 10 Feb 2015 18:38:46 +0200 FreeMan wrote: > How to do this? > typed "gdb lazbuild" gdb lazbuild run --pcp=/Users/freeman35/.lazarus --build-all --quiet --skip-dependencies --build-ide= --ws=qt --cpu=x86_64 --compiler=ppcx64 ...error... bt Mattias --

Re: [Lazarus] another fatal eror

2015-02-10 Thread FreeMan
How to do this? typed "gdb lazbuild" nearly all files: ... warning: `/Volumes/ram_disk/opt/lazarus/lcl/units/x86_64-darwin/wstoolwin.o': file time stamp mismatch. warning: `/Volumes/ram_disk/opt/lazarus/packager/../units/x86_64-darwin/nogui/packagedefs.o': can't open to read symbols: No such f

Re: [Lazarus] another fatal eror

2015-02-10 Thread Mattias Gaertner
On Tue, 10 Feb 2015 15:15:03 +0200 FreeMan wrote: > not fixed, > packagefiles.xml has this lines: > ... > > > > Value="/opt/proje_laz/components/fpspreadsheet/laz_fpspreadsheet.lpk"/> > > > > > > Value="/opt/proje_laz/comp

Re: [Lazarus] German Umlauts and Oracle Connection

2015-02-10 Thread Mattias Gaertner
On Tue, 10 Feb 2015 15:57:02 +0100 John Landmesser wrote: > Am 09.02.2015 um 20:37 schrieb Michael Van Canneyt: > > > > > > > > > Normally, I'd expect you'd have to specify UTF8 as the charset, since > > > that is what the LCL uses. SQLDB has "CharSet", but unit oracleconnection does not seem t

Re: [Lazarus] Examples of CairoCanvas usage

2015-02-10 Thread Petr Kristan
On Tue, Feb 10, 2015 at 03:53:16PM +0200, Juha Manninen wrote: > On Tue, Feb 10, 2015 at 11:40 AM, Petr Kristan wrote: > > c.Font.Name := 'Arial'; > > c.Font.Height := 12; > > Wow, my test code only needed the font definition, then it works. > My bad, I should have tested that. Normal GUI can

Re: [Lazarus] German Umlauts and Oracle Connection

2015-02-10 Thread John Landmesser
Am 09.02.2015 um 20:37 schrieb Michael Van Canneyt: > > > > > > Normally, I'd expect you'd have to specify UTF8 as the charset, since > > that is what the LCL uses. Tried a lot to get OracleConnection working with german special characters like ö ä ü ß but without success. Then i tried ZeosLib

Re: [Lazarus] Examples of CairoCanvas usage

2015-02-10 Thread Henry Vermaak
On Tue, Feb 10, 2015 at 03:19:23PM +0100, Michael Van Canneyt wrote: > On Tue, 10 Feb 2015, Juha Manninen wrote: > >On Tue, Feb 10, 2015 at 2:27 PM, Michael Van Canneyt > > wrote: > >>It is a completely reworked version of the one in fpGUI, without > >>external dependencies but with serious improve

Re: [Lazarus] Examples of CairoCanvas usage

2015-02-10 Thread Michael Van Canneyt
On Tue, 10 Feb 2015, Juha Manninen wrote: On Tue, Feb 10, 2015 at 2:27 PM, Michael Van Canneyt wrote: It is a completely reworked version of the one in fpGUI, without external dependencies but with serious improvements: the font embedding in the fpgui version is, well, rudimentary, so that h

Re: [Lazarus] Examples of CairoCanvas usage

2015-02-10 Thread Juha Manninen
On Tue, Feb 10, 2015 at 2:27 PM, Michael Van Canneyt wrote: > It is a completely reworked version of the one in fpGUI, without external > dependencies but with serious improvements: the font embedding in the fpgui > version is, well, rudimentary, so that has been completely reworked, it can > now

Re: [Lazarus] Examples of CairoCanvas usage

2015-02-10 Thread Juha Manninen
On Tue, Feb 10, 2015 at 11:40 AM, Petr Kristan wrote: > c.Font.Name := 'Arial'; > c.Font.Height := 12; Wow, my test code only needed the font definition, then it works. My bad, I should have tested that. Normal GUI canvas has some font by default. I added a simple program to components/cairoc

Re: [Lazarus] another fatal eror

2015-02-10 Thread FreeMan
not fixed, packagefiles.xml has this lines: ... Value="/opt/proje_laz/components/fpspreadsheet/laz_fpspreadsheet.lpk"/> Value="/opt/proje_laz/components/fpspreadsheet/laz_fpspreadsheet.lpk"/> this is my command line:

Re: [Lazarus] Examples of CairoCanvas usage

2015-02-10 Thread Michael Van Canneyt
On Tue, 10 Feb 2015, Graeme Geldenhuys wrote: On 2015-02-10 09:42, Juha Manninen wrote: I did not know of such PDF engine. So far I know that PowerPdf lib is limited. That's normally the case - the internet is full of unknown gems. :) A couple months back somebody asked about PDF engines i

[Lazarus] [solved]How to install SVN fpc and lazarus on OSX

2015-02-10 Thread FreeMan
I finished and tested my install svn script. I'm not add screenshot and script here, 'cos screen is bigger then 100kb :S I added info, Translate later, its hard for me. This script especially SSD lover like me :D Script add Ram drive and attach it (3GB) and use it. script calculate how long work

Re: [Lazarus] Failing to run GDB via IDE on OpenSUSE 13.2 system

2015-02-10 Thread Martin Frb
On 10/02/2015 08:05, Graeme Geldenhuys wrote: On 2015-02-10 06:44, Martin Schreiber wrote: See also http://bugs.freepascal.org/view.php?id=27188 At least we are moving in the right direction with fpdebug. I managed to follow Martin Frb. instructions on installing 'fpdebug' without any issues. I

Re: [Lazarus] Failing to run GDB via IDE on OpenSUSE 13.2 system

2015-02-10 Thread Martin Frb
On 10/02/2015 06:44, Martin Schreiber wrote: On Monday 09 February 2015 18:28:59 Graeme Geldenhuys wrote: Hi, Last week I setup a new VM with OpenSUSE 13.2 64-bit. I also installed GDB (v7.8) from the standard package repository. See also http://bugs.freepascal.org/view.php?id=27188 Its a

Re: [Lazarus] Examples of CairoCanvas usage

2015-02-10 Thread Graeme Geldenhuys
On 2015-02-10 09:42, Juha Manninen wrote: > > I did not know of such PDF engine. So far I know that PowerPdf lib is limited. That's normally the case - the internet is full of unknown gems. :) A couple months back somebody asked about PDF engines in one of the mailing lists. I posted the few I kn

Re: [Lazarus] Examples of CairoCanvas usage

2015-02-10 Thread Juha Manninen
On Tue, Feb 10, 2015 at 11:22 AM, Graeme Geldenhuys wrote: > eg: I've used AggPas (one included with fpGUI as it is more up to date > than the Lazarus one) in console and CGI apps to generate graphs and > images (with or without text) - no dependencies on GUI toolkits or > external libraries. > >

Re: [Lazarus] Examples of CairoCanvas usage

2015-02-10 Thread Petr Kristan
On Tue, Feb 10, 2015 at 10:43:34AM +0200, Juha Manninen wrote: > On Tue, Feb 10, 2015 at 9:14 AM, Petr Kristan wrote: > > My commandline program version must be linked with gtk in linux. > > I use this construction: > > > > WidgetSet := TGtk2WidgetSet.Create; > > DrawingRoutine; > > FreeAndNil(Wid

Re: [Lazarus] Examples of CairoCanvas usage

2015-02-10 Thread Graeme Geldenhuys
On 2015-02-03 00:01, Juha Manninen wrote: > I am most interested in textual data + PDF, thus TCairoPdfCanvas and > TCairoPsCanvas, but other examples are welcome, too. Must you use Cairo? I'm just asking, because if Cairo is not a requirement then very good alternatives exits. eg: I've used AggP

Re: [Lazarus] Examples of CairoCanvas usage

2015-02-10 Thread Graeme Geldenhuys
On 2015-02-10 07:14, Petr Kristan wrote: > My commandline program version must be linked with gtk in linux. Then it is not really a command line program! ;-) Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- __

Re: [Lazarus] Examples of CairoCanvas usage

2015-02-10 Thread Juha Manninen
On Tue, Feb 10, 2015 at 9:14 AM, Petr Kristan wrote: > My commandline program version must be linked with gtk in linux. > I use this construction: > > WidgetSet := TGtk2WidgetSet.Create; > DrawingRoutine; > FreeAndNil(WidgetSet); How to use the WidgetSet? Can you please test with TextOut(), and m

Re: [Lazarus] Failing to run GDB via IDE on OpenSUSE 13.2 system

2015-02-10 Thread Graeme Geldenhuys
On 2015-02-10 06:44, Martin Schreiber wrote: > See also > http://bugs.freepascal.org/view.php?id=27188 At least we are moving in the right direction with fpdebug. I managed to follow Martin Frb. instructions on installing 'fpdebug' without any issues. It allowed me to debug under OpenSUSE 13.2 wit