Re: [lazarus] fpdoc documentation problem

2008-01-10 Thread Michael Van Canneyt


On Thu, 10 Jan 2008, willem wrote:

 I call fpdoc with fpdoc --package=regexdna --input=regexdna.pas
 
 This is the example of the fpdoc documentation.
 
 And should be created a directory regdna which contains the  Documentation.
 But that does not occur .

What does occur ?

Michael.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] fpdoc documentation problem

2008-01-10 Thread Michael Van Canneyt


On Thu, 10 Jan 2008, willem wrote:

 Michael Van Canneyt wrote:
  On Thu, 10 Jan 2008, willem wrote:
 

   I call fpdoc with fpdoc --package=regexdna --input=regexdna.pas
  
   This is the example of the fpdoc documentation.
  
   And should be created a directory regdna which contains the
   Documentation.
   But that does not occur .
   
 
  What does occur ?
 
  Michael.
 
  _Nothing happens , no errormessages.
 If I use format=xmlstruct then I get the error mesage : unit expected.
 
 I am using a program not a unit.
 Is that the problem, but the fpdoc documentation says nothing about that.
 If you omit the format option what is the default format of fpdoc ?

html.

But programs are not supported, only units.

Michael.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] fpdoc documentation problem

2008-01-10 Thread willem

Michael Van Canneyt wrote:

On Thu, 10 Jan 2008, willem wrote:

  

I call fpdoc with fpdoc --package=regexdna --input=regexdna.pas

This is the example of the fpdoc documentation.

And should be created a directory regdna which contains the  Documentation.
But that does not occur .



What does occur ?

Michael.

_Nothing happens , no errormessages.

If I use format=xmlstruct then I get the error mesage : unit expected.

I am using a program not a unit.
Is that the problem, but the fpdoc documentation says nothing about that.
If you omit the format option what is the default format of fpdoc ?

Regards Wim


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] fpdoc documentation problem

2008-01-10 Thread willem

Michael Van Canneyt wrote:

On Thu, 10 Jan 2008, willem wrote:

  

Michael Van Canneyt wrote:


On Thu, 10 Jan 2008, willem wrote:

  
  

I call fpdoc with fpdoc --package=regexdna --input=regexdna.pas

This is the example of the fpdoc documentation.

And should be created a directory regdna which contains the
Documentation.
But that does not occur .



What does occur ?

Michael.

_Nothing happens , no errormessages.
  

If I use format=xmlstruct then I get the error mesage : unit expected.

I am using a program not a unit.
Is that the problem, but the fpdoc documentation says nothing about that.
If you omit the format option what is the default format of fpdoc ?



html.

But programs are not supported, only units.

Michael.

Ok I understand, but the fpdoc documentation should mention that at 
www.freepascal.org/docs-html/fpdoc/fpdocse6
  

regards Wim


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] google android contest

2008-01-10 Thread Adrian Maier
On Jan 10, 2008 7:36 AM, willem [EMAIL PROTECTED] wrote:
 I want to participate in the google android contest.

 I want to argue to google that the lazarus object pascal platform is a
 better choice  than Java.

Hello,
It's unclear what are you trying to accomplish :  to convince google
that they should switch to pascal from the already available
java-based API and SDK  ?  This won't happen ...

Or to convince them to accept into the contest projects that are written
in other languages ?  Is this currently possible ?


Cheers,
Adrian Maier

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] google android contest

2008-01-10 Thread willem

Adrian Maier wrote:

On Jan 10, 2008 7:36 AM, willem [EMAIL PROTECTED] wrote:
  

I want to participate in the google android contest.

I want to argue to google that the lazarus object pascal platform is a
better choice  than Java.



Hello,
It's unclear what are you trying to accomplish :  to convince google
that they should switch to pascal from the already available
java-based API and SDK  ?  This won't happen ...

Or to convince them to accept into the contest projects that are written
in other languages ?  Is this currently possible ?


Cheers,
Adrian Maier

  
I want google to convince them to accept a contest project thats is 
written in Free Pascal.

Therefore I did make a Wiki at www.android-google.tk.

Anyway I have already strong arguments based on the Gentoo Shootout 
benchmark.

Free Pascal uses a lot of less memory than Java6 server :-)

Wheter or not google accepts Free Pascal , I can make a strong case for 
Free Pascal :-D


