Re: [Lazarus] software licence question - deceased author

2011-02-25 Thread Felipe Monteiro de Carvalho
2011/2/24 Flávio Etrusco flavio.etru...@gmail.com:
 IIRC (at least) on US law only the copyright holder can file an
 infrigent lawsuit,

In Brazil too

-- 
Felipe Monteiro de Carvalho

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Menu View / Source code fails to show source editor window.

2011-02-25 Thread Martin

On 25/02/2011 04:52, Peter Williams wrote:

Hi All,

Lazarus 0.9.31 Date 2011-02-13 FPC 2.4.3 SVN Revision 29483 
i386-win32-win32/win64


I am having the following problem with a Lazarus project. It compiles 
and runs okay but I am unable to view the source code.


I have about 8 forms with units, and I open the units, and open 
main.pas then select View / Source code and the source code editor 
window fails to open. I can view my forms in design mode without 
seeing the source code.




Maybe the source code window got somehow coordinates outside your visble 
screen?


Have a look t the Environment / Window options...

Martin
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] FW: *** ECN: Lazarus or Delphi 5 version of TwhForm2HTML

2011-02-25 Thread Sven Barth

Am 24.02.2011 10:23, schrieb Peter Williams:

Hi Sven,

  Date: Wed, 23 Feb 2011 16:52:14 +0100
  From: pascaldra...@googlemail.com
  To: lazarus@lists.lazarus.freepascal.org
  Subject: Re: [Lazarus] FW: *** ECN: Lazarus or Delphi 5 version of
TwhForm2HTML
 
  Am 23.02.2011 16:06, schrieb Peter Williams:
   Hi All,
  
   I have been working on a project from Delphi 3 from Ann Lynnworth which
   is Delphi form to html conversion tool.
  
   It was written for Ann's company and she has kindly offered it to the
   Lazarus community under this licence (originally commercial I believe):
  
http://creativecommons.org/licenses/by-sa/3.0/
   
Payment is by donation, at the discretion of any developer.
  
   1) I have made some progress with the code but I am stuck on how to
   install it as a registered component. Help please. I believe that the
   code exists for adding in it Delphi 3 (in this project)... it is just a
   matter of me using it in Lazarus.
  
 
  If that component is released as CreateCommons now, where can I find the
  (original) source of it? I've looked at the href.com page and haven't
  found it yet...
 

At the moment there exists only 2 copies of the source code: (1) Ann
Lynneworth has the original code with her company; and (2) I have a
slightly later copy which I have been working on.

The original code is copyright to Ann's company and sold for US$99 and
was only available by purchasing the software. The new Lazarus version
will be under the CreativeCommons licence.



Ok, now I understand ^^


I have found some documented procedures for detecting and calling the
default web browser which I want to add to the software (probably)
before releasing it.

  As I weren't yet able to look at the code I'll have to guess regarding
  your problem:
  You need to put the component into a Lazarus package (create a new
  package and add all units to it). Then you need to mark all units that
  contain a Register procedure as such (at the bottom of the package are
  two check boxes, one of them is for units with register procedures).
  Then you need to install this package into the IDE (of course you need
  to recompile the IDE then).

Yes, that's basically what I needed to know. I will need to check as
there *may* already be some Delphi 3 code which does this in the
component. I expect that there should be.



Delphi only uses a procedure called Register without the need to check 
it anywhere. But for registration in the IDE to work you need to have 
the unit in a DesignTime package (this is valid for Lazarus as well). In 
Lazarus you also must tell which units contain a Register procedure, 
because Lazarus does not detect that by itself.



I am not the original author of it. I am however, the second author to
work on this code, on Ann's behalf.

 
   2) We need to set up a repository for this project with TortoiseSVN and
   Windows on my system. I have the code and I would like to be the point
   of contact for alll changes to it.
  
 
  If it is indeed released as CreativeCommons, what about adding it to the
  Lazarus Code and Component Repository on SourceForge?

What is the procedure for doing this?



You should ask one of the Lazarus devs, e.g. Vincent Snijders.


Ann has nominated CreativeCommons as the licence which is *will* be
released under, however, it needs to be finished before it should be
released, in my opinion.

I refer to the change I mentioned above re checking for default browser
(so as to make it fully cross-platform). This code is document on the
Lazarus website, so it should not be a big deal once I can work out
*where* the code needs to be amended/inserted.

 
   All help will be appreciated. I will post the code when I know how to
   set up a repository.
  
   I have more changes to make, but they will wait until I get some
answers.


Regards,
Sven

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Portable way to get accurate timestamps?

2011-02-25 Thread Sven Barth

Am 24.02.2011 08:22, schrieb Graeme Geldenhuys:

Op 2011-02-23 18:56, Luca Olivetti het geskryf:

BTW: in which unit are clock_gettime and related constants defined?


libc   (FPC wrapper to the libc library)

...more specifically...

packages/libc/src/timeh.inc


No, no, no and again no.

Don't suggest anyone to use the unit libc. It's only there for 
compatibilty for Kylix and works only on i386-linux. If someone wants to 
have clock_gettime then a fpclock_gettime should be added to e.g. 
baseunix or linux which uses the syscall_nr_clock_gettime syscall.




I wonder if we can't use Petr's GetTickCount() implementation as default
for FPC+Linux/BSD? Anybody raised this question to the FPC developers?


But as a fallback for 2.4 kernels the old Now variant could be used.

Regards,
Sven

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Debugging fpc sources

2011-02-25 Thread Leonardo M . Ramé
On 2011-02-25 08:50:49 +0200, Graeme Geldenhuys wrote:
 To enable debug information you need to pass the -dDEBUG to the make
 command. eg:
 
 
   cd fpc-src/packages/fcl-xml
   make clean
   make OPT=-dDEBUG
   make install
 

Thanks.

-- 
Leonardo M. Ramé
http://leonardorame.blogspot.com

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Portable way to get accurate timestamps?

2011-02-25 Thread Graeme Geldenhuys
Op 2011-02-25 13:45, Sven Barth het geskryf:

 libc   (FPC wrapper to the libc library)

 ...more specifically...

 packages/libc/src/timeh.inc
 
 No, no, no and again no.
 
 Don't suggest anyone to use the unit libc. It's only there for
 compatibilty for Kylix and works only on i386-linux.

Yes, yes, yes and again yes I know that. :) That is why I explicitly
said FPC wrapper to the libc library   I did NOT say the 'libc unit'.


 
 But as a fallback for 2.4 kernels the old Now variant could be used.

Correct. Petr's implementation doesn't have that bit, but it's one
simple line to add.



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Portable way to get accurate timestamps?

2011-02-25 Thread Sven Barth

Am 25.02.2011 13:11, schrieb Graeme Geldenhuys:

Op 2011-02-25 13:45, Sven Barth het geskryf:


libc   (FPC wrapper to the libc library)

...more specifically...

packages/libc/src/timeh.inc


No, no, no and again no.

Don't suggest anyone to use the unit libc. It's only there for
compatibilty for Kylix and works only on i386-linux.


Yes, yes, yes and again yes I know that. :) That is why I explicitly
said FPC wrapper to the libc library   I did NOT say the 'libc unit'.


You were a bit vague in that regard... so I wanted to be sure :P

Regards,
Sven

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] software licence question - deceased author

2011-02-25 Thread José Mejuto
Hello Lazarus-List,

Friday, February 25, 2011, 1:16:46 PM, you wrote:

MvdV On Fri, Feb 25, 2011 at 09:54:08AM +0100, Felipe Monteiro de Carvalho 
wrote:
 2011/2/24 Fl?vio Etrusco flavio.etru...@gmail.com:
  IIRC (at least) on US law only the copyright holder can file an
  infrigent lawsuit,
 In Brazil too
MvdV Reading this I wonder how heirs are defined in this context.
MvdV Do cousins count? Second cousins? Third
MvdV degree cousins?

And, by default, finally the government.

-- 
Best regards,
 José


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Number of CPU threads

2011-02-25 Thread Kjow
2011/2/24 Mattias Gaertner nc-gaert...@netcologne.de:
 See the package mtprocs unit mtpcpu for a simple heuristic:
 http://wiki.lazarus.freepascal.org/Parallel_procedures#Getting_MTProcs

 Mattias

Thanks you very much, I will try ASAP. :)

Kjow

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] software licence question - deceased author

2011-02-25 Thread Marco van de Voort
On Fri, Feb 25, 2011 at 01:45:47PM +0100, Jos? Mejuto wrote:
 MvdV On Fri, Feb 25, 2011 at 09:54:08AM +0100, Felipe Monteiro de Carvalho 
 wrote:
  2011/2/24 Fl?vio Etrusco flavio.etru...@gmail.com:
   IIRC (at least) on US law only the copyright holder can file an
   infrigent lawsuit,
  In Brazil too
 MvdV Reading this I wonder how heirs are defined in this context.
 MvdV Do cousins count? Second cousins? Third
 MvdV degree cousins?
 
 And, by default, finally the government.

If it is not a first order relative (siblings, parents, children), then
afaik there is already a 30 or 40% tax here.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] software licence question - deceased author

2011-02-25 Thread José Mejuto
Hello Lazarus-List,

Friday, February 25, 2011, 2:56:15 PM, you wrote:

 MvdV Reading this I wonder how heirs are defined in this context.
 MvdV Do cousins count? Second cousins? Third
 MvdV degree cousins?
 And, by default, finally the government.
MvdV If it is not a first order relative (siblings, parents, children), then
MvdV afaik there is already a 30 or 40% tax here.

Are we talking about copyright ? A copyright by itself does not have
any kind of taxes because it is not monetizable. The tax is applied
over the commercial value of the copyrighted material (contable value,
if it is the right word in english) and in all this cases are zero.

PS: I'm not a lawyer or finantial expert.

-- 
Best regards,
 José


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Property Tag at TGridColumn

2011-02-25 Thread Pierre Delore
Hi Alexsander, 


Probably you have the same problem I have got. 
How to find the correct Column when you allow the user to move them. After some 
search I find that the property ID give you the index of the column. This index 
is the position of the column you define in the Column dialog box. 
With this property I was able to manage the StringGrid as I want (display, save 
column order to disk, load from disk...). 

I hope this will help you. 

-- 
Pierre Delore 

http://datalinkwristapps.free.fr 
http://dpsite.free.fr 

- Alexsander Rosa alexsander.r...@gmail.com a écrit : 
 May I suggest it? Would a patch be accepted? 

 -- 
 Atenciosamente, 
 Alexsander da Rosa 
 http://rednaxel.com 
 
 -- ___ Lazarus mailing list 
 Lazarus@lists.lazarus.freepascal.org 
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] software licence question - deceased author

2011-02-25 Thread Hans-Peter Diettrich

Marco van de Voort schrieb:

On Fri, Feb 25, 2011 at 09:54:08AM +0100, Felipe Monteiro de Carvalho wrote:

2011/2/24 Fl?vio Etrusco flavio.etru...@gmail.com:

IIRC (at least) on US law only the copyright holder can file an
infrigent lawsuit,

In Brazil too


Reading this I wonder how heirs are defined in this context.
Do cousins count? Second cousins? Third
degree cousins?


I think that heritage is a legal act in every country, with fixed rules.
Unless stated otherwise by the law, the author is free to nominate the 
heir of his work.


DoDi


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Property Tag at TGridColumn

2011-02-25 Thread Alexsander Rosa
Actually I needed it to be available at design time (i.e. visible in the
property editor/object inspector).

2011/2/25 Pierre Delore dpli...@free.fr

 Hi Alexsander,


 Probably you have the same problem I have got.
 How to find the correct Column when you allow the user to move them. After
 some search I find that the property ID give you the index of the column.
 This index is the position of the column you define in the Column dialog
 box.
 With this property I was able to manage the StringGrid as I want (display,
 save column order to disk, load from disk...).

 I hope this will help you.

 --
 Pierre Delore

 http://datalinkwristapps.free.fr
 http://dpsite.free.fr

 - Alexsander Rosa alexsander.r...@gmail.com a écrit :
  May I suggest it? Would a patch be accepted?

  --
  Atenciosamente,
  Alexsander da Rosa
  http://rednaxel.com
 
  -- ___ Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




-- 
Atenciosamente,
Alexsander da Rosa
http://rednaxel.com
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Menu View / Source code fails to show source editor window.

2011-02-25 Thread Peter Williams

Hi Martin,

Date: Fri, 25 Feb 2011 09:41:13 +
From: laza...@mfriebe.de
To: lazarus@lists.lazarus.freepascal.org
Subject: Re: [Lazarus] Menu View / Source code fails to show source editor 
window.



  



  
  
On 25/02/2011 04:52, Peter Williams wrote:

  
  Hi All,
  

  
  Lazarus 0.9.31 Date 2011-02-13 FPC 2.4.3 SVN Revision 29483
  i386-win32-win32/win64
  

  
  I am having the following problem with a Lazarus project. It
compiles and runs okay but I am unable to view the source code.
  

  
  I have about 8 forms with units, and I open the units, and
open main.pas then select View / Source code and the source code
editor window fails to open. I can view my forms in design mode
without seeing the source code.
  



Maybe the source code window got somehow coordinates outside your
visble screen?


Have a look t the Environment / Window options...


Thanks, that fixed it. It is crazy how it happened. :-) Oh well, no real harm 
done.

Martin

  


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
  --
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Property Tag at TGridColumn

2011-02-25 Thread Felipe Monteiro de Carvalho
2011/2/24 Alexsander Rosa alexsander.r...@gmail.com:
 May I suggest it? Would a patch be accepted?

Sure, please send a patch.

-- 
Felipe Monteiro de Carvalho

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] (no subject)

2011-02-25 Thread Peter Williams





Hi Vincent  Ann,
I have finished as much work as I can on the Form2Html project for Lazarus. 
Could Vincent please contact me and I will send you a copy of the zipped code 
for Lazarus (171 KB).
This code is to be included into the Lazarus component repositories.
Ann
F2H has now been released under Creative Commons Share-Alike license, the very 
brief and very clear terms of which are 
here:http://creativecommons.org/licenses/by-sa/3.0/
Best Regards,Peter E Williams

  --
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Form 2 Html project is now ready for release under Creative Commons License.

2011-02-25 Thread Peter Williams

Hi Vincent  Ann,(apologies for sending earlier copy of this with a blank 
subject).
I have finished as much work as I can on the Form2Html project for Lazarus. 
Could Vincent please contact me and I will send you a copy of the zipped code 
for Lazarus (171 KB).This code is to be included into the Lazarus component 
repositories.AnnF2H has now been released under Creative Commons Share-Alike 
license, the very brief and very clear terms of which are 
here:http://creativecommons.org/licenses/by-sa/3.0/Best Regards,Peter E 
Williams  --
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Error compiling Lazarus: makefile:29: *** You need the GNU utils package to use this Makefile. Stop.

2011-02-25 Thread Marco van de Voort
In our previous episode, Peter Williams said:
 
 Lazarus 0.9.31
 I have done a SVN Update on my c:\freepascal\laz folder and Lazarus is still 
 dated 2011-02-13

So far so good.

 I have downloaded GNU Make for Windows and GNU Utils

There should be no reason to do that. If you do that, you are asking for
trouble. Use the tried and tested versions that come with FPC releases
unless you know what you are doing.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Memory corruption when allocating and freeing 1 byte memory

2011-02-25 Thread Juha Manninen
Hi

I fixed a nasty memory corruption issue in r29667.
It happens when TRegExpr is passed an empty source file.
SearchFrm.pas has:
 RE.InputString:=Src;

Then GetMem reserves only 1 byte of memory.
Then FreeMem causes a crash and Lazarus dies (in my machine, in certain 
conditions):

Marked memory at $7F806D2E3D00 invalid
Wrong signature $1BD5F2DE instead of 4125C513
  $005D12E2 line 678 of ../inc/heaptrc.pp
  $005D1401 line 718 of ../inc/heaptrc.pp
  $005C4586 line 291 of ../inc/heap.inc
  $00F90D8A line 1187 of synregexpr.pas
  $005BDD8F line 278 of ../inc/objpas.inc
  $005F0C23 line 132 of ../objpas/sysutils/sysutils.inc
  $01155D54 line 603 of searchfrm.pas
  $01158607 line 873 of searchfrm.pas
  $01157C34 line 780 of searchfrm.pas


No useful backtrace was available from gdb and I was looking for the reason 
for some time.
This may be a bug in FPC heap manager (?) maybe related to 64-bits.
My system is AMD 64-bit Fedora Linux.

The strange thing is that I experienced the crash only with QT bindings 
although the problem has nothing to do with widget bindings.
Strange...
I bet most developers can't reproduce my findings (again).

Juha

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] SOLVED RE: Error compiling Lazarus: makefile:29: *** You need the GNU utils package to use this Makefile. Stop.

2011-02-25 Thread Peter Williams

Hi,

SOLVED.
 To: lazarus@lists.lazarus.freepascal.org
 Date: Fri, 25 Feb 2011 18:09:20 +0100
 From: mar...@stack.nl
 Subject: Re: [Lazarus] Error compiling Lazarus: makefile:29: *** You need the 
 GNU utils package to use this Makefile. Stop.
 
 In our previous episode, Peter Williams said:
  
  Lazarus 0.9.31
  I have done a SVN Update on my c:\freepascal\laz folder and Lazarus is 
  still dated 2011-02-13
 
 So far so good.
 
  I have downloaded GNU Make for Windows and GNU Utils
 
 There should be no reason to do that. If you do that, you are asking for
 trouble. Use the tried and tested versions that come with FPC releases
 unless you know what you are doing.
Thanks, I was unaware that make.exe comes with FPC installation.
I found it here:
C:\freepascal\binutils\i386-win32\make.exe
 
 
 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
  --
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] software licence question - deceased author

2011-02-25 Thread José Mejuto
Hello Lazarus-List,

Friday, February 25, 2011, 6:10:43 PM, you wrote:

 Are we talking about copyright ?
MvdV No, we are talking about inheritance in general. But it was more meant as 
an
MvdV illustration that the definition of heir can vary in law and common 
speak.

In Spain and I think in almost all Europe, the blood line level
influence the amount of taxes (taking blood line as an in law
inclusive) but the rights are not finished at a defined level, as far
away, less chances to reclaim something.

The first three levels are somehow direct candicates while far away
levels must present a complaint (I'm not sure about the word) and if
no people is presented with closer level he/she can reclaim something.
Same rules are applied (more or less) when the there is somthing like
a house but legal titular is not localizable, so heirs can reclaim the
possesion but before they must complaint in a court. This kind of
processes are usually very, very slow and can take up much more than
the legal 3 years.

-- 
Best regards,
 José


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Passing Enum as Parameter

2011-02-25 Thread DSK
Tired of thunking my head against the monitor trying to figure this out. 
I'm trying to port a tool written in Lazarus to Delphi. The tool uses 
tiOPF is called tiMapper and I'm trying to build the accompanying test 
unit. One of the huge number of compile errors I'm trying to sort out is:

functionFindByGender(const AGender: enum): integer;
[DCC Error] person_bom.pas(92): E2003 Undeclared identifier: 'enum'

Is 'enum' a valid identifier in Lazarus?

Sorry but F1 provides nothing and google comes back with 17 bazillion hits 
and not one means a damn thing to me.


Thanks,
--
DSK
Posted with 1.19.1.269


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Memory corruption when allocating and freeing 1 byte memory

2011-02-25 Thread Juha Manninen

 The strange thing is that I experienced the crash only with QT bindings
 although the problem has nothing to do with widget bindings.
 Strange...
 I bet most developers can't reproduce my findings (again).


I could not reproduce it myself on a mini-laptop. It may be a 64-bit issue.

Juha
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] (no subject)

2011-02-25 Thread Vincent Snijders
2011/2/25 Peter Williams pewilliams2...@live.com:
 Hi Vincent  Ann,
 I have finished as much work as I can on the Form2Html project for Lazarus.
 Could Vincent please contact me and I will send you a copy of the zipped
 code for Lazarus (171 KB).
 This code is to be included into the Lazarus component repositories.

Create a wiki page for your component as explained here:
http://wiki.lazarus.freepascal.org/Code_Conversion_Guide#Creating_a_Code_Release_Page

Then you can send me (a link to) a source zip.

Vincent

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] New component - Delphi Form to HTML Converter (F2H) component

2011-02-25 Thread Peter Williams

Hi Vincent,

 Date: Fri, 25 Feb 2011 21:23:37 +0100
 From: vincent.snijd...@gmail.com
 To: lazarus@lists.lazarus.freepascal.org
 Subject: Re: [Lazarus] (no subject)
 
 2011/2/25 Peter Williams pewilliams2...@live.com:
  Hi Vincent  Ann,
  I have finished as much work as I can on the Form2Html project for Lazarus.
  Could Vincent please contact me and I will send you a copy of the zipped
  code for Lazarus (171 KB).
  This code is to be included into the Lazarus component repositories.
 
 Create a wiki page for your component as explained here:
 http://wiki.lazarus.freepascal.org/Code_Conversion_Guide#Creating_a_Code_Release_Page
 
 Then you can send me (a link to) a source zip.

I have created an new entry for it here:
http://wiki.lazarus.freepascal.org/Delphi_Form_to_HTLM_converter
Actually that is a typo in the title: it should read Delphi Form to HTML 
converter ... can you please edit this?, thanks.
Where is the best location for me to upload the zip file of the source code to? 
Please tell me the URL.
 
 Vincent
 

Pew :-)
 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
  --
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Passing Enum as Parameter

2011-02-25 Thread Mattias Gaertner
On Fri, 25 Feb 2011 19:05:37 + (UTC)
DSK pnewbi...@gmail.com wrote:

 Tired of thunking my head against the monitor trying to figure this out. 
 I'm trying to port a tool written in Lazarus to Delphi. The tool uses 
 tiOPF is called tiMapper and I'm trying to build the accompanying test 
 unit. One of the huge number of compile errors I'm trying to sort out is:
 functionFindByGender(const AGender: enum): integer;
 [DCC Error] person_bom.pas(92): E2003 Undeclared identifier: 'enum'
 
 Is 'enum' a valid identifier in Lazarus?

Yes.
That means: it is not a keyword you can use it as an identifier.

 
 Sorry but F1 provides nothing and google comes back with 17 bazillion hits 
 and not one means a damn thing to me.

Have you searched for 'enum' in the tiOPF sources? Maybe you have to
add a unit to your uses section.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Passing Enum as Parameter

2011-02-25 Thread DSK

Mattias,


functionFindByGender(const AGender: enum): integer;
[DCC Error] person_bom.pas(92): E2003 Undeclared identifier: 'enum'

Is 'enum' a valid identifier in Lazarus?


Yes.
That means: it is not a keyword you can use it as an identifier.


There is no type or declared identifier enum in FPC ... thanks.


Have you searched for 'enum' in the tiOPF sources? Maybe you have to
add a unit to your uses section.


Yes I have looked, but it's likely worth another try. I'll have to have 
another look in the remaining project files as well.


Thanks,
--
DSK
Posted with 1.19.1.269


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Project template creates the .ico file

2011-02-25 Thread silvioprog
Hi,

How to set my project.ini to not create the .ico file?

My project.ini structure:

(...)
[Variables]
ProjectFile=demo
Name=DemoTemplate
Author=Silvio Clecio - silviop...@gmail.com
Description=Demo template
Recurse=0
(...)

Thanks. ^^

PS. I followed this reference:
http://wiki.lazarus.freepascal.org/Project_Templates

-- 
Silvio Clécio
==
Blog - silvioprog.com.br
Twitter - twitter.com/silvioprog
LazSolutions - code.google.com/p/lazsolutions
==

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Portable way to get accurate timestamps?

2011-02-25 Thread Bo Berglund
On Thu, 24 Feb 2011 13:17:25 +0100, Michael Schnell
mschn...@lumino.de wrote:

On 02/24/2011 12:58 PM, Bo Berglund wrote:

 It seems like I am out of luck doing this with readily available
 hardware such as PC:s, notebooks or embedded linux cards running
 software
IMHO, the _Hardware_ is not the problem at all, but the OS is. You need 
to use a decent realtime OS (or none) to get msec resolution. There are 
several projects to make Linux more realtime aware. Those that are 
usable for _real_ realtime stuff (i.e. the realtime-processes need to 
meed predefined latency specifications without any exception) use a 
realtime OS below Linux and have Linux run as the lowest priority 
process of same.


That is why I said that I would design a PCB with a MCU on board and
write a program to fix the synching problem that way. A PIC processor
with an UART and a few I/O pins to read the PPS pulse and NMEA data
from the GPS 18x LVC is what is needed.
No operating system at all in this board

I need close to millisecond timing.


-- 
Bo Berglund
Developer in Sweden


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazReport can work on Mac OS X?

2011-02-25 Thread dmitry boyarintsev
2011/2/24 Liyuan García Caballero liy...@cav.desoft.cu:
 Both i386 and PPC?

Yes. At least on i386

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus