[Lazarus] Online LCL docs - Error 404

2009-04-28 Thread Graeme Geldenhuys
The online LCL documentation is outdated.

I am using 0.9.27. I selected the ModalResult property of a TButton in
the Object Inspector. I pressed F1 and the following URL was opened in
my web browser. Displaying error 404.

http://www.freepascal.org/docs-html/lcl/stdctrls/tcustombutton.modalresult.html


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Online LCL docs - Error 404

2009-04-28 Thread Vincent Snijders
2009/4/28, Michael Van Canneyt mich...@freepascal.org:


  On Tue, 28 Apr 2009, Graeme Geldenhuys wrote:

   The online LCL documentation is outdated.
  
   I am using 0.9.27. I selected the ModalResult property of a TButton in
   the Object Inspector. I pressed F1 and the following URL was opened in
   my web browser. Displaying error 404.
  
   
 http://www.freepascal.org/docs-html/lcl/stdctrls/tcustombutton.modalresult.html

Better use 
http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/tcustombutton.modalresult.html



 I would be very surprised if the LCL documentation was at that location,
  at least I never put it there. I think you should check your configuration.

Somebody did put something here:
http://www.freepascal.org/docs-html/lcl/

But it is old and from the time tcustombutton was in the buttons unit.

Vincent
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Online LCL docs - Error 404

2009-04-28 Thread Graeme Geldenhuys
On Tue, Apr 28, 2009 at 11:14 AM, Alexander Klenin kle...@gmail.com wrote:

 Better use 
 http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/tcustombutton.modalresult.html

 BTW, this docs page is wrong, ModalResult is not a boolean as it implies.


:-) Well spotted Alexander.  I would also suggest the following page:

http://lazarus-ccr.sourceforge.net/docs/lcl/forms/tmodalresult.html

links to the mr constants in the Controls.pp unit.  After all,
that is what is used for modal results in code and Object Inspector,
not plain integer values.


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Latest RTL, FCL and LCL online docs

2009-04-28 Thread Vincent Snijders
2009/4/28, Graeme Geldenhuys graemeg.li...@gmail.com:
 Compare these for example...

  http://lazarus-ccr.sourceforge.net/docs/rtl/
   vs
  http://www.freepascal.org/docs-html/rtl/


  Which one is newer?  fpdoc now supports a command line parameter
  (--footer-date='-mm-dd') which allows the date the documentation
  was generated on to be added to the footer. I would suggest this be
  used for RTL, FCL and LCL documentation. This clearly indicates to the
  user how old or new the documentation is.  I noticed that RTL and FCL
  documentation hosted on www.freepascal.org already uses this.


I am hesitant to do that. Documentation on sourceforge is generated
nighlty and rsynced with the files on SourceForge. It is a bit silly
to update these files daily because the datestamp changed.

For local (off line) docs it is a good idea.

Vincent
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Online LCL docs - Error 404

2009-04-28 Thread Vincent Snijders
2009/4/28, Graeme Geldenhuys graemeg.li...@gmail.com:
 On Tue, Apr 28, 2009 at 11:14 AM, Alexander Klenin kle...@gmail.com wrote:
  
   Better use 
 http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/tcustombutton.modalresult.html
  
   BTW, this docs page is wrong, ModalResult is not a boolean as it implies.



 :-) Well spotted Alexander.  I would also suggest the following page:

  http://lazarus-ccr.sourceforge.net/docs/lcl/forms/tmodalresult.html

  links to the mr constants in the Controls.pp unit.  After all,
  that is what is used for modal results in code and Object Inspector,
  not plain integer values.



Feel free to supply patches for stdctrls.xml and forms.xml in the
lazarus/docs/xml/lcl directory.

Vincent
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Latest RTL, FCL and LCL online docs

2009-04-28 Thread Graeme Geldenhuys
On Tue, Apr 28, 2009 at 11:39 AM, Vincent Snijders
vincent.snijd...@gmail.com wrote:

 I am hesitant to do that. Documentation on sourceforge is generated
 nighlty and rsynced with the files on SourceForge. It is a bit silly
 to update these files daily because the datestamp changed.

OK, I see your point.  Then again, if the documentation is generate
nightly, it is always up to date, so the whole issue of out-of-date
docs is moot.  :-)

FCL and RTL docs are not created nightly - hence the reason I thought
the LCL ones follow suit. I guess I was wrong.


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Latest RTL, FCL and LCL online docs

2009-04-28 Thread Vincent Snijders
2009/4/28, Graeme Geldenhuys graemeg.li...@gmail.com:

 OK, I see your point.  Then again, if the documentation is generate
  nightly, it is always up to date, so the whole issue of out-of-date
  docs is moot.  :-)

  FCL and RTL docs are not created nightly - hence the reason I thought
  the LCL ones follow suit. I guess I was wrong.