regards Wim

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] fpdoc documentation problem

2008-01-10 Thread Michael Van Canneyt


On Thu, 10 Jan 2008, willem wrote:

 Michael Van Canneyt wrote:
  On Thu, 10 Jan 2008, willem wrote:
 

   Michael Van Canneyt wrote:
   
On Thu, 10 Jan 2008, willem wrote:
   
  
  
 I call fpdoc with fpdoc --package=regexdna --input=regexdna.pas

 This is the example of the fpdoc documentation.

 And should be created a directory regdna which contains the
 Documentation.
 But that does not occur .
 
 
What does occur ?
   
Michael.
   
  _Nothing happens , no errormessages.
  
   If I use format=xmlstruct then I get the error mesage : unit expected.
  
   I am using a program not a unit.
   Is that the problem, but the fpdoc documentation says nothing about that.
   If you omit the format option what is the default format of fpdoc ?
   
 
  html.
 
  But programs are not supported, only units.
 
  Michael.
 
  Ok I understand, but the fpdoc documentation should mention that at
  www.freepascal.org/docs-html/fpdoc/fpdocse6

It says so in the first line of
http://www.freepascal.org/docs-html/fpdoc/fpdocse2.html

But I added an explicit remark that programs are not supported to the tex
file.

Michael.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] google android contest

2008-01-10 Thread willem

Adrian Maier wrote:

On Jan 10, 2008 7:36 AM, willem [EMAIL PROTECTED] wrote:
  

I want to participate in the google android contest.

I want to argue to google that the lazarus object pascal platform is a
better choice  than Java.



Hello,
It's unclear what are you trying to accomplish : 
Cheers,

Adrian Maier

Well I am an expierenced Turbo Pascal Programmer.
  

Year ago I did a big programming project for the Dutch Hoogovens.
Who is now part of Tata steal.

Later I went to programming in Oracle SQl.
Thats is an advantage becacause my Wiki uses Mysql ;-)

I have also 10 years of programming experience in assembly language.
I want to use this experience to optmize Free Pascall with SSE  8-)


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] fpdoc documentation problem

2008-01-10 Thread willem

Michael Van Canneyt wrote:

On Thu, 10 Jan 2008, willem wrote:

  

Michael Van Canneyt wrote:


On Thu, 10 Jan 2008, willem wrote:

  
  

Michael Van Canneyt wrote:



On Thu, 10 Jan 2008, willem wrote:

  
  
  

I call fpdoc with fpdoc --package=regexdna --input=regexdna.pas

This is the example of the fpdoc documentation.

And should be created a directory regdna which contains the
Documentation.
But that does not occur .




What does occur ?

Michael.

_Nothing happens , no errormessages.
  
  

If I use format=xmlstruct then I get the error mesage : unit expected.

I am using a program not a unit.
Is that the problem, but the fpdoc documentation says nothing about that.
If you omit the format option what is the default format of fpdoc ?



html.

But programs are not supported, only units.

Michael.

Ok I understand, but the fpdoc documentation should mention that at
www.freepascal.org/docs-html/fpdoc/fpdocse6
  


It says so in the first line of
http://www.freepascal.org/docs-html/fpdoc/fpdocse2.html

But I added an explicit remark that programs are not supported to the tex
file.

Michael.
Ok Thank You , thats is very nice  :-) 
  

In fpsec6 the plain text format is not not Documented.

Regards Wim.

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] google android contest

2008-01-10 Thread Adrian Maier
On Jan 10, 2008 11:36 AM, willem [EMAIL PROTECTED] wrote:

 I want google to convince them to accept a contest project thats is written 
 in Free Pascal.
 Therefore I did make a Wiki at www.android-google.tk.

There is this phrase that I don't understand in your wiki page:
My first idea is to use also the Lazarus object pascal IDE.
In the Article about Language benchmarks you can see that Free Pascal
is the number ONE compiler for Android !

But that page 
(http://83.87.29.72/tikiwiki-1.9.9ga/tiki-index.php?page=benchmarks)
 is
an article about benchmarks in general with some lists of benchmarks.
It contains no
direct reference to FreePascal or Android  !


I am not familiar with porting FreePascal to other platforms
/opertaing systems, but I doubt
that it is possible to create a Lazarus application in just a few months.

This is the architecture of the Android OS :
http://code.google.com/android/what-is-android.html
- the red part is the Linux kernel
- in green we have some C/C++ libraries (including libc)
- the blue components are java

It is probably possible to have a FPC program that runs on top of the
Linux kernel
and uses those green C/C++ libraries.  But unless I'm wrong about this
, a FPC program
can't use any of those Java libraries directly .

In order to have a real android application that is truly integrated
with the other
android applications  you'd need to re-implement in pascal much of the
functionality of the
Application Framework.

The bad thing is that you can't be sure about what libraries you can
build on : the
android applications are supposed to use the java API  , so the
underlying C/C++
libraries can be changed without notice .

So, I don't think it's possible to have a functional application
finished for the March contest.

Not to mention that the android emulator is most likely a desktop
implementation of the
android java API  :  so probably it's impossible to actually run any
non-java applications
at this time .


Cheers,
Adrian Maier

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] google android contest

2008-01-10 Thread Adrian Maier
On Jan 10, 2008 1:03 PM, Adrian Maier [EMAIL PROTECTED] wrote:

 Not to mention that the android emulator is most likely a desktop
 implementation of the
 android java API  :  so probably it's impossible to actually run any
 non-java applications
 at this time .

Sorry about the incorrect assumption above:   the android emulator is
apparently  using qemu ,  therefore it contains the entire operating system.


-- 
Adrian Maier

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] google android contest

2008-01-10 Thread willem

Adrian Maier wrote:

On Jan 10, 2008 1:03 PM, Adrian Maier [EMAIL PROTECTED] wrote:
  

Not to mention that the android emulator is most likely a desktop
implementation of the
android java API  :  so probably it's impossible to actually run any
non-java applications
at this time .



Sorry about the incorrect assumption above:   the android emulator is
apparently  using qemu ,  therefore it contains the entire operating system.


  

But We have to be straigth:

go to www.freepascal.org/advantage   :-)
and then to the shootout benchmark !
Tne google Android Platform is cpu limited and memory limited
So send set the weigths to for cpu and memeory to 5 and look at the results.

Thats interesting :-D

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] google android contest

2008-01-10 Thread Damien Gerard


On Jan 10, 2008, at 2:40 PM, willem wrote:


Adrian Maier wrote:

On Jan 10, 2008 1:03 PM, Adrian Maier [EMAIL PROTECTED] wrote:


Not to mention that the android emulator is most likely a desktop
implementation of the
android java API  :  so probably it's impossible to actually run any
non-java applications
at this time .



Sorry about the incorrect assumption above:   the android emulator is
apparently  using qemu ,  therefore it contains the entire  
operating system.





But We have to be straigth:

go to www.freepascal.org/advantage   :-)


The link is dead for me :)



and then to the shootout benchmark !
Tne google Android Platform is cpu limited and memory limited
So send set the weigths to for cpu and memeory to 5 and look at the  
results.


Thats interesting :-D




--
Damien Gerard
[EMAIL PROTECTED]

Le temps n'a pas d'importance. Seul le code est important
   -- (f00ty)




_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] google android contest

2008-01-10 Thread Vincent Snijders

Damien Gerard schreef:


On Jan 10, 2008, at 2:40 PM, willem wrote:

go to www.freepascal.org/advantage   :-)


The link is dead for me :)



http://www.freepascal.org/advantage.var

Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] google android contest

2008-01-10 Thread Liyuan Garcia Caballero

Damien Gerard escribió:


On Jan 10, 2008, at 2:40 PM, willem wrote:


Adrian Maier wrote:

On Jan 10, 2008 1:03 PM, Adrian Maier [EMAIL PROTECTED] wrote:


Not to mention that the android emulator is most likely a desktop
implementation of the
android java API  :  so probably it's impossible to actually run any
non-java applications
at this time .



Sorry about the incorrect assumption above:   the android emulator is
apparently  using qemu ,  therefore it contains the entire operating 
system.





But We have to be straigth:

go to www.freepascal.org/advantage   :-)


The link is dead for me :)

http://www.freepascal.org/advantage.var





and then to the shootout benchmark !
Tne google Android Platform is cpu limited and memory limited
So send set the weigths to for cpu and memeory to 5 and look at the 
results.


Thats interesting :-D




--
Damien Gerard
[EMAIL PROTECTED]

Le temps n'a pas d'importance. Seul le code est important
   -- (f00ty)




_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives




--
Liyuán García Caballero 
Especialista B en Ciencias Informaticas 

Excelencia en Software Desoft en Ciego de Ávila. 
Circunvalación Norte Esq. Ave. Las Palmas. Ciego de Ávila. Cuba. 
Telfs.: (53 33) 266200 ext. 105. Telefax: (53 33) 22 8792. 
e_mail: [EMAIL PROTECTED] 
jabber: [EMAIL PROTECTED]

SO: Debian Linux 4.0

begin:vcard
fn:Liyuan Garcia Caballero
n:Garcia Caballero;Liyuan
org:Desoft;Nodo
adr:;;;Ciego de Avila;;;Cuba
email;internet:[EMAIL PROTECTED]
title:Administrador de red
tel;work:53-033-266200 ext 105
x-mozilla-html:TRUE
url:http://www.cav.desoft.cu
version:2.1
end:vcard



Re: [lazarus] google android contest

2008-01-10 Thread willem

Damien Gerard wrote:


On Jan 10, 2008, at 2:40 PM, willem wrote:


Adrian Maier wrote:

On Jan 10, 2008 1:03 PM, Adrian Maier [EMAIL PROTECTED] wrote:


Not to mention that the android emulator is most likely a desktop
implementation of the
android java API  :  so probably it's impossible to actually run any
non-java applications
at this time .



Sorry about the incorrect assumption above:   the android emulator is
apparently  using qemu ,  therefore it contains the entire operating 
system.





But We have to be straigth:

go to www.freepascal.org/advantage.html


The link is dead for me :) Use the above link



and then to the shootout benchmark !
Tne google Android Platform is cpu limited and memory limited
So send set the weigths to for cpu and memeory to 5 and look at the 
results.


Thats interesting :-D


use www.freepascal.org/advantage.html

--
Damien Gerard
[EMAIL PROTECTED]

Le temps n'a pas d'importance. Seul le code est important
   -- (f00ty)





_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] google android contest

2008-01-10 Thread willem

Liyuan Garcia Caballero wrote:

Damien Gerard escribió:


On Jan 10, 2008, at 2:40 PM, willem wrote:


Adrian Maier wrote:

On Jan 10, 2008 1:03 PM, Adrian Maier [EMAIL PROTECTED] wrote:


Not to mention that the android emulator is most likely a desktop
implementation of the
android java API  :  so probably it's impossible to actually run any
non-java applications
at this time .



Sorry about the incorrect assumption above:   the android emulator is
apparently  using qemu ,  therefore it contains the entire 
operating system.





But We have to be straigth:

go to www.freepascal.org/advantage   :-)


The link is dead for me :)

http://www.freepascal.org/advantage.var





and then to the shootout benchmark !
Tne google Android Platform is cpu limited and memory limited
So send set the weigths to for cpu and memeory to 5 and look at the 
results.


Thats interesting :-D


but Benchmarks can be FLAWED :-[
If you look deeper at the regex-dna Benchmark of the Gentoo Benchmark 
Shootout.
then you see some interesting alternative Benchmarks : Free Pascal 
Benchmark #3 !


It is 4 times faster than the original Free Pascal regexdna benchmark, 
so why did not Include the the Gentoo Shootout
Benchmark this program in the mainstream benchmark ?? Is it because 
Lazarus Free Pascal is to Good ! :-)

Regards Wim



--
Damien Gerard
[EMAIL PROTECTED]

Le temps n'a pas d'importance. Seul le code est important
   -- (f00ty)








_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] google android contest

2008-01-10 Thread Marius

willem wrote:
I want to argue to google that the lazarus object pascal platform is a 
better choice  than Java.


That would be real nice advertisement for FPC and pascal development in 
general. (I doubt however you can change there platform)


I myself have been thinking about porting the SETI client to FPC. It is 
one of the most CPU extensive applications i know.


I also want to experiment with NVIDIA or ATI GPU instructions but i have 
yet no idea how to do this (also need a new computer for this).



Greetings,
Marius

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] google android contest

2008-01-10 Thread willem

Marius wrote:

willem wrote:
I want to argue to google that the lazarus object pascal platform is 
a better choice  than Java.


That would be real nice advertisement for FPC and pascal development 
in general. (I doubt however you can change there platform)


I myself have been thinking about porting the SETI client to FPC. It 
is one of the most CPU extensive applications i know.
Wel I am interested in CPU extentsive applications ! Can can  SSE2 ,SSE3 
or even SSE4 help you ?

I am interested in that topic :-)


I also want to experiment with NVIDIA or ATI GPU instructions but i 
have yet no idea how to do this (also need a new computer for this).



Greetings,
Marius



_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] google android contest

2008-01-10 Thread Lord Satan
On Thu, 10 Jan 2008 15:50:55 +0100
willem [EMAIL PROTECTED] wrote:

 Wel I am interested in CPU extentsive applications ! Can can  SSE2 ,SSE3 
 or even SSE4 help you ?

Do you have any SSE examples that show a speed gain? My own experiments were 
not very encouraging.

This:

operator +(const v1,v2: TVector4): TVector4; assembler; inline;
Asm
  movups xmm0, [v1]  
  addps xmm0, [v2]   
  movups [Result], xmm0
end;

is slower than this:

operator+(const a, b: TVector4): TVector4;
begin
  with Result do begin
x:=a.x+b.x;
y:=a.y+b.y;
z:=a.z+b.z;
w:=a.w+b.w;
  end;
end;

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] google android contest

2008-01-10 Thread Marius

willem wrote:

Wel I am interested in CPU extentsive applications ! Can can  SSE2 ,SSE3 
or even SSE4 help you ?


Those extensions will surely helps reducing the time it takes to 
calculate a workunit. Talking about hours if i look at the 
http://lunatics.kwsn.net/ pages (depending on the cpu).


Greetings,
Marius

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [fpc-devel] Invalid field size : 8

2008-01-10 Thread Horacio Jamilis

It seems that the Size field shoud be 0 (zero) for numeric fields...
The size property of TField have different meanings for the different 
field types.


So, you should not set the size property of an Integer field to anything 
(the default 0 value is correct).


Hope this helps.

Horacio


As you can see problem is with setting TField.Size to 8 for ftInteger 
field , but I've also modified code to force Size of ftInteger to 4  
and error still persisted.


questions:

Is that a bug inside fields.inc or just  a calling layer must prepare 
TFieldDef to avoid this exception ? Is that a known problem ?



Regards
Boguslaw Brandys


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [fpc-devel] Invalid field size : 8

2008-01-10 Thread Bogusław Brandys

Horacio Jamilis wrote:

It seems that the Size field shoud be 0 (zero) for numeric fields...
The size property of TField have different meanings for the different 
field types.


So, you should not set the size property of an Integer field to anything 
(the default 0 value is correct).


Hope this helps.

Horacio



Yes,I found it too.Very bad.I think that it should be processed silently 
instead of force every package which is working under Delphi to modify.



Regards
Boguslaw

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Compiling Lazarus Ide Gtk2

2008-01-10 Thread Antonio Sanguigni
Hi,

I'm having some issues with gtk1 fonts under Xfce. I mean, Lazarus seems to
ignore xfce settings and I have a big fonts into my ide. Now, I'm trying to
compile it and rebuilding lazarus under gtk2 interface to check if it can
see xfce gtk2 settings but I'm having this error:

/home/antonio/lazarus/ide/lazconf.pp(49,11) Fatal: Can't find unit
DefineTemplates used by LazConf

Any hints to use small fonts on gtk1 or compiling the IDE under gtk2 ?

Thanks
Antonio

-- 
Antonio Sanguigni alias slapshot
--
GioveLUG (Linux User Group) - http://www.giovelug.org
Edupup (Educational distro) - http://www.edupup.org


Re: Compiling Lazarus Ide Gtk2

2008-01-10 Thread Antonio Sanguigni
[CUT]


 Any hints to use small fonts on gtk1 or compiling the IDE under gtk2 ?


I think I solved so:

export LCL_PLATFORM=gtk2; make clean all

Now I have a wonderful GTK2 ide interface ;)

Thanks
Antonio

-- 
Antonio Sanguigni alias slapshot
--
GioveLUG (Linux User Group) - http://www.giovelug.org
Edupup (Educational distro) - http://www.edupup.org


Re: [lazarus] Compiling Lazarus Ide Gtk2

2008-01-10 Thread Mattias Gaertner
On Thu, 10 Jan 2008 22:11:54 +0100
Antonio Sanguigni [EMAIL PROTECTED] wrote:

 Hi,
 
 I'm having some issues with gtk1 fonts under Xfce. I mean, Lazarus
 seems to ignore xfce settings and I have a big fonts into my ide.
 Now, I'm trying to compile it and rebuilding lazarus under gtk2
 interface to check if it can see xfce gtk2 settings but I'm having
 this error:
 
 /home/antonio/lazarus/ide/lazconf.pp(49,11) Fatal: Can't find unit
 DefineTemplates used by LazConf
 
 Any hints to use small fonts on gtk1 or compiling the IDE under gtk2 ?

You need to compile the IDE clean. Either on command line or by the IDE
itself. By building with the IDE itself you get your packages compiled
too, so this is recommended.
The 'configure build lazarus' option dialog was improved and now starts
with a much simpler dialog. But instead of less there are more people
asking on how to compile the IDE. I wonder why.

Can you give some hints, why you didn't found out how to compile the
IDE with the IDE, or/and why you found out first how to compile the
IDE on command line? 
Where did you found help?
What help was misleading you?


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Compiling Lazarus Ide Gtk2

2008-01-10 Thread Antonio Sanguigni

 You need to compile the IDE clean. Either on command line or by the IDE
 itself. By building with the IDE itself you get your packages compiled
 too, so this is recommended.
 The 'configure build lazarus' option dialog was improved and now starts
 with a much simpler dialog. But instead of less there are more people
 asking on how to compile the IDE. I wonder why.

Can you give some hints, why you didn't found out how to compile the
 IDE with the IDE, or/and why you found out first how to compile the
 IDE on command line?


Well, I opened the configure options dialog of course, and I checked  first
LCL clean + build, IDE and IDE Interface as I read into the faq: How can I
compile a program for Gtk2? I know this is to compile software under Gtk2
but I read also: to start with recompile LCL for Gtk2. Go to the menu
Tools-Configure Build Lazarus and set LCL to clean+build and everything
else to none.  So, I checked also the other two flag about the IDE but
maybe I messed something, such as Codetools or so.
Then I remembered I read on this ML something about to give an option about
LCL_PLATFORM, I tried to make clean all Lazarus and it was successful.

Where did you found help?
 What help was misleading you?


Well, finding help is not always easy. So often I search for help into
lazarus wiki, faq, ML ecc.. Maybe the faq misleading me. I'm a Delphi 3-7
user which I'm trying to move to opensource and cross platform software such
as fpc and lazarus which I like it so much but often it is not easy ;-). I
keep strong and go on because both are great development environments.

Thanks.
Antonio

-- 
Antonio Sanguigni alias slapshot
--
GioveLUG (Linux User Group) - http://www.giovelug.org
Edupup (Educational distro) - http://www.edupup.org


[lazarus] Compile IDE GTK2

2008-01-10 Thread Lee Jenkins


When recompiling the IDE, I get undefined reference to 
'gtk_cell_rederer_combo_get_type'.


I'm on CentOS 4.  Lazarus RPM 0.9.24

--
Warm Regards,

Lee

If I don't see you around here, I'll see you around, hear?

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Compile IDE GTK2

2008-01-10 Thread Paul Ishenin

Lee Jenkins wrote:


When recompiling the IDE, I get undefined reference to 
'gtk_cell_rederer_combo_get_type'.


I'm on CentOS 4.  Lazarus RPM 0.9.24
The GtkCellRendererCombo cell renderer was added in GTK+ 2.6. So check 
your enviroment. To work with lazarus you need at least gtk 2.6. But in 
future lower working with lazarus gtk2 version can raise.


Best regards,
Paul Ishenin.

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Scanlines again

2008-01-10 Thread Dominique Louis

Hi Mattias,
  Using Mac OS X how do I create a patch? If you can tell me what I 
need to download/install then I'm happy to do that.


Dominique.

Mattias Gaertner wrote:

On Sat, 05 Jan 2008 19:14:51 +
Dominique Louis [EMAIL PROTECTED] wrote:


Firstly, I'd like to propose a slight change to the scanlines example
so that it is easier for developers to follow the code and to
possibly incorporate bits of it into their own code.

type
   TBGRA = packed record
 b, g, r, a : byte;
   end;
   PBGRA = ^TBGRA;
   TBGRAArray = array[ WORD ] of TBGRA;
   PBGRAArray = ^TBGRAArray;


procedure TForm1.PaintToRGB32bitScanLine(Row, ImgWidth: integer;
   LineStart: Pointer);
// LineStart is pointer to the start of a scanline with the following 
format:

// 4 bytes per pixel. First byte is blue, second green, third is red.
// the fourth byte is the Alpha value, which is not specified in this
// example
// Black is 0,0,0, white is 255,255,255
var
   i: Integer;
   lrow : PBGRAArray
begin
   lrow := PBGRAArray( LineStart )

   // fill line with gray
   for i := 0 to ImgWidth - 1 do
   begin
 lrow^[ i ].r := 128; // set red to 128
 lrow^[ i ].g := 128; // set green to 128
 lrow^[ i ].b := 128; // set blue to 128
   end;
   // set one diagonal pixel to red ( this creates a diagonal red
line ) lrow^[ ( Row mod ImgWidth ) ].r := 255; // set red to 255 -
full intensity
   lrow^[ ( Row mod ImgWidth ) ].g := 0; // set green to 0
   lrow^[ ( Row mod ImgWidth ) ].b := 0; // set blue to 0
end;


I think this is a lot easier to understand than the previous version.


Ok. Can you create a patch?

 

Secondly,  I have a scanline issue that I hope someone on here can
help with. I have 2 TImages on a Form ( I'm using Mac OS X if that
makes any difference ) one contains an image of a yellow light bulb.
I want to copy, pixel by pixel, the image from one TImage over to the
second TImage. Yes I know I could just assign the bitmap from one to
the other, but this is an exercise in Scanline manipulation. The
problem I have is that once copied the second TImage contains a blue
light bulb instead of a yellow one.

The code I'm using is..
   MyBitmap := TBitmap.Create;
   ScanLineImage := Image1.Picture.Bitmap.CreateIntfImage;
   MyBitmap.Width := ScanLineImage.Width;
   MyBitmap.Height:= ScanLineImage.Height;
   IntfImage := MyBitmap.CreateIntfImage;
   ImgFormatDescription.Init_BPP32_B8G8R8_BIO_TTB( ScanLineImage.Width, 
ScanLineImage.Height );

   IntfImage.DataDescrption := ImgFormatDescription;

   for y := 0 to ScanLineImage.Height do


Height-1



   begin
 lrow := ScanLineImage.GetDataLineStart( y );
 brow := IntfImage.GetDataLineStart( y );


What's brow?


 for x := 0 to ScanLineImage.Width do


Width-1



 begin
   brow^[ x ].r := lrow^[ x ].r; // set red
   brow^[ x ].g := lrow^[ x ].g; // set green
   brow^[ x ].b := lrow^[ x ].b; // set blue
   brow^[ x ].a := lrow^[ x ].a; // set alpha value
 end;
   end;

   MyBitmap.LoadFromIntfImage( IntfImage );
   Image2.Picture.Bitmap := MyBitmap;


Can anyone see a flaw in my logic of using scanlines for this/this
way?


Yes.
MyBitmap.LoadFromIntfImage( IntfImage )
does no conversion.

You created an image with the format
ImgFormatDescription.Init_BPP32_B8G8R8_BIO_TTB
which is probably not the format of your platform.
Solution:
Don't use ScanLine, but use the Colors property of IntfImage. See the
examples/lazintfimage/fadein1.lpi.


Mattias



_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Mac OS X : TBitBtn Transparency

2008-01-10 Thread Dominique Louis


I finally updated to Lazarus v0.9.24 and the glyph transparency issue 
still does not work with TBitBtns, but works fine on TToolButtons.


Attached is a screen shot of the transparency issue.

If anyone has any ideas which files I should look at to try and fix 
this, I'm happy to do so if I'm pointed in the right direction.


Dominique.

Tom Gregorovic wrote:

Dominique Louis napsal(a):

I've noticed that transparency for TBitBtn under Carbon on Mac OS X 
does not appear to work.


Let me clarify that. It looks fine inside the X11 ide on the Lazarus 
form, but is not transparent at run-time under Carbon.


Is there anything specific to Mac OS I need to do to do get transparency?


Do you mean TBitBtn face transparency or glyph transparency? AFAIK 
TBitBtn face is not transparent on Mac OS X.


Tom



inline: Transparency.png

Re: [lazarus] Mac OS X : TBitBtn Transparency

2008-01-10 Thread Paul Ishenin

Dominique Louis wrote:


I finally updated to Lazarus v0.9.24 and the glyph transparency issue 
still does not work with TBitBtns, but works fine on TToolButtons.


Attached is a screen shot of the transparency issue.

If anyone has any ideas which files I should look at to try and fix 
this, I'm happy to do so if I'm pointed in the right direction.

1. Use png instead of bmp
2. Update to recent 0.9.25 (snapshot or svn) and recheck there.

Best regards,
Paul Ishenin.

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Mac OS X : TBitBtn Transparency

2008-01-10 Thread Marc Weustink

Dominique Louis wrote:


I finally updated to Lazarus v0.9.24 and the glyph transparency issue 
still does not work with TBitBtns, but works fine on TToolButtons.


How do you set the glyph ? In code or in the ide ?

Marc

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] TCheckListBox

2008-01-10 Thread Damien Gerard


I have a little issue with TCheckListBox.

It is impossible to set by han if an items is checked or not.
After reading the code, I have found the following code :

procedure TCustomCheckListBox.SetChecked(const AIndex: Integer;
  const AValue: Boolean);
begin
  SetState(AIndex, cbChecked);
end;


May be it should be :


procedure TCustomCheckListBox.SetChecked(const AIndex: Integer;
  const AValue: Boolean);
begin
  if AValue then
SetState(AIndex, cbChecked)
  else
SetState(AIndex, cbUnchecked);
end;

With this modification it works well for me.


--
Damien Gerard
[EMAIL PROTECTED]

Le temps n'a pas d'importance. Seul le code est important
   -- (f00ty)




_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TCheckListBox

2008-01-10 Thread Damien Gerard


On Jan 11, 2008, at 2:23 AM, Paul Ishenin wrote:


Damien Gerard wrote:

I have a little issue with TCheckListBox.
It is impossible to set by han if an items is checked or not.
After reading the code, I have found the following code :
procedure TCustomCheckListBox.SetChecked(const AIndex: Integer;
 const AValue: Boolean);
begin
 SetState(AIndex, cbChecked);
end;
May be it should be :
procedure TCustomCheckListBox.SetChecked(const AIndex: Integer;
 const AValue: Boolean);
begin
 if AValue then
   SetState(AIndex, cbChecked)
 else
   SetState(AIndex, cbUnchecked);
end;
With this modification it works well for me.


Thanks, my fault. Applied in r13718.



Thanks

--
Damien Gerard
[EMAIL PROTECTED]

Le temps n'a pas d'importance. Seul le code est important
   -- (f00ty)




_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] fpdoc and xml-struct

2008-01-10 Thread willem

I try to generate xml with fpdoc, but I get an error message

FPDoc - Free Pascal Documentation Tool
Version 2.2.0 [2007/08/30]
(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, [EMAIL PROTECTED]

Invalid format XML-STRUCT specified
Writing 9 pages...
Done.

The pages are html in stead of xml.

regards Wim

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] fpdoc and xml-struct

2008-01-10 Thread Vincent Snijders

willem schreef:

I try to generate xml with fpdoc, but I get an error message



xml isn input for fpdoc. To generate fpdoc xml use makeskel.

Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Compiling Lazarus Ide Gtk2

2008-01-10 Thread Graeme Geldenhuys
On 10/01/2008, Antonio Sanguigni [EMAIL PROTECTED] wrote:
 Hi,

 I'm having some issues with gtk1 fonts under Xfce. I mean, Lazarus seems to
 ignore xfce settings and I have a big fonts into my ide. Now, I'm trying to


Xfce used GTK2, so that will not affect Lazarus compiled with GTK1.
GTK1 uses a different way to set fonts.

For example, on my Ubuntu 7.10 setup I have the following in my $HOME
directory.  Create a .gtkrc file and include the something like the
following.

--[ .gtkrc ]
include /usr/share/themes/Bluecurve/gtk/gtkrc

style user-font
{
  fontset=-adobe-helvetica-medium-r-normal--*-120-100-100-*-*-iso8859-1
}
widget_class * style user-font

--[ end ]---

Note:  Some systems also look for the .gtkrc-1.2-gnome2 file.
Because of that, I created a symlink with that name, pointing to my
.gtkrc file.


Regards,
  - Graeme -


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

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives