Re: [Lazarus] [fpc-pascal] Is there an online tool for browsing library documentation and source code for FPC and Lazarus?

2011-11-14 Thread Felipe Monteiro de Carvalho
On Sat, Nov 12, 2011 at 5:01 PM, Hans-Peter Diettrich
 wrote:
> I'm not happy at all with the wiki, I cannot find anything there, unless
> somebody gives me a direct link. Do you have an idea how this could be
> improved?

Did you try Google? For me it works very well, for example:

lazarus wiki high dpi
lazarus wiki epiktimer
lazarus wiki spreadsheet
lazarus wiki graphics

All those bring excelent results.

I still remember in the last Lazarus day when someone said that there
is no list of 3rd party components for Lazarus, and then I just tryed
in Google: lazarus components

And there it was, the 1st link is the wiki page with a list of lazarus
components =D

-- 
Felipe Monteiro de Carvalho

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


Re: [Lazarus] "Sort files alphabitically" is case-sensitive :-(

2011-11-14 Thread Jürgen Hestermann



Hans-Peter Diettrich schrieb:
Summary: the case sensitivity of a file system does not imply any 
specific sort order.


Exactly. The question is: What is the purpose of sorting? Isn't it for 
easier finding list entries? Then it would be even better to sort case 
insensitive on Linux too. It would also show files that differ in case 
only as adjacent entries which may be an important information.


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


Re: [Lazarus] "Sort files alphabitically" is case-sensitive :-(

2011-11-14 Thread Hans-Peter Diettrich

Sven Barth schrieb:


Consequently project file sorting should be case insensitive, unique
across platforms.


But the project inspector does contain the *file* names and not the 
*unit* names. And these *can* be different (not only in casing), though 
I personally don't know anyone who uses the "-Un" option which is 
necessary for this...


Just in case the same filenames with different casing have been added to 
a project, it's important to see all these versions together, and not 
spread across the entire list.


Summary: the case sensitivity of a file system does not imply any 
specific sort order. The same for the sort order in different 
applications (file browsers...). The *display* of a file list has to be 
optimized for *human* reading, i.e. case insensitive unless there exists 
a special important meaning of upper/lower case names.


DoDi


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


Re: [Lazarus] "Sort files alphabitically" is case-sensitive :-(

2011-11-14 Thread Graeme Geldenhuys
On 14/11/2011, Hans-Peter Diettrich  wrote:
>
> Consequently project file sorting should be case insensitive, unique
> across platforms.

+1
But if we can't do that (which seems to be the case), then at least I
want to add an option no enable case-insensitive sorting. Normally my
units are all lower-case, but I have some legacy units which came from
some old Delphi projects which use uppercase letters - thus causing
the crappy sorting in my project.

Anyway, adding the option should be easy - so my problem should be
sorted in no time (excuse the pun). :-)


-- 
Regards,
  - Graeme -


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

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


Re: [Lazarus] "Sort files alphabitically" is case-sensitive :-(

2011-11-14 Thread Sven Barth

On 14.11.2011 20:27, Hans-Peter Diettrich wrote:

Mattias Gaertner schrieb:

On Mon, 14 Nov 2011 15:56:00 +0200
Graeme Geldenhuys  wrote:


Hi,

I updated my Lazarus to the latest Trunk revision. I see there is now
a "sort files alphabetically" option in the Project Inspector.

Unfortunately the sorting seems to be case-sensitive. So units with
capital letters appear before units with lowercase letters. Was this
done by design, or simply an oversight?


Design. It sorts file names, so case sensitive under Linux and case
insensitive under Windows and OS X.


IMO a project contains *units* in the first place, and unit names are
case insensitive. It's not allowed to add a unit twice, with only
different filename case.

Consequently project file sorting should be case insensitive, unique
across platforms.


But the project inspector does contain the *file* names and not the 
*unit* names. And these *can* be different (not only in casing), though 
I personally don't know anyone who uses the "-Un" option which is 
necessary for this...


Regards,
Sven

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


Re: [Lazarus] "Sort files alphabitically" is case-sensitive :-(

2011-11-14 Thread Hans-Peter Diettrich

Mattias Gaertner schrieb:

On Mon, 14 Nov 2011 15:56:00 +0200
Graeme Geldenhuys  wrote:


Hi,

I updated my Lazarus to the latest Trunk revision. I see there is now
a "sort files alphabetically" option in the Project Inspector.

Unfortunately the sorting seems to be case-sensitive. So units with
capital letters appear before units with lowercase letters. Was this
done by design, or simply an oversight?


Design. 
It sorts file names, so case sensitive under Linux and case

insensitive under Windows and OS X.


IMO a project contains *units* in the first place, and unit names are 
case insensitive. It's not allowed to add a unit twice, with only 
different filename case.


Consequently project file sorting should be case insensitive, unique 
across platforms.


DoDi


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


Re: [Lazarus] TFileListBox.Mask - what format does it use?

2011-11-14 Thread silvioprog
2011/11/14 Graeme Geldenhuys :
> On 14/11/2011, silvioprog  wrote:
>>
>> Hm, here is working normal, see:
>>
>> http://imagebin.org/184048
>
> There was indeed a bug in the File Browser add-on. I fixed it at work
> and added some other minor improvements. I'll submit patches to mantis
> tomorrow morning.
>
> --
> Regards,
>  - Graeme -
> ___
> fpGUI - a cross-platform Free Pascal GUI toolkit
> http://fpgui.sourceforge.net

Thank you! :)

-- 
Silvio Clécio
===
Blog - 
Twitter - 
Facebook - 
LazSolutions - 
Lazarus-BR - 
===
   * Conheça nosso canal IRC sobre Lazarus: #lazarus-br *
===

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


[Lazarus] range check error with TMainMenu/TMenuItem in win64

2011-11-14 Thread Seth Grover
I'm currently running FPC 2.4.4 (built from SVN) on Windows Server
2008 R2 cross-compiling targeting Win64/x86_64. I retrieved lazarus
0.9.30.2_rc2 from subversion and built the LCL to be able to target
win64/x86_64 for GUI apps as well. I then follow these steps:

1. Create a new application
2. Add a TMainMenu to the form
3. Add a single menu item to the main menu

I compile the application for win64/x86_64 and run it. Upon running
the app, I get this:


Range check error.
Press OK to ignore and risk data corruption.
Press Cancel to kill the program.

The backtrace shows:

C:\temp> .\project1.exe
TApplication.HandleException Range check error
  Stack trace:
  $00538059  TWINCONTROL__DOKEYUPBEFOREINTERFACE,  line 5857
of ./include/wincontrol.inc
  $0053B49D  TWINCONTROL__CNKEYUP,  line 6970 of
./include/wincontrol.inc
  $0040C7D6  TOBJECT__DISPATCH,  line 472 of
C:/cygwin/home/Administrator/devel/fpc/fpc-2.4.4/rtl/inc/objpas.inc
  $00536085  TWINCONTROL__WNDPROC,  line 5241 of
./include/wincontrol.inc
  $0041FAE1  TCUSTOMFORM__WNDPROC,  line 1362 of
./include/customform.inc
  $005C12FE  DELIVERMESSAGE,  line 110 of lclmessageglue.pas
  $0056D6E8  WINDOWPROC,  line 2441 of win32callback.inc
  $005C3B07  CUSTOMFORMWNDPROC,  line 357 of win32wsforms.pp
  $7684C3C1
  $0042B442
  $0042BB7A
  $0042FBDE
  $0042BAF4
  $00402AF8

I tried googling for a similar issue but didn't see anything specific
to TMainMenu with win64. I'm sort of baffled by this, since I can't be
the only one out there trying to target win64.

Has anyone else seen this?

-SG

--
This email is fiction. Any resemblance to actual events
or persons living or dead is purely coincidental.

Seth Grover

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


Re: [Lazarus] "Sort files alphabitically" is case-sensitive :-(

2011-11-14 Thread Mattias Gaertner
On Mon, 14 Nov 2011 19:20:47 +0200
Graeme Geldenhuys  wrote:

> On 14/11/2011, Mattias Gaertner  wrote:
> >
> > Design.
> > It sorts file names, so case sensitive under Linux and case
> > insensitive under Windows and OS X.
> 
> Would you mind if I supply a patch to make case sensitivity optional?
> Nautilus has such an option too. So do other Linux file managers. If
> not, no problems,  I'll add it to my list of home-grown patches I
> apply to each checkout.

I don't mind, if you think broad minded.
Some users might want to sort first for file type
and then alphabetically, or to reverse. Maybe the
Sort button should popup a menu with of a few common orders.
Or it opens a small dialog. Whatever you prefer.


> PS:
> OS X is not always case insensitive, you can format a filesystem with
> case sensitivity enabled too. Just thought I would mention this.

Same for Linux.
But checking via Kernel functions is a magnitude slower and so far
there were no big complains.

Mattias

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


[Lazarus] OS X locale information (FormatSettings)

2011-11-14 Thread Craig Peterson
A new OS X Carbon Lazarus project doesn't fill the FormatSettings
structure properly (using recent versions of Lazarus/FreePascal trunk).
 It appears the FreePascal sanctioned method to support that is to add
clocale.pp to your project, but that only works when launched from the
terminal, not from the dock or directly from Lazarus.

I've attached the output from three variants below, to show the
differences.  I first noticed the issue because by default Lazarus uses
'-' for the date separator, rather than '/', and adding clocale.pp
clears the ThousandSeparator value.

Is there a way to make clocale work correctly?  If not, I think the
correct approach would be to replace it with a new unit that queries
CFLocaleGetValue instead.

The "LongDateFormat" string also doesn't match the system in any of the
approaches.  According to my "Languages & Text" settings, it should be
something like "January 5, 2011" or "Jan 5, 2011".

On a related note, the AnsiString encoding isn't correct when launched
from the dock either.  It should be UTF-8, but defaults to ASCII, so
extended characters are all converted to '?'.  We've worked around the
issue by overriding LC_CTYPE in our .app .plist file, but it seems like
something that the environment should handle automatically.


Default Lazarus project (no clocale.pp)

CurrencyFormat: 1
NegCurrFormat: 5
ThousandSeparator: ,
DecimalSeparator: .
CurrencyDecimals: 2
DateSeparator: -
TimeSeparator: :
ListSeparator: ,
CurrencyString: $
ShortDateFormat: d/m/y
LongDateFormat: dd" "" "
TimeAMString: AM
TimePMString: PM
ShortTimeFormat: hh:nn
LongTimeFormat: hh:nn:ss
ShortMonthNames: Jan, Feb, ... Nov, Dec,
LongMonthNames: January, February, ... November, December,
ShortDayNames: Sun, Mon, Tue, Wed, Thu, Fri, Sat,
LongDayNames: Sunday, Monday, ... Friday, Saturday,
TwoDigitYearCenturyWindow: 50


clocale.pp, run from Terminal

CurrencyFormat: 0
NegCurrFormat: 1
ThousandSeparator: ,
DecimalSeparator: .
CurrencyDecimals: 2
DateSeparator: /
TimeSeparator: :
ListSeparator: ,
CurrencyString: $
ShortDateFormat: mm/dd/
LongDateFormat: mm/dd/
TimeAMString: AM
TimePMString: PM
ShortTimeFormat: hh:nn:ss
LongTimeFormat: hh:nn:ss ampm
ShortMonthNames: Jan, Feb, ... Nov, Dec,
LongMonthNames: January, February, ... November, December,
ShortDayNames: Sun, Mon, Tue, Wed, Thu, Fri, Sat,
LongDayNames: Sunday, Monday, ... Friday, Saturday,
TwoDigitYearCenturyWindow: 50


clocale.pp, run from Lazarus

CurrencyFormat: 1
NegCurrFormat: 5
ThousandSeparator:
DecimalSeparator: .
CurrencyDecimals: 127
DateSeparator: /
TimeSeparator: :
ListSeparator: ,
CurrencyString:
ShortDateFormat: mm/dd/yy
LongDateFormat: mm/dd/yy
TimeAMString: AM
TimePMString: PM
ShortTimeFormat: hh:nn:ss
LongTimeFormat: hh:nn:ss ampm
ShortMonthNames: Jan, Feb, ... Nov, Dec,
LongMonthNames: January, February, ... November, December,
ShortDayNames: Sun, Mon, Tue, Wed, Thu, Fri, Sat,
LongDayNames: Sunday, Monday, ... Friday, Saturday,
TwoDigitYearCenturyWindow: 50


-- 
Craig Peterson
Scooter Software


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


Re: [Lazarus] TFileListBox.Mask - what format does it use?

2011-11-14 Thread Graeme Geldenhuys
On 14/11/2011, silvioprog  wrote:
>
> Hm, here is working normal, see:
>
> http://imagebin.org/184048


There was indeed a bug in the File Browser add-on. I fixed it at work
and added some other minor improvements. I'll submit patches to mantis
tomorrow morning.


-- 
Regards,
  - Graeme -


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

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


Re: [Lazarus] "Sort files alphabitically" is case-sensitive :-(

2011-11-14 Thread Graeme Geldenhuys
On 14/11/2011, Mattias Gaertner  wrote:
>
> Design.
> It sorts file names, so case sensitive under Linux and case
> insensitive under Windows and OS X.

Would you mind if I supply a patch to make case sensitivity optional?
Nautilus has such an option too. So do other Linux file managers. If
not, no problems,  I'll add it to my list of home-grown patches I
apply to each checkout.

PS:
OS X is not always case insensitive, you can format a filesystem with
case sensitivity enabled too. Just thought I would mention this.



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

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


Re: [Lazarus] TFileListBox.Mask - what format does it use?

2011-11-14 Thread Graeme Geldenhuys
On 14/11/2011, Felipe Monteiro de Carvalho <> wrote:
>
> Documented:
>
> http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/docs/xml/lcl/filectrl.xml?root=lazarus&r1=33528&r2=33527&pathrev=33528
>


Thanks Felipe. I'll update my INF help files tomorrow form the latest
lazarus Trunk.

-- 
Regards,
  - Graeme -


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

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


Re: [Lazarus] "Sort files alphabitically" is case-sensitive :-(

2011-11-14 Thread Mattias Gaertner
On Mon, 14 Nov 2011 15:56:00 +0200
Graeme Geldenhuys  wrote:

> Hi,
> 
> I updated my Lazarus to the latest Trunk revision. I see there is now
> a "sort files alphabetically" option in the Project Inspector.
> 
> Unfortunately the sorting seems to be case-sensitive. So units with
> capital letters appear before units with lowercase letters. Was this
> done by design, or simply an oversight?

Design. 
It sorts file names, so case sensitive under Linux and case
insensitive under Windows and OS X.

 
> See attached image for an example of what I mean.


Mattias
 

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


Re: [Lazarus] TFileListBox.Mask - what format does it use?

2011-11-14 Thread Graeme Geldenhuys
On 14/11/2011, silvioprog <...> wrote:
>
> Hm, here is working normal, see:
> http://imagebin.org/184048


Ok, I tried what you did too, and indeed it does work inside the Form
Designer. I'll take a look at the File Browser code - there must be
some or other bug there. Thanks.


-- 
Regards,
  - Graeme -


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

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


Re: [Lazarus] [fpc-pascal] Is there an online tool for browsing library documentation and source code for FPC and Lazarus?

2011-11-14 Thread Frank Church
On 14 November 2011 14:38, Michael Schnell  wrote:

> On 11/14/2011 02:28 PM, Felipe Monteiro de Carvalho wrote:
>
>> I might be off here, but searching inside the docs is as simple as
>> going to Google and then writing:
>>
>> site:http://www.freepascal.**org/docs-html/rtl/writeln
>>
> To the maintainer of the web pages:
>
> It would be nice to add a "Google Search" button on the docs-html pages
> (maybe using a frame.) I did it here: http://www.bschnell.de
>
> (BTW I did  a "Google Translate" button here : http://www.dressurstall-**
> wittig.de/ . Something like this
> might be helpful now and then, too.)
>
> -Michael
>
>
>
Web design isn't one of the FPC/Lazarus community's strengths [?]


> --
> __**_
> Lazarus mailing list
> Lazarus@lists.lazarus.**freepascal.org
> http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarus
>



-- 
Frank Church

===
http://devblog.brahmancreations.com
<<330.gif>>--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TFileListBox.Mask - what format does it use?

2011-11-14 Thread Felipe Monteiro de Carvalho
On Mon, Nov 14, 2011 at 2:48 PM, Graeme Geldenhuys
 wrote:
> So what exact format does the TFileListBox.Mask accept? The LCL help
> doesn't mention anything either. :-(

Documented:

http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/docs/xml/lcl/filectrl.xml?root=lazarus&r1=33528&r2=33527&pathrev=33528

-- 
Felipe Monteiro de Carvalho

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


Re: [Lazarus] TFileListBox.Mask - what format does it use?

2011-11-14 Thread silvioprog
2011/11/14 Graeme Geldenhuys :
> Hi,
>
> In the "File Browser" Lazarus add-on, located in the 'components'
> directory. It has a Filter combobox with preset items, but you can
> type in a file mask as well, and it should filter the FileListBox.
>
> I have typed in:
>
>  *.xml
>  Xml (*.xml)|*.xml
>
> etc, etc.
>
> But no matter what I type in, the file list box always displays
> nothing. Only the preset items of the combobox works.
>
> So what exact format does the TFileListBox.Mask accept? The LCL help
> doesn't mention anything either. :-(
>
> --
> Regards,
>  - Graeme -
> ___
> fpGUI - a cross-platform Free Pascal GUI toolkit
> http://fpgui.sourceforge.net

Hm, here is working normal, see:

http://imagebin.org/184048

-- 
Silvio Clécio
===
Blog - 
Twitter - 
Facebook - 
LazSolutions - 
Lazarus-BR - 
===
   * Conheça nosso canal IRC sobre Lazarus: #lazarus-br *
===

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


[Lazarus] TFileListBox.Mask - what format does it use?

2011-11-14 Thread Graeme Geldenhuys
Hi,

In the "File Browser" Lazarus add-on, located in the 'components'
directory. It has a Filter combobox with preset items, but you can
type in a file mask as well, and it should filter the FileListBox.

I have typed in:

  *.xml
  Xml (*.xml)|*.xml

etc, etc.

But no matter what I type in, the file list box always displays
nothing. Only the preset items of the combobox works.

So what exact format does the TFileListBox.Mask accept? The LCL help
doesn't mention anything either. :-(


-- 
Regards,
  - Graeme -


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

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


Re: [Lazarus] [fpc-pascal] Is there an online tool for browsing library documentation and source code for FPC and Lazarus?

2011-11-14 Thread Michael Schnell

On 11/14/2011 02:28 PM, Felipe Monteiro de Carvalho wrote:

I might be off here, but searching inside the docs is as simple as
going to Google and then writing:

site:http://www.freepascal.org/docs-html/rtl/ writeln

To the maintainer of the web pages:

It would be nice to add a "Google Search" button on the docs-html pages 
(maybe using a frame.) I did it here: http://www.bschnell.de


(BTW I did  a "Google Translate" button here : 
http://www.dressurstall-wittig.de/. Something like this might be helpful 
now and then, too.)


-Michael

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


[Lazarus] "Sort files alphabitically" is case-sensitive :-(

2011-11-14 Thread Graeme Geldenhuys
Hi,

I updated my Lazarus to the latest Trunk revision. I see there is now
a "sort files alphabetically" option in the Project Inspector.

Unfortunately the sorting seems to be case-sensitive. So units with
capital letters appear before units with lowercase letters. Was this
done by design, or simply an oversight?

See attached image for an example of what I mean.

-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net
<>--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] [fpc-pascal] Is there an online tool for browsing library documentation and source code for FPC and Lazarus?

2011-11-14 Thread Frank Church
On 14 November 2011 13:28, Felipe Monteiro de Carvalho <
felipemonteiro.carva...@gmail.com> wrote:

> I might be off here, but searching inside the docs is as simple as
> going to Google and then writing:
>
> site:http://www.freepascal.org/docs-html/rtl/ writeln
>
> --
> Felipe Monteiro de Carvalho
>
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>

It is much easier when you don't have to type the whole domain name. Try it
with googlebar extension in Firefox. I configure some of my profiles to do
a site search than a Google search when I press the enter key in the search
box.

-- 
Frank Church

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


Re: [Lazarus] [fpc-pascal] Is there an online tool for browsing library documentation and source code for FPC and Lazarus?

2011-11-14 Thread Felipe Monteiro de Carvalho
I might be off here, but searching inside the docs is as simple as
going to Google and then writing:

site:http://www.freepascal.org/docs-html/rtl/ writeln

-- 
Felipe Monteiro de Carvalho

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


Re: [Lazarus] [fpc-pascal] Is there an online tool for browsing library documentation and source code for FPC and Lazarus?

2011-11-14 Thread Frank Church
On 14 November 2011 13:19, Vincent Snijders wrote:

> Using site:lazarus-ccr.sourceforge.net works for me most of the time.
>
> 2011/11/14 Frank Church :
> >
> > What remains for me is the LCL the Lazarus CCR, but either rather obtain
> > from gzipped archives than wget/httrack them into my site.
>
> Why not take the docs from the Lazarus release?
>
> http://sourceforge.net/projects/lazarus/files/Lazarus%20Documentation/Lazarus%200.9.30/
>
> Or do you reject them because they contain the fpc docs too.
>
> Vincent
>
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>

I had no idea of their existence.

Thanks

-- 
Frank Church

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


Re: [Lazarus] [fpc-pascal] Is there an online tool for browsing library documentation and source code for FPC and Lazarus?

2011-11-14 Thread Vincent Snijders
Using site:lazarus-ccr.sourceforge.net works for me most of the time.

2011/11/14 Frank Church :
>
> What remains for me is the LCL the Lazarus CCR, but either rather obtain
> from gzipped archives than wget/httrack them into my site.

Why not take the docs from the Lazarus release?
http://sourceforge.net/projects/lazarus/files/Lazarus%20Documentation/Lazarus%200.9.30/

Or do you reject them because they contain the fpc docs too.

Vincent

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


Re: [Lazarus] [fpc-pascal] Is there an online tool for browsing library documentation and source code for FPC and Lazarus?

2011-11-14 Thread Frank Church
On 12 November 2011 14:25, Michael Van Canneyt wrote:

>
>
> On Sat, 12 Nov 2011, Frank Church wrote:
>
>
>>
>> On 12 November 2011 12:33, Michael Van Canneyt 
>> wrote:
>>
>>
>>  On Sat, 12 Nov 2011, Frank Church wrote:
>>
>>Is there an online tool for browsing library documentation and
>> source code for FPC and Lazarus?
>>
>>I am looking for something along these lines -
>> http://stdlib.rubyonrails.org/**,
>>
>> http://htmlunit.sourceforge.**net/apidocs/index.html
>> .
>>
>>
>
>> PS. Can the above 2 sites be subdomained into rtl.freepascal.org,
>> fcl.freepascal.org? It makes searching using Google
>> site search much easier. If they are plain html files I don't mind having
>> the raw html so I can place them in my own
>> website where I can site search them.
>>
>
> They are plain HTML, so you can download the archive files from the
> website:
> http://www.freepascal.org/**down/docs/docs.var
>
>

I copied the files to my website and created subdomains to allow Site
searching on the different documents.

Free Pascal Users guide | http://fpdocs.rca2.net/user/user.html |
compiler.fpdocs.rca2.net
Free Pascal Programmers Guide | http://fpdocs.rca2.net/prog/prog.html |
programmer.fpdocs.rca2.net
Free Pascal Reference Guide | http://fpdocs.rca2.net/ref/ref.html |
langref.fpdocs.rca2.net
Free Pascal Runtime Library | http://fpdocs.rca2.net/rtl/index.html |
rtl.fpdocs.rca2.net
Free Pascal Free Component Library | http://fpdocs.rca2.net/rtl/index.html|
fcl.fpdocs.rca2.net
Free Pascal Documentation Tool Reference |
http://fpdocs.rca2.net/fpdoc/fpdoc.html | docgen.fpdocs.rca2.net

I am now waiting for Google to come along and index them.

What remains for me is the LCL the Lazarus CCR, but either rather obtain
from gzipped archives than wget/httrack them into my site.

Further thoughts
=
When I look at the help generated for the Runtime and Component Libraries I
see the line numbers for the procedure definitions, but given how low the
numbers are it looks like they refer to the procedure declarations rather
than the source code itself.
There are some tools in Lazarus which construct tables of procedure
declarations and their implementations like in the Code Explorer. In fact
I'd like a listing of those functions and which libraries contain them.
Can't the same code be used to create links in the html which will load the
procedure implementations into the browser frames?

To me it seems all the necessary tools are present, and they only need HTML
generation templates/layouts to link them up to create the docs in the
manner required




> Michael.
>
>
> --
> __**_
> Lazarus mailing list
> Lazarus@lists.lazarus.**freepascal.org
> http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarus
>



-- 
Frank Church

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


Re: [Lazarus] Are private data not allowed? Why?

2011-11-14 Thread Sven Barth

Am 13.11.2011 19:49, schrieb Dimitri Smits:

On 13.11.2011 01:46, Massimo Soricetti wrote:

I would like an explanation on this code (noob question, maybe):

private
sDati: array[0..3] of string;
procedure Verifica(var: sDati array of string);



I might be wrong here, but shouldn't the colon (":") be after the sDati var 
parameters name or was that a typo on behalf of the OP?


I personally assumed that it was a typo ^^
(and yes, it should be "var sDati: array of String")

Regards,
Sven


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


Re: [Lazarus] TForm.OnCreate and Application.MainForm.Caption

2011-11-14 Thread Michael Fuchs

Am 14.11.2011 10:51, schrieb John Landmesser:

procedure TForm1.FormCreate(Sender: TObject);
begin
   // next line produces error
   Application.MainForm.Caption:= Application.Title;
   // next line does NOT produce an error
   Form1.Caption:= Application.Title;
end;


In FormCreate, the Form1 is not assigned to Application.MainForm. This 
is done after the complete creation process.



//BUT(!!),you get no error with the OnShow event

procedure TForm1.FormOnShow(Sender: TObject);
begin
   // next line does NOT produces  error
   Application.MainForm.Caption:= Application.Title;
end;


- the creation process is done
- then Form1 is assigned to Application.MainForm
- then Form1.Show is called

Please take a look into TApplication.CreateForm for further informations.

hth
Michael

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


[Lazarus] TForm.OnCreate and Application.MainForm.Caption

2011-11-14 Thread John Landmesser
Error on Lazarus Windows(!):
"Lazarus 0.9.31 r33456 FPC 2.5.1 i386-win32-win32/win64"

procedure TForm1.FormCreate(Sender: TObject);
begin
  // next line produces error
  Application.MainForm.Caption:= Application.Title;
  // next line does NOT produce an error
  Form1.Caption:= Application.Title;
end;

//BUT(!!),you get no error with the OnShow event 

procedure TForm1.FormOnShow(Sender: TObject);
begin
  // next line does NOT produces  error
  Application.MainForm.Caption:= Application.Title;
end;


What is the reason for that ?

-- 
John

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


Re: [Lazarus] Is there an online tool for browsing library documentation and source code for FPC and Lazarus?

2011-11-14 Thread Michael Schnell

On 11/14/2011 10:16 AM, Michael Schnell wrote:

On 11/12/2011 10:57 AM, Frank Church wrote:
Is there an online tool for browsing library documentation and source 
code for FPC and Lazarus?



AFAIK, the most advanced is DocView.

Sorry, Docview of course is an offline help viewer. But as (if built6 
correctly) the viewable info is the same as in the appropriate online 
resources, there is not a huge difference.


-Michael

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


Re: [Lazarus] [fpc-pascal] Is there an online tool for browsing library documentation and source code for FPC and Lazarus?

2011-11-14 Thread Michael Schnell

On 11/12/2011 03:55 PM, Curt Carpenter wrote:

I'm new to Lazarus from Delphi,
So the most effective Library documentation help is the Delphi (offline) 
help.


-Michael

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


Re: [Lazarus] Is there an online tool for browsing library documentation and source code for FPC and Lazarus?

2011-11-14 Thread Michael Schnell

On 11/12/2011 10:57 AM, Frank Church wrote:
Is there an online tool for browsing library documentation and source 
code for FPC and Lazarus?



AFAIK, the most advanced is DocView.

-Michael

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