Why do you think so? What files are out of date on
http://lazarus-ccr.sourceforge.net/docs/rtl/
or
http://lazarus-ccr.sourceforge.net/docs/fcl/

Vincent
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Latest RTL, FCL and LCL online docs

2009-04-28 Thread Graeme Geldenhuys
Compare these for example...

http://lazarus-ccr.sourceforge.net/docs/rtl/
  vs
http://www.freepascal.org/docs-html/rtl/


Which one is newer?  fpdoc now supports a command line parameter
(--footer-date='-mm-dd') which allows the date the documentation
was generated on to be added to the footer. I would suggest this be
used for RTL, FCL and LCL documentation. This clearly indicates to the
user how old or new the documentation is.  I noticed that RTL and FCL
documentation hosted on www.freepascal.org already uses this.

I would suggest the ISO 8601 international date format (as shown
above) to prevent any confusion with dates.
Summary of ISO 8601  http://www.cl.cam.ac.uk/~mgk25/iso-time.html
  cIntlDateTimeStor = 'mmddThhmmss';// for storage
  cIntlDateTimeDisp = '-mm-dd hh:mm:ss';  // for display


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Latest RTL, FCL and LCL online docs

2009-04-28 Thread Graeme Geldenhuys
On Tue, Apr 28, 2009 at 12:07 PM, Graeme Geldenhuys
graemeg.li...@gmail.com wrote:

 FCL and RTL docs are not created nightly - hence the reason I thought
 the LCL ones follow suit. I guess I was wrong.

By that I mean the FCL and RTL docs hosted on www.freepascal.org.  Are
the FCL and RTL docs hosted on lazarus-ccr also created nightly?  Or
just the LCL ones?


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Latest RTL, FCL and LCL online docs

2009-04-28 Thread Graeme Geldenhuys
On Tue, Apr 28, 2009 at 12:20 PM, Vincent Snijders
vincent.snijd...@gmail.com wrote:
  FCL and RTL docs are not created nightly - hence the reason I thought
  the LCL ones follow suit. I guess I was wrong.

 Why do you think so? What files are out of date on
 http://lazarus-ccr.sourceforge.net/docs/rtl/
 or
 http://lazarus-ccr.sourceforge.net/docs/fcl/


As my next message said:
By that I mean the FCL and RTL docs hosted on www.freepascal.org.  Are
the FCL and RTL docs hosted on lazarus-ccr also created nightly?  Or
just the LCL ones?


So from your reply I gather that *all* documentation hosted on
lazarus-ccr (rtl, fcl and lcl) are created nightly. That's good to
know.

Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

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


Re: [Lazarus] Online LCL docs - Error 404

2009-04-28 Thread Graeme Geldenhuys
On Tue, Apr 28, 2009 at 11:50 AM, Vincent Snijders
vincent.snijd...@gmail.com wrote:

 Feel free to supply patches for stdctrls.xml and forms.xml in the
 lazarus/docs/xml/lcl directory.

Patch posted in a new thread.


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] EXC_BAD_ACCESS, Could not access memory

2009-04-28 Thread Bart
On 4/28/09, Mattias Gaertner nc-gaert...@netcologne.de wrote:
Bart schrieb:
   
I'm not even sure that Extended has the same size on all platforms.
   
[...]
  And on some machine extended can be a double.

  Mattias

And so they probably do not have the same size ...?

Another thougth.
Are you gonna run int endian-ness problems when reading files on a Mac
that are created on a PC?

Bart
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Online LCL docs - Error 404

2009-04-28 Thread Graeme Geldenhuys
On Tue, Apr 28, 2009 at 11:04 AM, Graeme Geldenhuys
graemeg.li...@gmail.com wrote:

 I'm pretty sure I did not fiddle with the help configuration. When I
 started using the Git mirror, I started with a totally fresh install
 of Lazarus and a new $HOME/.lazarus/ directory.

Strange, with a new profile directory, it uses the correct URL.


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Online LCL docs - Error 404

2009-04-28 Thread Graeme Geldenhuys
On Tue, Apr 28, 2009 at 10:03 AM, Michael Van Canneyt
mich...@freepascal.org wrote:

 http://www.freepascal.org/docs-html/lcl/stdctrls/tcustombutton.modalresult.html

 I would be very surprised if the LCL documentation was at that location,
 at least I never put it there. I think you should check your configuration.

I'm pretty sure I did not fiddle with the help configuration. When I
started using the Git mirror, I started with a totally fresh install
of Lazarus and a new $HOME/.lazarus/ directory.

I'll start a new primary config path (--pcp parameter) and see what it
does and where it goes.


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] [patch] ModalResult documentation update

2009-04-28 Thread Alexander Klenin
2009/4/28 Graeme Geldenhuys graemeg.li...@gmail.com:
 As discussed in another message thread. Here are some doc updates
 which I have tested locally. See attached patch file.

Yes, much better.

instead a few standard constants are used
I'd say usually, since some application use different ModalResults

-- 
Alexander S. Klenin
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Latest RTL, FCL and LCL online docs

2009-04-28 Thread Vincent Snijders
2009/4/28, Graeme Geldenhuys graemeg.li...@gmail.com:
 On Tue, Apr 28, 2009 at 12:54 PM, Vincent Snijders
  vincent.snijd...@gmail.com wrote:
  
   I tried to do it for the off line docs, but the --footer-date
   parameter is overridden by the --footer parameter which adds a link to
   the on-line documentation. So for now, also no date stamp in the off
   line documentation.


 As expected, but local help is not really an issue, seeing that it
  must be generated by the user itself.

Not really, it is part of releases and snapshots too.

Vincent
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] EXC_BAD_ACCESS, Could not access memory

2009-04-28 Thread Mattias Gaertner
On Tue, 28 Apr 2009 12:47:20 +0200
Bart bartjun...@gmail.com wrote:

 On 4/28/09, Mattias Gaertner nc-gaert...@netcologne.de wrote:
 Bart schrieb:

 I'm not even sure that Extended has the same size on all
 platforms.

 [...]
   And on some machine extended can be a double.
 
   Mattias
 
 And so they probably do not have the same size ...?
 
 Another thougth.
 Are you gonna run int endian-ness problems when reading files on a Mac
 that are created on a PC?

Yes, see here
http://wiki.lazarus.freepascal.org/Multiplatform_Programming_Guide#Endianess

Mattias
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Latest RTL, FCL and LCL online docs

2009-04-28 Thread Graeme Geldenhuys
On Tue, Apr 28, 2009 at 1:17 PM, Michael Van Canneyt
mich...@freepascal.org wrote:

 What is so hard about typing
 make html
 ?

/opt/fpcdocs_svn $ make html
make -C ../compiler/utils msg2inc
make: *** ../compiler/utils: No such file or directory.  Stop.
make: *** [../compiler/utils/msg2inc] Error 2


OK, so clearly 'fpcdocs_svn' must be in a different directory layout.
The README.DOCS doesn't mention a required directory structure. Also
the documentation repository (located at
http://svn.freepascal.org/svn/fpcdocs/trunk) doesn't give any
indication that it must be a sub-directory of FPC somewhere.

The readme file also says that to create html help, it uses
latex2html, but what if I am only interested in the class
documentation for RTL and FCL? Onl HTML output, not the pretty PDF
manuals that I always download. What make parameter do I pass in then
- that doesn't require latex2html? Something that only uses fpdoc for
html output?


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Latest RTL, FCL and LCL online docs

2009-04-28 Thread Graeme Geldenhuys
On Tue, Apr 28, 2009 at 2:04 PM, Graeme Geldenhuys
graemeg.li...@gmail.com wrote:


 OK, so clearly 'fpcdocs_svn' must be in a different directory layout.

I then guessed that fpcdocs_svn must be somewhere in the FPC source
directory. So I did that by creating a 'docs' symlink in my FPC source
directory:

/opt/fpc/src $ l
total 112K
-rw-r--r--  16 2009-03-13 09:28 build-stamp.i386-linux
drwxr-xr-x 20 4.0K 2009-03-13 09:26 compiler
lrwxrwxrwx  1   16 2009-04-28 14:05 docs - /opt/fpcdocs_svn
drwxr-xr-x  6 4.0K 2009-03-13 09:28 ide
drwxr-xr-x  4 4.0K 2009-03-13 09:28 installer
-rw-r--r--  1  62K 2009-03-13 09:21 Makefile
-rw-r--r--  1 6.3K 2009-03-13 09:21 Makefile.fpc
drwxr-xr-x 96 4.0K 2008-12-05 11:08 packages
drwxr-xr-x 43 4.0K 2009-03-13 09:28 rtl
-rwxrwxr--  1   67 2009-03-13 09:38 startbuild.sh
drwxr-xr-x 11 4.0K 2008-06-09 09:26 tests
drwxr-xr-x 19 4.0K 2009-03-13 09:28 utils

So now lets try the following:

/opt/fpc/src $ cd docs
/opt/fpc/src/docs $ make html
make -C ../compiler/utils msg2inc
make: *** ../compiler/utils: No such file or directory.  Stop.
make: *** [../compiler/utils/msg2inc] Error 2


Umm... see the problem?  It's just not that easy like the LCL help.
Yes I know the RTL and FCL help is obviously a bit more complex. It's
LaTeX manuals and fpdoc help all in one. But clearly this is not easy
for any user to generate HTML (from fpdoc output) help. I see LCL uses
a console application to help the build process. I thought of doing
the same thing for fpGUI Toolkit. Maybe we could knock something
together for FPC docs as well and get rid of makefiles?  And hopefully
get run of latex2html requirement for HTML class help which fpdoc can
do on it's own.

Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Latest RTL, FCL and LCL online docs

2009-04-28 Thread Michael Van Canneyt


On Tue, 28 Apr 2009, Graeme Geldenhuys wrote:

 On Tue, Apr 28, 2009 at 12:54 PM, Vincent Snijders
 vincent.snijd...@gmail.com wrote:
 
  I tried to do it for the off line docs, but the --footer-date
  parameter is overridden by the --footer parameter which adds a link to
  the on-line documentation. So for now, also no date stamp in the off
  line documentation.
 
 As expected, but local help is not really an issue, seeing that it
 must be generated by the user itself.
 
 BTW:
 The process of generating local  HTML help for LCL is pretty easy
 under Linux. Well done. Easier than RTL and FCL.  ;-)

What is so hard about typing
make html
?

Michael.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] EXC_BAD_ACCESS, Could not access memory

2009-04-28 Thread Mattias Gaertner
On Tue, 28 Apr 2009 08:16:04 +0200
Vincent Snijders vsnijd...@vodafonevast.nl wrote:

 Hans-Peter Diettrich schreef:
  Bart schrieb:
  
  I'm not even sure that Extended has the same size on all platforms.
  
  What size might it have, other than the FPU defined size?
  
  
 
 what FPU?
 
 What if some FPU does not support 80 bits floating point, but does
 support 128 bits floating point, then the extended type may be 128
 bits. Similar things happened with 'integer' too, it grew from 16 to
 32 bits.

I know that you know this, but for the others:
integer is 32bit on 64 bit machines too. AFAIK integer is only 16bit in
mode tp.

And on some machine extended can be a double.

Mattias
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Online LCL docs - Error 404

2009-04-28 Thread Graeme Geldenhuys
On Tue, Apr 28, 2009 at 10:39 AM, Vincent Snijders
vincent.snijd...@gmail.com wrote:

 Better use 
 http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/tcustombutton.modalresult.html


Thanks, this URL works perfectly.


 Somebody did put something here:
 http://www.freepascal.org/docs-html/lcl/

Could these page be deleted -- to prevent any further confusion?


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Latest RTL, FCL and LCL online docs

2009-04-28 Thread Michael Van Canneyt


On Tue, 28 Apr 2009, Graeme Geldenhuys wrote:

 On Tue, Apr 28, 2009 at 1:17 PM, Michael Van Canneyt
 mich...@freepascal.org wrote:
 
  What is so hard about typing
  make html
  ?
 
 /opt/fpcdocs_svn $ make html
 make -C ../compiler/utils msg2inc
 make: *** ../compiler/utils: No such file or directory.  Stop.
 make: *** [../compiler/utils/msg2inc] Error 2
 
 
 OK, so clearly 'fpcdocs_svn' must be in a different directory layout.
 The README.DOCS doesn't mention a required directory structure. Also
 the documentation repository (located at
 http://svn.freepascal.org/svn/fpcdocs/trunk) doesn't give any
 indication that it must be a sub-directory of FPC somewhere.
 
 The readme file also says that to create html help, it uses
 latex2html, but what if I am only interested in the class
 documentation for RTL and FCL? Onl HTML output, not the pretty PDF
 manuals that I always download. What make parameter do I pass in then
 - that doesn't require latex2html? Something that only uses fpdoc for
 html output?

The following should do it:

make rtl.chk
make fcl.chk

And you don't need latex2html, but tex4ht for the other things.

I changed the README file so it's more correct.

Michael.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] [patch] ModalResult documentation update

2009-04-28 Thread Graeme Geldenhuys
On Tue, Apr 28, 2009 at 1:38 PM, Vincent Snijders
vincent.snijd...@gmail.com wrote:

 Unfortunately my (fpc 2.3.1 version of) fpdoc doesn't generate correct
 links for mrNonme, for example. See:
 http://lazarus-ccr.sourceforge.net/docs/lcl/forms/tmodalresult.html

Umm... I'm using 2.2.5 and it works fine.

==
$ fpdoc --version
FPDoc - Free Pascal Documentation Tool
Version 2.2.5 [2009/03/13]
==

Next, I'll update the damn ugly short descriptions of the mrXXX
constants. It makes the TModalResult and Controls  Constants help
look a bit stupid.


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] fpc 2.2.4 for Lazarus tgz package

2009-04-28 Thread Osvaldo Filho
Hi, i use scripts from lazarus svn for create my debian installation
packages.
Where can a download the correct tgz package for fpc 2.2.4?

Thanks.

 

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


Re: [Lazarus] [patch] ModalResult documentation update

2009-04-28 Thread Vincent Snijders
2009/4/28, Graeme Geldenhuys graemeg.li...@gmail.com:
 As discussed in another message thread. Here are some doc updates
  which I have tested locally. See attached patch file.

Thanks. Applied.

Unfortunately my (fpc 2.3.1 version of) fpdoc doesn't generate correct
links for mrNonme, for example. See:
http://lazarus-ccr.sourceforge.net/docs/lcl/forms/tmodalresult.html

Vincent
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Latest RTL, FCL and LCL online docs

2009-04-28 Thread Graeme Geldenhuys
On Tue, Apr 28, 2009 at 2:15 PM, Michael Van Canneyt
mich...@freepascal.org wrote:

 The following should do it:

 make rtl.chk
 make fcl.chk

 And you don't need latex2html, but tex4ht for the other things.
 I changed the README file so it's more correct.

Thanks, the description is now much better (clearer).  I still have
problems though. Can I use a symlink'ed docs directory? The layout is
still as I shown in my previous email, but I get the following output.

=
/opt/fpc/src/docs $ make clean
  .removed lots of output...
/opt/fpc/src/docs $ make rtl.chk
fpdoc  --warn-no-node --package=rtl --descr=rtl.xml --content=rtl.xct
--hide-protected --descr=strutils.xml
--input=../rtl/objpas/strutils.pp  --descr=sysutils.xml
--input=../rtl/unix/sysutils.pp -Fi../rtl/objpas/sysutils
-Fi../rtl/inc  
  lots more text gets displayed and then the following
FPDoc - Free Pascal Documentation Tool
Version 2.2.5 [2009/03/13]
(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, s...@freepascal.org

An unhandled exception occurred at $080CD8D9 :
EFileNotFoundError : ../rtl/objpas/strutils.pp
  $080CD8D9
  $080CDCF4
  $080493A8
  $08049931

make: *** [rtl.chk] Error 217
=

Yet the ../rtl/objpas/strutils.pp file *does* exist.



Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Latest RTL, FCL and LCL online docs

2009-04-28 Thread Michael Van Canneyt


On Tue, 28 Apr 2009, Graeme Geldenhuys wrote:

 On Tue, Apr 28, 2009 at 2:15 PM, Michael Van Canneyt
 mich...@freepascal.org wrote:
 
  The following should do it:
 
  make rtl.chk
  make fcl.chk
 
  And you don't need latex2html, but tex4ht for the other things.
  I changed the README file so it's more correct.
 
 Thanks, the description is now much better (clearer).  I still have
 problems though. Can I use a symlink'ed docs directory? The layout is
 still as I shown in my previous email, but I get the following output.

You can't use a symlinked docs directory, the link points in the wrong
direction.

You could try symlinked rtl/compiler/packages directories from the point
of view of the docs.

Michael.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Latest RTL, FCL and LCL online docs

2009-04-28 Thread Graeme Geldenhuys
On Tue, Apr 28, 2009 at 2:47 PM, Graeme Geldenhuys
graemeg.li...@gmail.com wrote:

 Thanks, the description is now much better (clearer).  I still have
 problems though. Can I use a symlink'ed docs directory? The layout is
 still as I shown in my previous email, but I get the following output.

OK, clearly for some very strange reason symlink'ed folders are NOT
allowed.  I removed the /opt/fpc/src/docs symlink and copied the
fpcdocs_svn directory into /opt/fpc/src/

Then I ran 'make rtl.chk' and it worked!  :-)

Then I ran 'make fcl.chk' and it failed!  :-(


=
/opt/fpc/src/fpcdocs_svn $ make fcl.chk
../utils/fpdoc/fpdoc  --package=fcl --warn-no-node --descr=fcl.xml
--content=fcl.xct --import=rtl.xct,../rtl/ --descr=iostream.xml
--input=-S2 ../packages/fcl-base/src/iostream.pp  ..
   [ ** cut lots of text so I can email the output *]
FPDoc - Free Pascal Documentation Tool
Version 2.2.5 [2009/03/13]
(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, s...@freepascal.org

An unhandled exception occurred at $080CD8D9 :
EFileNotFoundError : ../packages/fcl-base/src/ascii85.pp
  $080CD8D9
  $080CDCF4
  $080493A8
  $08049931

make: *** [fcl.chk] Error 217
===

Ah, now it's actually reporting a missing unit. ascii85.pp doesn't
exist in FPC 2.2.5.  Any ideas how I can make it works without using
FPC trunk?

PS:
  I'm working on some minor improvements to the fpdoc.css file as
well. It doesn't have any formatting for definition lists.

Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

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


[Lazarus] new definition list formatting for HTML docs

2009-04-28 Thread Graeme Geldenhuys
Hi,

Currently dl tags or definition lists are not formatted at all in
the default fpdoc.css file (used for FPC and Lazarus documentation).

http://lazarus-ccr.sourceforge.net/docs/rtl/sysutils/formatchars.html

Above is the original unformatted definition lists. As you can see,
it doesn't look very nice. It's cluttered and hard to read.

The attached images shows the new formatting output. Is this
acceptable?  If so, I'll submit patches to FPC and Lazarus projects.
Is there a fpdoc source files that generates the default fpdoc.css as
well that I might have to patch?


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
attachment: docs_new.png___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Latest RTL, FCL and LCL online docs

2009-04-28 Thread Vincent Snijders
2009/4/28, Michael Van Canneyt mich...@freepascal.org:


  On Tue, 28 Apr 2009, Graeme Geldenhuys wrote:
   Thanks, the description is now much better (clearer).  I still have
   problems though. Can I use a symlink'ed docs directory? The layout is
   still as I shown in my previous email, but I get the following output.


 You can't use a symlinked docs directory, the link points in the wrong
  direction.

  You could try symlinked rtl/compiler/packages directories from the point
  of view of the docs.

I just do:
FPCSRCDIR=/path/to/fpc/sources
make rtl.chk FPCSRCDIR=$FPCSRCDIR

Vincent
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Latest RTL, FCL and LCL online docs

2009-04-28 Thread Graeme Geldenhuys
On Tue, Apr 28, 2009 at 2:54 PM, Michael Van Canneyt
mich...@freepascal.org wrote:

 You can't use a symlinked docs directory, the link points in the wrong
 direction.

 You could try symlinked rtl/compiler/packages directories from the point
 of view of the docs.

I'm curious as to why it should make a difference?  If I am in the
'fpcdocs_svn' directory (symlinked into /opt/fpc/src/docs) I can do a
'ls -l ../rtl/*' and see the relevant files. So why doesn't the make
work.


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] new definition list formatting for HTML docs

2009-04-28 Thread Vincent Snijders
2009/4/28, Graeme Geldenhuys graemeg.li...@gmail.com:
 Hi,

  Currently dl tags or definition lists are not formatted at all in
  the default fpdoc.css file (used for FPC and Lazarus documentation).

  http://lazarus-ccr.sourceforge.net/docs/rtl/sysutils/formatchars.html

  Above is the original unformatted definition lists. As you can see,
  it doesn't look very nice. It's cluttered and hard to read.

  The attached images shows the new formatting output. Is this
  acceptable?  If so, I'll submit patches to FPC and Lazarus projects.

For me it is. It is better than now.

Vincent
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] EXC_BAD_ACCESS, Could not access memory

2009-04-28 Thread Roland Turcan
 27.4.2009 19:26 - Mattias Gaertner nc-gaert...@netcologne.de 
MG Use packed records and add gap variables.

U, look at this:

TYPE TPackedGap =PACKED RECORD
   VarInteger :INTEGER;
   Dummy1 :INTEGER;
   VarDouble  :DOUBLE;
   VarBoolean :BOOLEAN;
   VarBoolean2:BOOLEAN;
   Dummy2 :Word;
   Dummy3 :INTEGER;
 END;


... and I would expect, that the binary representation of this
definition will keep the order of variables from definition, but it
doesn't.

Could somebody explain what rules is applied to change the order of
variables in memory?

TRoland;

 27.4.2009 19:26 - Mattias Gaertner nc-gaert...@netcologne.de 
MG On Mon, 27 Apr 2009 17:27:30 +0200
MG Roland Turcan k...@rotursoft.sk wrote:

 Hello Dmitry,
 
 Thanks for your reply, but I think, that you haven't understood me
 what I am trying to explain.
 
 I have binary contents which are copied from memory using by an
 application which is written in Delphi. I am porting an application to
 MacOS X 10.5, but I need to use the same structures as I have in
 Delphi and Kylix where NOT PACKED records are aligned.
 
 The fact is, that FPC compiler on intel based Mac OS X builds up
 application which contains records packed by 4 bytes by default.

MG Use packed records and add gap variables.

MG  
 I need to get the same behavior in intel based mac os x as I have in
 other platforms.
 
 What should I do to build FPC compiler which will behave the same on
 all platforms.

MG This won't work. The other sources and libs expect another alignment.
MG FPC uses the various alignments for good reason.


MG Mattias
MG ___
MG Lazarus mailing list
MG Lazarus@lazarus.freepascal.org
MG http://www.lazarus.freepascal.org/mailman/listinfo/lazarus




-- 
Best regards, TRoland
http://www.rotursoft.sk
http://exekutor.rotursoft.sk

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


Re: [Lazarus] new definition list formatting for HTML docs

2009-04-28 Thread Graeme Geldenhuys
On Tue, Apr 28, 2009 at 3:10 PM, Graeme Geldenhuys
graemeg.li...@gmail.com wrote:

 The attached images shows the new formatting output. Is this
 acceptable?

Maybe I should remove the auto-inserted : after the definition text
(dt tag) as it might cause confusion.

So simply have the dt text in green, followed by a spacing and then
the description.


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] EXC_BAD_ACCESS, Could not access memory

2009-04-28 Thread Mattias Gaertner
On Tue, 28 Apr 2009 15:23:42 +0200
Roland Turcan k...@rotursoft.sk wrote:

  27.4.2009 19:26 - Mattias Gaertner nc-gaert...@netcologne.de 
 MG Use packed records and add gap variables.
 
 U, look at this:
 
 TYPE TPackedGap =PACKED RECORD
VarInteger :INTEGER;
Dummy1 :INTEGER;
VarDouble  :DOUBLE;
VarBoolean :BOOLEAN;
VarBoolean2:BOOLEAN;
Dummy2 :Word;
Dummy3 :INTEGER;
  END;
 
 
 ... and I would expect, that the binary representation of this
 definition will keep the order of variables from definition, but it
 doesn't.

It does.
 
 Could somebody explain what rules is applied to change the order of
 variables in memory?

You forgot to explain why you think that the order is wrong.

Mattias
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Latest RTL, FCL and LCL online docs

2009-04-28 Thread Graeme Geldenhuys
On Tue, Apr 28, 2009 at 3:13 PM, Vincent Snijders
vincent.snijd...@gmail.com wrote:

 I just do:
 FPCSRCDIR=/path/to/fpc/sources
 make rtl.chk FPCSRCDIR=$FPCSRCDIR

That's even better.  :-)

Michael, could you add this to the readme file as well?


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Latest RTL, FCL and LCL online docs

2009-04-28 Thread Michael Van Canneyt


On Tue, 28 Apr 2009, Graeme Geldenhuys wrote:

 On Tue, Apr 28, 2009 at 3:13 PM, Vincent Snijders
 vincent.snijd...@gmail.com wrote:
 
  I just do:
  FPCSRCDIR=/path/to/fpc/sources
  make rtl.chk FPCSRCDIR=$FPCSRCDIR
 
 That's even better.  :-)
 
 Michael, could you add this to the readme file as well?

Done.

Michael.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] EXC_BAD_ACCESS, Could not access memory

2009-04-28 Thread Roland Turcan
Hello all,

I take back my previous mail, that the packed record doesn't use the
same order as it is definition. I am in time hurry and made on error,
that I was exporting the content of similar record to file to compare
and therefore I looked me as wrong one.

So it is solved.

TRoland;

 28.4.2009 15:23 - Roland Turcan k...@rotursoft.sk 
RT  27.4.2009 19:26 - Mattias Gaertner nc-gaert...@netcologne.de 
MG Use packed records and add gap variables.

RT U, look at this:

RT TYPE TPackedGap =PACKED RECORD
RTVarInteger :INTEGER;
RTDummy1 :INTEGER;
RTVarDouble  :DOUBLE;
RTVarBoolean :BOOLEAN;
RTVarBoolean2:BOOLEAN;
RTDummy2 :Word;
RTDummy3 :INTEGER;
RT  END;


RT ... and I would expect, that the binary representation of this
RT definition will keep the order of variables from definition, but it
RT doesn't.

RT Could somebody explain what rules is applied to change the order of
RT variables in memory?

RT TRoland;

RT  27.4.2009 19:26 - Mattias Gaertner nc-gaert...@netcologne.de 
MG On Mon, 27 Apr 2009 17:27:30 +0200
MG Roland Turcan k...@rotursoft.sk wrote:

 Hello Dmitry,
 
 Thanks for your reply, but I think, that you haven't understood me
 what I am trying to explain.
 
 I have binary contents which are copied from memory using by an
 application which is written in Delphi. I am porting an application to
 MacOS X 10.5, but I need to use the same structures as I have in
 Delphi and Kylix where NOT PACKED records are aligned.
 
 The fact is, that FPC compiler on intel based Mac OS X builds up
 application which contains records packed by 4 bytes by default.

MG Use packed records and add gap variables.

MG  
 I need to get the same behavior in intel based mac os x as I have in
 other platforms.
 
 What should I do to build FPC compiler which will behave the same on
 all platforms.

MG This won't work. The other sources and libs expect another alignment.
MG FPC uses the various alignments for good reason.


MG Mattias
MG ___
MG Lazarus mailing list
MG Lazarus@lazarus.freepascal.org
MG http://www.lazarus.freepascal.org/mailman/listinfo/lazarus








-- 
Best regards, TRoland
http://www.rotursoft.sk
http://exekutor.rotursoft.sk

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


[Lazarus] New code macro OfAll

2009-04-28 Thread Mattias Gaertner
Hi testers,

I implemented a new code macro for case statements.

http://wiki.lazarus.freepascal.org/New_IDE_features_since#code_macro_OfAll

Update your svn and follow the instructions on the wiki.


Mattias
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] New code macro OfAll

2009-04-28 Thread Graeme Geldenhuys
On Tue, Apr 28, 2009 at 5:38 PM, Mattias Gaertner
nc-gaert...@netcologne.de wrote:

 I implemented a new code macro for case statements.
 http://wiki.lazarus.freepascal.org/New_IDE_features_since#code_macro_OfAll

Awesome feature, thanks Mattias. It's so nice seeing the feature in
action before actually getting a svn update. :-)


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] New code macro OfAll

2009-04-28 Thread Graeme Geldenhuys
On Tue, Apr 28, 2009 at 5:38 PM, Mattias Gaertner
nc-gaert...@netcologne.de wrote:

 http://wiki.lazarus.freepascal.org/New_IDE_features_since#code_macro_OfAll

I uploaded a new version of your animated image - optimized the file
size. I got the file down from 279,420 bytes (rather large) to only
39,010 bytes. :-)

PS:
  I'll write the Animated Gif wiki page tomorrow to explain what I do.

Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] New code macro OfAll

2009-04-28 Thread Mattias Gaertner
On Tue, 28 Apr 2009 18:20:26 +0200
Graeme Geldenhuys graemeg.li...@gmail.com wrote:

 On Tue, Apr 28, 2009 at 5:38 PM, Mattias Gaertner
 nc-gaert...@netcologne.de wrote:
 
  http://wiki.lazarus.freepascal.org/New_IDE_features_since#code_macro_OfAll
 
 I uploaded a new version of your animated image - optimized the file
 size. I got the file down from 279,420 bytes (rather large) to only
 39,010 bytes. :-)

Thanks.

 
 PS:
   I'll write the Animated Gif wiki page tomorrow to explain what I do.

I'm waiting ...

 
Mattias
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] [patch] fpdoc.css now has definition list formatting

2009-04-28 Thread Vincent Snijders
Graeme Geldenhuys schreef:
 See attached patch.
 
  * now contains formatting for definition list tags
  * correctly handles long definition terms
  * correctly wraps definition text
 
 Changes will be seen in a page like:
   http://lazarus-ccr.sourceforge.net/docs/rtl/sysutils/formatchars.html
 


Thanks, applied. Let see if the formatchars docs get pretty tomorrow.

Vincent
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Visual program ends unexpectedly but without error

2009-04-28 Thread Carlos German Tejero
Hi to all.
I have a visual LCL program that run in linux x86 gtk2 (Centos 5.3). The
program don't have forms, only have one datamodule that contains a ttrayicon
with a tpopupmenu. Also the program use the inotfy api, to watch directory
creations, and libnotify api to show hints to the user. Unexpectedly,
program ends without any error.
Morning from the office i can sends an example.

Ideas and suggestions are welcome.

-- 
Carlos Germán Tejero
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Visual program ends unexpectedly but without error

2009-04-28 Thread Lord Satan
On Tue, 28 Apr 2009 19:47:02 -0300
Carlos German Tejero german_tej...@yahoo.com.ar wrote:

 Ideas and suggestions are welcome.
GDB?

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Error compile wince application

2009-04-28 Thread Diwakoe
Dear all,

I'm using lazarus 0.9.26.2 fpc 2.2.2 also wince-cross-arm compiler
installed. Now I'm try to created small one form wince application.

All guide using this
http://wiki.lazarus.freepascal.org/Windows_CE_Interface, and when I
compile the project got error like this:
C:\lazarus\lcl\interfaces\win32\win32proc.pp(807,37) Error: Identifier
not found CopyAcceleratorTable  with pointer open win32proc.pas.

my fpc.cfg is attached.

Is there any missing configuration??

Thanks,
Diwa

-- 
Semua rasa ada disini
http://www.teoteblung.co.cc


fpc.cfg
Description: Binary data
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus