[Lazarus] compiling PowerPDF on win32

2013-01-30 Thread Tobias Diekershoff
Dear list, I have a problem compiling PowerPDF and seek your knowledge to solve it. I've written a program on Linux where the PowerPDF works perfectly, but when I tried to compile it on the machine at work (Windows XP) it gives an Illegal type conversion 'Short String' to 'PChar' in

Re: [Lazarus] compiling PowerPDF on win32

2013-01-30 Thread leledumbo
Looks like Delphi mode or AnsiString as default string option is missing... Strings other than ShortStrings should be convertible to PChar. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-compiling-PowerPDF-on-win32-tp4028928p4028929.html Sent from the

Re: [Lazarus] compiling PowerPDF on win32

2013-01-30 Thread silvioprog
2013/1/30 Tobias Diekershoff tobias.diekersh...@gmx.net Dear list, I have a problem compiling PowerPDF and seek your knowledge to solve it. I've written a program on Linux where the PowerPDF works perfectly, but when I tried to compile it on the machine at work (Windows XP) it gives an

Re: [Lazarus] compiling PowerPDF on win32

2013-01-30 Thread Michael Van Canneyt
On Wed, 30 Jan 2013, silvioprog wrote: 2013/1/30 Tobias Diekershoff tobias.diekersh...@gmx.net Dear list, I have a problem compiling PowerPDF and seek your knowledge to solve it. I've written a program on Linux where the PowerPDF works perfectly, but when I tried to

Re: [Lazarus] compiling PowerPDF on win32

2013-01-30 Thread silvioprog
2013/1/30 Michael Van Canneyt mich...@freepascal.org On Wed, 30 Jan 2013, silvioprog wrote: 2013/1/30 Tobias Diekershoff tobias.diekersh...@gmx.net Dear list, I have a problem compiling PowerPDF and seek your knowledge to solve it. I've written a program on Linux where

[Lazarus] Controlling access to a method

2013-01-30 Thread Mark Morgan Lloyd
Given a fragment of code like this: type TDbConfigFrame = class(TFrame) .. public { public declarations } property DbInit: TDbConfigInit write fdbInit; end; is there any way of enforcing a rule that DbInit can only be written by (for example) a descendant of TForm or TNotebook?

Re: [Lazarus] compiling PowerPDF on win32

2013-01-30 Thread Michael Van Canneyt
On Wed, 30 Jan 2013, silvioprog wrote: Interesting. Do you think the basics could be included in the standard FPC distribution ? Michael. Perfectly. IMHO, PowerPDF is well modeled, separated by layers. My changes uses pure FCL. :) There are some things to be improved

Re: [Lazarus] compiling PowerPDF on win32

2013-01-30 Thread silvioprog
2013/1/30 Michael Van Canneyt mich...@freepascal.org On Wed, 30 Jan 2013, silvioprog wrote: Interesting. Do you think the basics could be included in the standard FPC distribution ? Michael. Perfectly. IMHO, PowerPDF is well modeled, separated by layers. My changes

Re: [Lazarus] compiling PowerPDF on win32

2013-01-30 Thread Tobias Diekershoff
Hello leledumbo! On Wed, 30 Jan 2013 01:25:22 -0800 (PST) you wrote: Looks like Delphi mode or AnsiString as default string option is missing... Thanks, that was the missing spot :-) so long Tobias -- ___ Lazarus mailing list

Re: [Lazarus] Controlling access to a method

2013-01-30 Thread Hans-Peter Diettrich
Mark Morgan Lloyd schrieb: Given a fragment of code like this: type TDbConfigFrame = class(TFrame) .. public { public declarations } property DbInit: TDbConfigInit write fdbInit; end; A write-only property can be implemented by a (setter) procedure, to which you add whatever

Re: [Lazarus] Controlling access to a method

2013-01-30 Thread Mark Morgan Lloyd
Hans-Peter Diettrich wrote: Mark Morgan Lloyd schrieb: Given a fragment of code like this: type TDbConfigFrame = class(TFrame) .. public { public declarations } property DbInit: TDbConfigInit write fdbInit; end; A write-only property can be implemented by a (setter) procedure,

[Lazarus] Buttons in frames

2013-01-30 Thread Mark Morgan Lloyd
I've got a form which I'm creating manually before a program's main form, in order to read configuration settings which are needed early. The form contains a notebook, and I've implemented forward/backward buttons to give a wizard-like interface. It's also got a modal cancel button to prevent

Re: [Lazarus] Controlling access to a method

2013-01-30 Thread Mattias Gaertner
On Wed, 30 Jan 2013 11:18:08 + Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Given a fragment of code like this: type TDbConfigFrame = class(TFrame) .. public { public declarations } property DbInit: TDbConfigInit write fdbInit; end; is there any way

Re: [Lazarus] Buttons in frames

2013-01-30 Thread Mattias Gaertner
On Wed, 30 Jan 2013 14:06:49 + Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: I've got a form which I'm creating manually before a program's main form, in order to read configuration settings which are needed early. The form contains a notebook, and I've implemented

Re: [Lazarus] Controlling access to a method

2013-01-30 Thread Hans-Peter Diettrich
Mark Morgan Lloyd schrieb: Hans-Peter Diettrich wrote: Mark Morgan Lloyd schrieb: Given a fragment of code like this: type TDbConfigFrame = class(TFrame) .. public { public declarations } property DbInit: TDbConfigInit write fdbInit; end; A write-only property can be

[Lazarus] TPanel doesn´t change color if parent = TTabSheet on DesignTime

2013-01-30 Thread William Oliveira Ferreira
Hi, a friend o'mime created a project and he dropped a panel inside a tab sheet. He also changed the panel's color. O runtime panel use the setted color but on design time, it always use parent's color. Is it a case of bug report? Sample code: http://woliveiraferreira.com.br/downloads/teste.zip

[Lazarus] Can't access many tis with my account

2013-01-30 Thread William Oliveira Ferreira
Hi. Could someone check what's happening with my mantis login? It doesn't accept my password. If I try to recover my password, it doesn't recognize my email address. My login is bdexterholland. -- ___ Lazarus mailing list

Re: [Lazarus] compiling PowerPDF on win32

2013-01-30 Thread Jesus Reyes
--- El mié 30-ene-13, silvioprog silviop...@gmail.com escribió: De: silvioprog silviop...@gmail.com Asunto: Re: [Lazarus] compiling PowerPDF on win32 A: Lazarus mailing list lazarus@lists.lazarus.freepascal.org Fecha: miércoles, 30 de enero de 2013, 5:01 2013/1/30 Michael Van Canneyt

Re: [Lazarus] Controlling access to a method

2013-01-30 Thread Mark Morgan Lloyd
Hans-Peter Diettrich wrote: Mark Morgan Lloyd schrieb: Hans-Peter Diettrich wrote: Mark Morgan Lloyd schrieb: Given a fragment of code like this: type TDbConfigFrame = class(TFrame) .. public { public declarations } property DbInit: TDbConfigInit write fdbInit; end; A

[Lazarus] Form ordering problem on tiling window manager

2013-01-30 Thread Sven Barth
Hello together! I'm using the tiling windows manager Awesome ( http://awesome.naquadah.org/ ) on i386-linux-gtk2. I've set up the IDE in a way to use a floating layout instead of being tiled (because not all windows can be docked yet :( ). This sometimes works ok and I can select a different

Re: [Lazarus] Controlling access to a method

2013-01-30 Thread Hans-Peter Diettrich
Mark Morgan Lloyd schrieb: You are of course entirely right: from the POV of protecting against silly mistykes it's entirely adequate to have a validation parameter, even if it's not used for anything else. If only one initialization is sufficient, the property setter can reject any further

Re: [Lazarus] Form ordering problem on tiling window manager

2013-01-30 Thread Hans-Peter Diettrich
Sven Barth schrieb: For now I've only achieved this problem with the IDE, not with a custom program. It would be nice if someone had an idea what I could test to narrow this problem down (the console output does not print anything useful). AFAIK the IDE does much default layout management,