Re: [lazarus] Distro Wiki

2008-02-06 Thread Graeme Geldenhuys
On 06/02/2008, Luca Olivetti [EMAIL PROTECTED] wrote:
 comprised a reduced set of what's available in the online repositories),
 you could just download the first one and the installer would ask how
 many CDs you downloaded.

A distro war was not my intention.  Thanks for the info, never knew
that about Mandriva.


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


Re: [lazarus] Trouble with postgres

2008-02-06 Thread Vincent Snijders

Alex du Plessis schreef:
I certainly did - and in the library file directory one only finds the 
libpq.a file no libpq.dll




That is a bit strange. Did previous version install a dll?

Vincent

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


Re: [lazarus] Trouble with postgres

2008-02-06 Thread Alex du Plessis

Vincent Snijders wrote:

Alex du Plessis schreef:
I certainly did - and in the library file directory one only finds 
the libpq.a file no libpq.dll




That is a bit strange. Did previous version install a dll?

Vincent

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


No, also a .a file.  I tried a couple of previous versions and they all 
seem to have a similar problem.  I also get no reply from the postgres 
mailing list when posing the same question/problem.


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


Re: [lazarus] SelectDirectory double click

2008-02-06 Thread Graeme Geldenhuys
On 06/02/2008, Vincent Snijders [EMAIL PROTECTED] wrote:

 is excellent under windows, because it use the common dialog for it.


Yes, but GTK1 doesn't have a native Select Directory dialog as for as
I could tell, so the LCL hack (which I think it is, but could be
wrong) was to use the Select File dialog which is confusing as hell.
The dirsel.pas mimics the pretty Windows native one. ;-)  Seeing that
90% (and decreasing) of the worlds computer users use Windows, they
should complain to much about the dirsel look.  :)


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


Re: [lazarus] SelectDirectory double click

2008-02-06 Thread Vincent Snijders

Graeme Geldenhuys schreef:

On 06/02/2008, Vincent Snijders [EMAIL PROTECTED] wrote:

is excellent under windows, because it use the common dialog for it.



Yes, but GTK1 doesn't have a native Select Directory dialog as for as
I could tell, so the LCL hack (which I think it is, but could be
wrong) was to use the Select File dialog which is confusing as hell.
The dirsel.pas mimics the pretty Windows native one. ;-)  Seeing that
90% (and decreasing) of the worlds computer users use Windows, they
should complain to much about the dirsel look.  :)




In this case, if there is no suitable native gtk1 widget for select directory, the 
gtk1 interface should use the LCL one from dirsel.


Vincent

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


Re: [lazarus] laz 9.24.1 fail on fpc 2.2.1

2008-02-06 Thread Vincent Snijders

Bee schreef:

Hi all,

I just updated my SVN for fixes branches both for fpc (2.2.1) and laz 
(9.24.1), after a few weeks from my last update. Unfortunately, laz 
9.24.1 is broken on fpc 2.2.1 (again). Here's the make output:


[EMAIL PROTECTED]:/svn/laz-9.24.1$ make all LCL_PLATFORM=gtk2 bigide
...snip...
gtkproc.pp(665,11) Error: Forward declaration not solved 
MergeClipping(TDeviceContext, PGdkGC, LongInt, LongInt, LongInt, 
LongInt, PGdkBitmap, LongInt, LongInt,var PGdkBitmap)

gtkproc.pp(1012) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make[3]: *** [interfaces.ppu] Error 1
make[3]: Leaving directory `/svn/laz-9.24.1/lcl/interfaces/gtk2'
make[2]: *** [gtk2_all] Error 2
make[2]: Leaving directory `/svn/laz-9.24.1/lcl/interfaces'
make[1]: *** [interfaces] Error 2
make[1]: Leaving directory `/svn/laz-9.24.1/lcl'
make: *** [lcl] Error 2

Hints? TIA.


The fixes branch is only test compiled with fpc 2.2.0. Because fpc 2.2.1 is a moving 
 target, and manpower is low, I only test with fpc 2.2.0. Some weeks ago it worked 
with fpc 2.2.1 and nothing changed to lazfixes, and now it doesn't work.


There were some bug fixes in fpc 2.2.1 which needed changes in Lazarus. Those 
changes have not yet been merged. Try to find out in what revision the fixes were in 
trunk were made, so that they can be merged.


Vincent

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


Re: [lazarus] Trouble with postgres

2008-02-06 Thread Alex du Plessis

Alex du Plessis wrote:

Vincent Snijders wrote:

Alex du Plessis schreef:
I certainly did - and in the library file directory one only finds 
the libpq.a file no libpq.dll




That is a bit strange. Did previous version install a dll?

Vincent

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


No, also a .a file.  I tried a couple of previous versions and they 
all seem to have a similar problem.  I also get no reply from the 
postgres mailing list when posing the same question/problem.


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



Vincent

I did a re-install of postgres and now libpq is a .lib file.  Any  
thoughts on what that file type might be? 

Seems the only workaround at the moment is to use odbc.  With odbc at 
least I can get connected


I still need to find out how to directly connect to postgres via sqldb 
and libpq.  Any ideas on that matter will be greatly appreciated


Thanx

Alex

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


Re: [lazarus] Trouble with postgres

2008-02-06 Thread dayat
please search the libpq.dll on the web and download it, or you can copy the
*.dll in your server such in C:\Program Files\PostgreSQL\8.1\bin\libpq.dll
and other depend *.dll in same directory. Put the *.dll in
C:\Windows\System32\ directory in client computer. may be can help you.

On Feb 6, 2008 3:16 PM, Alex du Plessis [EMAIL PROTECTED] wrote:

 Vincent Snijders wrote:
  Alex du Plessis schreef:
  I certainly did - and in the library file directory one only finds
  the libpq.a file no libpq.dll
 
 
  That is a bit strange. Did previous version install a dll?
 
  Vincent
 
  _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
 
 
 No, also a .a file.  I tried a couple of previous versions and they all
 seem to have a similar problem.  I also get no reply from the postgres
 mailing list when posing the same question/problem.

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



Re: [lazarus] SelectDirectory double click

2008-02-06 Thread Marc Weustink

Vincent Snijders wrote:

Graeme Geldenhuys schreef:

On 06/02/2008, Vincent Snijders [EMAIL PROTECTED] wrote:

is excellent under windows, because it use the common dialog for it.



Yes, but GTK1 doesn't have a native Select Directory dialog as for as
I could tell, so the LCL hack (which I think it is, but could be
wrong) was to use the Select File dialog which is confusing as hell.
The dirsel.pas mimics the pretty Windows native one. ;-)  Seeing that
90% (and decreasing) of the worlds computer users use Windows, they
should complain to much about the dirsel look.  :)




In this case, if there is no suitable native gtk1 widget for select 
directory, the gtk1 interface should use the LCL one from dirsel.


Or create ist own, based on lookalike widgets (if possible)

Marc

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


Re: [lazarus] Trouble with postgres

2008-02-06 Thread Marc Weustink

dayat wrote:
please search the libpq.dll on the web and download it, or you can copy 
the *.dll in your server such in C:\Program 
Files\PostgreSQL\8.1\bin\libpq.dll and other depend *.dll in same 
directory. Put the *.dll in C:\Windows\System32\ directory in client 
computer. may be can help you.


Or better extend your windows path to include C:\Program 
Files\PostgreSQL\8.1\bin\


copying dlls is usually a bad thing. You will loose track of versions. 
Also upgrading will be a pain when you forget to overwrite an older one.


Marc

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


Re: [lazarus] Trouble with postgres

2008-02-06 Thread Alex du Plessis

Vincent Snijders wrote:

Alex du Plessis schreef:


I did a re-install of postgres and now libpq is a .lib file.  Any  
thoughts on what that file type might be?
Seems the only workaround at the moment is to use odbc.  With odbc at 
least I can get connected


I still need to find out how to directly connect to postgres via 
sqldb and libpq.  Any ideas on that matter will be greatly appreciated


For your sake, I installed postgresql 8.3 and found libpq.dll in 
C:\Program Files\PostgreSQL\8.3\bin


Vincent

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


Thank you Vincent.  I then wonder what could have caused my installation 
to rename  those  files  during installation.


Thanx

Alex

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


Re: [lazarus] Trouble with postgres

2008-02-06 Thread Vincent Snijders

Alex du Plessis schreef:


I did a re-install of postgres and now libpq is a .lib file.  Any  
thoughts on what that file type might be?
Seems the only workaround at the moment is to use odbc.  With odbc at 
least I can get connected


I still need to find out how to directly connect to postgres via sqldb 
and libpq.  Any ideas on that matter will be greatly appreciated


For your sake, I installed postgresql 8.3 and found libpq.dll in C:\Program 
Files\PostgreSQL\8.3\bin


Vincent

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


Re: [lazarus] Trouble with postgres

2008-02-06 Thread Joost van der Sluis
Op woensdag 06-02-2008 om 10:16 uur [tijdzone +0200], schreef Alex du
Plessis:
 Vincent Snijders wrote:
  Alex du Plessis schreef:
  I certainly did - and in the library file directory one only finds 
  the libpq.a file no libpq.dll
 
 
  That is a bit strange. Did previous version install a dll?
 
  Vincent
 
  _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
 
 
 No, also a .a file.  I tried a couple of previous versions and they all 
 seem to have a similar problem.  I also get no reply from the postgres 
 mailing list when posing the same question/problem.

I've downloaded postgres for windows, and it does contain the libpq.dll
file. You'll have probably done something wrong. (Maybe the installer
doesn't install this client by default, and you didn't checked it?)

http://wwwmaster.postgresql.org/download/mirrors-ftp?file=%2Fbinary%2Fv8.3.0%2Fwin32%2Fpostgresql-8.3.0-2-binaries-no-installer.zip

Joost.

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


Re: [lazarus] GamePack 1.0 Released

2008-02-06 Thread Lee Jenkins

A.J. Venter wrote:

Hi all,
As I promised last week, I finished and released GamePack version 1.0.
The keyboard event handling is not yet as good as I would like, but this
is not a crucial aspect as it's something that belongs on the lazarus
level anyway.



Hi A.J.,

Lazarus 0.9.24 - FPC 2.2.0 OS: WinXP

I downloaded and installed the components fine.  However, when trying to load 
the demo project, the IDE hangs and eats up 50% CPU.  End Task'ing the lazarus 
process in Windows is necessary at that point.


Is this only linux/gtk?  Or is Win32 supported?


--
Warm Regards,

Lee

Everything I needed to learn in life, I learned selling encyclopedias door to 
door.


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


RE: [lazarus] Trouble with postgres

2008-02-06 Thread Hess, Philip J
When I last worked with Postgres 8.2, I had to rename libpq.dll to
pq.dll in order for it to work with FPC. The FPC postgres3 unit looks
for pq, but on Windows this does not expand to libpq like on Linux
and OS X. Postgres3 unit probably needs an $IFDEF for Windows.

I copied libpq.dll to the client app folder, along with these .dll's:

  comerr32.dll
  libintl-2.dll
  libiconv-2.dll
  krb5_32.dll
  libeay32.dll
  ssleay32.dll

See the OutKafe installer file (.iss) for how the DLL's are installed
with OutKafe.

Thanks.

-Phil


-Original Message-
From: Alex du Plessis [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 06, 2008 6:01 AM
To: lazarus@miraclec.com
Subject: Re: [lazarus] Trouble with postgres

Vincent Snijders wrote:
 Alex du Plessis schreef:

 I did a re-install of postgres and now libpq is a .lib file.  Any  
 thoughts on what that file type might be?
 Seems the only workaround at the moment is to use odbc.  With odbc at

 least I can get connected

 I still need to find out how to directly connect to postgres via 
 sqldb and libpq.  Any ideas on that matter will be greatly
appreciated

 For your sake, I installed postgresql 8.3 and found libpq.dll in 
 C:\Program Files\PostgreSQL\8.3\bin

 Vincent

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


Thank you Vincent.  I then wonder what could have caused my installation

to rename  those  files  during installation.

Thanx

Alex

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

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


Re: [lazarus] Trouble with postgres

2008-02-06 Thread Alex du Plessis

Joost van order Sluis wrote:

Op woensdag 06-02-2008 om 10:16 uur [tijdzone +0200], schreef Alex du
Plessis:
  

Vincent Snijders wrote:


Alex du Plessis schreef:
  
I certainly did - and in the library file directory one only finds 
the libpq.a file no libpq.dll




That is a bit strange. Did previous version install a dll?

Vincent

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


  
No, also a .a file.  I tried a couple of previous versions and they all 
seem to have a similar problem.  I also get no reply from the postgres 
mailing list when posing the same question/problem.



I've downloaded postgres for windows, and it does contain the libpq.dll
file. You'll have probably done something wrong. (Maybe the installer
doesn't install this client by default, and you didn't checked it?)

http://wwwmaster.postgresql.org/download/mirrors-ftp?file=%2Fbinary%2Fv8.3.0%2Fwin32%2Fpostgresql-8.3.0-2-binaries-no-installer.zip

Joost.

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


  
Thank you everyone for all your input. It seems I am the only one 
experiencing this problem which means I probably have something nasty 
(or just unknown to me) lurking on my disk drive.


These files redefined rename in some way or another.  Aah well, I needed 
to do a reinstall of my whole system anyway.


I will reinstall everything (from OS up) and report back as soon as I'm 
up and running again.(backups of course will be the order of the day).


Thanx for your effort

Alex du Plessis

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


Re: [lazarus] GamePack 1.0 Released

2008-02-06 Thread mramirez

Quoting A.J. Venter [EMAIL PROTECTED]:



I added some screenshots to the wiki page:


Cool. Good work ;-)


Cheers (With a Tequila)
mramirez

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


Re: [lazarus] Distro Wiki

2008-02-06 Thread mramirez

Quoting Felipe Monteiro de Carvalho [EMAIL PROTECTED]:


Obviously both pages can be improved.


Thanks.

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


Re: [lazarus] Distro Wiki

2008-02-06 Thread mramirez

Quoting Graeme Geldenhuys [EMAIL PROTECTED]:


It all sounds a lot more complicated than it really is. :)  With
Ubuntu, which uses the 'apt' package management tool you only need to
specify a few packages to install and 'apt' will resolve all the other
dependencies for you.


Thanks.

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


[lazarus] Linux Journal Poll: Pascal does not exist

2008-02-06 Thread Alexsander Rosa
http://www.linuxjournal.com/node/1006101

18. What is your favorite programming language?
AdaCC++C#FortranBASICJavaCommon
LispSchemeErlangMLOCAMLPrologHaskellEiffel Other?
Write-in your vote
-- 
Atenciosamente,

Alexsander da Rosa
Linux User #113925


Re: [lazarus] Linux Journal Poll: Pascal does not exist

2008-02-06 Thread Felipe Monteiro de Carvalho
Complain with whoever made the pool.

Althougth that doesn't mean anything anyway.

-- 
Felipe Monteiro de Carvalho

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


Re: [lazarus] Linux Journal Poll: Pascal does not exist

2008-02-06 Thread Marco Alvarado
Working with an underground language gives a cool feeling :D

-Marco


2008/2/6, Felipe Monteiro de Carvalho [EMAIL PROTECTED]:
 Complain with whoever made the pool.

 Althougth that doesn't mean anything anyway.

 --
 Felipe Monteiro de Carvalho

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


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


[lazarus] FPC compiler for virtual machines?

2008-02-06 Thread Marco Alvarado
Is there a Pascal compiler for these virtual machines?

Java
Flash 8 (actionscript 2)
Flash 9 (actionscript 3)

Is the answer is no, can I build one? :-D I think it's a cool project
I'd love to work on, just to have Pascal applications on mobile
devices.

Regards!
-Marco

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


Re: [lazarus] FPC compiler for virtual machines?

2008-02-06 Thread Marco van de Voort
On Wed, Feb 06, 2008 at 03:26:48PM -0600, Marco Alvarado wrote:
 Is there a Pascal compiler for these virtual machines?
 
 Java
 Flash 8 (actionscript 2)
 Flash 9 (actionscript 3)
 
 Is the answer is no, can I build one? :-D I think it's a cool project
 I'd love to work on, just to have Pascal applications on mobile
 devices.

There already is FPC on mobile devices.


For the rest, the FAQ mostly applies:
http://www.hu.freepascal.org/faq.var#dotnet

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


Re: [lazarus] FPC compiler for virtual machines?

2008-02-06 Thread Marco Alvarado
But that would be .NET... what about Java and Flash?

-Marco

2008/2/6, Marco van de Voort [EMAIL PROTECTED]:
 On Wed, Feb 06, 2008 at 03:26:48PM -0600, Marco Alvarado wrote:
  Is there a Pascal compiler for these virtual machines?
 
  Java
  Flash 8 (actionscript 2)
  Flash 9 (actionscript 3)
 
  Is the answer is no, can I build one? :-D I think it's a cool project
  I'd love to work on, just to have Pascal applications on mobile
  devices.

 There already is FPC on mobile devices.


 For the rest, the FAQ mostly applies:
 http://www.hu.freepascal.org/faq.var#dotnet

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


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


Re: [lazarus] FPC compiler for virtual machines?

2008-02-06 Thread Marco van de Voort
On Wed, Feb 06, 2008 at 03:49:23PM -0600, Marco Alvarado wrote:
 But that would be .NET... what about Java and Flash?

Read the last paragraph.

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


Re: [lazarus] FPC compiler for virtual machines?

2008-02-06 Thread Marco Alvarado
These problems are pretty much similar for the Java (bytecode) too.
One has to mutilate the language, and rewrite the libraries from
scratch on the base libraries of the target (Java/.NET). Such an
attempt would have little synergy with the FPC project as it is today.

Hmmm, it's just a pessimistic paragraph, what about it? :D

2008/2/6, Marco van de Voort [EMAIL PROTECTED]:
 On Wed, Feb 06, 2008 at 03:49:23PM -0600, Marco Alvarado wrote:
  But that would be .NET... what about Java and Flash?

 Read the last paragraph.

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


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


Re: [lazarus] Linux Journal Poll: Pascal does not exist

2008-02-06 Thread Alexsander Rosa
I'm not complaining, Felipe. It's just a pointer to a poll.

2008/2/6, Felipe Monteiro de Carvalho [EMAIL PROTECTED]:

 Complain with whoever made the pool.

 Althougth that doesn't mean anything anyway.

 --
 Felipe Monteiro de Carvalho

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




-- 
Atenciosamente,

Alexsander da Rosa
Linux User #113925


Re: [lazarus] FPC compiler for virtual machines?

2008-02-06 Thread Marco van de Voort
On Wed, Feb 06, 2008 at 04:08:51PM -0600, Marco Alvarado wrote:
 These problems are pretty much similar for the Java (bytecode) too.
 One has to mutilate the language, and rewrite the libraries from
 scratch on the base libraries of the target (Java/.NET). Such an
 attempt would have little synergy with the FPC project as it is today.
 
 Hmmm, it's just a pessimistic paragraph, what about it? :D

What exactly do you think to gain? Do you want a crude pascal subset on some VM
platform, probably with heaps of C# or Java extensions (or Flash script) to
be able to access all parts of the libraries or do you want a full FPC ?

If it is the former, better start without all the compability burdens, if
you want the latter, how on earth do you think this will work?

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


Re: [lazarus] FPC compiler for virtual machines?

2008-02-06 Thread Felipe Monteiro de Carvalho
On Feb 6, 2008 10:45 PM, Marco van de Voort [EMAIL PROTECTED] wrote:
 There already is FPC on mobile devices.

 For the rest, the FAQ mostly applies:
 http://www.hu.freepascal.org/faq.var#dotnet

I think this is a little bit too intransigent. Many mobiles run only
Java, so there is no other path to support them.

My experience with Symbian makes me think I should have instead
started a Java port. The Symbian is such a mess that a Java port would
maybe be easier to do and achieve support for a hugely superior number
of devices.

There is even a Java assembler out there. I'm not 100% convinced that
it can't be abstracted just like if it was just another platform.

thanks,
-- 
Felipe Monteiro de Carvalho

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


Re: [lazarus] FPC compiler for virtual machines?

2008-02-06 Thread Marco Alvarado
If it doesn't exist already, I would like to make an un-perfect,
simplistic, full of missing features, Pascal compiler that allows me
to write Pascal programs for those virtual machines that have
penetrated interesting platforms like web embedded applications,
mobile devices, PSP, Wii, etc.

I have made two little games in J2ME that run on my cellphone, but I'm
not happy if I can't program in my loved language Pascal. The compiler
will be crappy, but it will have one difference, will be open source,
so anyone can continue my work once I drop it, when I get to the point
where I'm able to create simple games with it (game engine not
included).

What do you think?

-Marco

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


RE: [lazarus] FPC compiler for virtual machines?

2008-02-06 Thread Sergio Samayoa
You should write an Object Pascal compiler which targets JRE and/or
MIDP/CLDC runtimes which output is Java byte code. 

Something like Crome and .Net

To me, it is interesting project from intellectual point of view but not
practical - Better code in Java.

FWIW, I'm Delphi developer and Java Architect/Developer also.

Regards.

-Mensaje original-
De: Marco Alvarado [mailto:[EMAIL PROTECTED] 
Enviado el: Miércoles, 06 de Febrero de 2008 06:05 p.m.
Para: lazarus@miraclec.com
Asunto: Re: [lazarus] FPC compiler for virtual machines?

If it doesn't exist already, I would like to make an un-perfect,
simplistic, full of missing features, Pascal compiler that allows me
to write Pascal programs for those virtual machines that have
penetrated interesting platforms like web embedded applications,
mobile devices, PSP, Wii, etc.

I have made two little games in J2ME that run on my cellphone, but I'm
not happy if I can't program in my loved language Pascal. The compiler
will be crappy, but it will have one difference, will be open source,
so anyone can continue my work once I drop it, when I get to the point
where I'm able to create simple games with it (game engine not
included).

What do you think?

-Marco

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

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


Re: [lazarus] FPC compiler for virtual machines?

2008-02-06 Thread Wanderlan Santos dos Anjos
Options for a Pascal compiler which targets Java:

1. http://www.mhccorp.com/pasjvm.shtml
2. http://en.wikipedia.org/wiki/MIDletPascal. Dead product? Download:
http://www.softlookup.com/display.asp?id=157709

Wanderlan Santos dos Anjos


Re: [lazarus] FPC compiler for virtual machines?

2008-02-06 Thread Marco Alvarado
2008/2/6, Wanderlan Santos dos Anjos [EMAIL PROTECTED]:
 Options for a Pascal compiler which targets Java:

 1. http://www.mhccorp.com/pasjvm.shtml
 2. http://en.wikipedia.org/wiki/MIDletPascal. Dead product?
 Download: http://www.softlookup.com/display.asp?id=157709

I know MIDletPascal, and it's a perfect example. It suffers the same
problem that Delphi has now, it's not Open Source. You have to wait
for it's development team to fix bugs, and the most important is that
if the team takes a different path (or vanishes), you will have to
jump to another compiler to keep on track, maybe a compiler for
another language as it is the case with Pascal.

I'd rather give my engine support for an unperfect compiler that
anyone can continue developing (reminds me of Lazarus), than a
compiler that can die unexpectedly.

Thanks for the links, anyway. :D

-Marco

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


[lazarus] Behavior of ClientToScreen in scrolling windows across different widget sets

2008-02-06 Thread Luiz Americo Pereira Camara
While debugging scrolling bugs in LCL i found that ClientToScreen acts 
differently according to the widget set.


These are the behaviors:

1) The returned value is related to the actual position, i.e., it does 
not consider the scroll offset. If you pass Point(0,0) the value will be 
the same regardless of the scroll position. (Gtk1)


2) The returned value is related to the virtual position, i.e, it takes 
into account the scroll offset. If you pass Point(0, 0) the value 
changes inversely to scrollbar position. (Gtk2)   

3)  The returned value is related to the virtual position, i.e, it takes 
into account the scroll offset. If you pass Point(0, 0) the value 
changes the same amount of scrollbar position. (Win32)


4) Nothing. Qt has no visible scrollbars so...

Notes:

Delphi does the same as (1)/Gtk1

(3) is clearly buggy.

Between (1) and (2) is a design decision.


Attached is a patch that makes win32 acts like (2)/gtk2. It changes the 
offset signal when calculating the LCL bounds. With the change it 
becomes consistent with the TCustomGroupBox signal convention (LCL 
bounds at Right/Down  of win32 +, at Left/Up -).

It also fixes the scrolling paint and setcursor of non TWincontrol.

Luiz



Index: lcl/interfaces/win32/win32callback.inc
===
--- lcl/interfaces/win32/win32callback.inc  (revision 14008)
+++ lcl/interfaces/win32/win32callback.inc  (working copy)
@@ -471,12 +471,10 @@
   end;
   if ParentPaintWindow  0 then
 GetWin32ControlPos(Window, ParentPaintWindow, parLeft, parTop);
-  if not GetLCLClientBoundsOffset(lWinControl, ORect) then
-  begin
-ORect.Left := 0;
-ORect.Top := 0;
-{ we don't use ORect.Right and ORect.Bottom, initialize here if needed 
}
-  end;
+  //Is not necessary to check the result of GetLCLClientBoundsOffset since
+  //the false condition (lWincontrol = nil or lWincontrol  TWinControl) 
is never met
+  //The rect is always initialized with 0
+  GetLCLClientBoundsOffset(lWinControl, ORect);
   PaintMsg.Msg := LM_PAINT;
   PaintMsg.PaintStruct := @PS;
   if not useDoubleBuffer then
Index: lcl/interfaces/win32/win32proc.pp
===
--- lcl/interfaces/win32/win32proc.pp   (revision 14008)
+++ lcl/interfaces/win32/win32proc.pp   (working copy)
@@ -852,8 +852,8 @@
   if HorzScrollBar  nil then
   begin
 // left and right bounds are shifted by scroll position
-ORect.Left := HorzScrollBar.Position;
-ORect.Right := HorzScrollBar.Position;
+ORect.Left := -HorzScrollBar.Position;
+ORect.Right := -HorzScrollBar.Position;
   end;
   if VertScrollBar  nil then
   begin
@@ -858,8 +858,8 @@
   if VertScrollBar  nil then
   begin
 // top and bottom bounds are shifted by scroll position
-ORect.Top := VertScrollBar.Position;
-ORect.Bottom := VertScrollBar.Position;
+ORect.Top := -VertScrollBar.Position;
+ORect.Bottom := -VertScrollBar.Position;
   end;
 end;
   If (TheWinControl is TCustomGroupBox) Then


Re: [lazarus] sqldb query parameter properties not loaded?

2008-02-06 Thread John

Joost van der Sluis wrote:

Op donderdag 24-01-2008 om 20:56 uur [tijdzone +1100], schreef John:
  

Joost van der Sluis wrote:


Op donderdag 24-01-2008 om 00:09 uur [tijdzone +1100], schreef John:
  
  

Snip

It does, in so far as the parameter specs are now retained, but now the 
database property of sqlquery is not read, so it still can't work 
properly.  In fact, I can't even set the database from the Lazarus 
object inspector.



Huh? Are you sure? Did you recompile everything correclty?
  
  
You won't often catch me saying Yes I am *sure* I compiled everything 
correctly !  I think I did, though.



Quick test is to add a new writeln, see if it is triggered. If so you
have rebuild it properly.

  

This is my version of set database:



It doesn't contain a call to Inherited.SetDatabase. I think that that is
your problem now.

  

procedure TCustomSQLQuery.SetDatabase(Value : TDatabase);

var db : tsqlconnection;

begin
  if (Database  Value) then
begin
{$IFDEF DBDEBUG}
if dbdbgOn then
  Writeln(dbdbg, 'TCustomSQLQuery.database is being set to ',
 Value.DatabaseName, '.');
{$ENDIF}
if assigned(value) and not (Value is TSQLConnection) then
  DatabaseErrorFmt(SErrNotASQLConnection,[value.Name],self);



Add   '  inherited setdatabase(value);'


  

if not (csLoading in ComponentState) then
  begin
  UnPrepare;
  if assigned(FCursor) then 
TSQLConnection(DataBase).DeAllocateCursorHandle(FCursor);

  db := TSQLConnection(Value);
  if assigned(value) and (Transaction = nil) and 
(Assigned(db.Transaction)) then

transaction := Db.Transaction;
  {$IFDEF DBDEBUG}
  if dbdbgOn then
Writeln(dbdbg, 'Calling TCustomSQLQuery.OnChangeSQL because ',
   'TCustomSQLQuery.database has been set to ',
   Value.DatabaseName, '.');
  {$ENDIF}
  OnChangeSQL(Self);
  end;
end;
end;



Joost

  

YES! It works!

I was tempted to write down the details of my adventures and why it took 
so long to get to this point, but I guess that will just bore everyone.  
Suffice to say that most were about learning to use the SVN environment, 
and not much to do with the above problem.  I think I may have achieved 
a functioning SVN environment now.


So now I have the parameter query opening when the form opens, and also 
have a master/client link between two sqlqueries, without requiring 
code.  (Previously I always seemed to need an 'AfterScroll' handler to 
get it to work).


I will see what further trouble I can get into.

Thanks,
John Sunderland

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


Re: [lazarus] GamePack 1.0 Released

2008-02-06 Thread A.J. Venter


I downloaded and installed the components fine.  However, when trying to 
load the demo project, the IDE hangs and eats up 50% CPU.  End Task'ing 
the lazarus process in Windows is necessary at that point.


Is this only linux/gtk?  Or is Win32 supported?

Hi Lee,
It's definitely meant to be a multiplatform suite.
You seem to have discovered a win32 specific bug. Since I only use 
native components that means that it must be something the w32 widget 
set does different.
Logically - only visual components could have issues with widget set 
implementations. That limits it to TDoubleBuffer.
The only part of TDoubleBuffer that is active during design is the paint 
method - so it seems win32 isn't handling that right.


Please try the following for me (I have no access to a windows machine 
for a while)

Fine the lines in doublebuffer.pas that read:

if csDesigning in ComponentState then
Self.Canvas.CopyRect(rect(0,0,width,height),FBackground.BitMap.Canvas,rect(0,0,width,height));

And comment them out.
This will have no impact on running programs, it will just prevent the 
background from being visible at designtime - but it may solve your 
problem. Please let me know if it does, so I can update the code on my 
side (I would use an IFDEF I imagine).

Win32 experts: If this works, how SHOULD I do it instead ?

Ciao
A.J.


--
Any sufficiently advanced technology is indistinguishable from magic - 
Clarke's law
Any technology that is distinguishable from magic is insufficiently 
advanced -Gehm's corollary
Any technologist that is distinguishable from a magician is 
insufficiently advanced - My corollary

The worlds worst webcomic: http://silentcoder.co.za/scartoonz
The worlds best cybercafe manager: http://outkafe.outkastsolutions.co.za

begin:vcard
fn:AJ Venter
n:Venter;AJ
org:Global Pact Trading Pty. Ltd.;OutKast Solutions
email;internet:[EMAIL PROTECTED]
title:Director of Product Development
tel;work:+27 21 554 5059
tel;fax:+27 11 252 9197
tel;cell:+27 83 455 9978
url:http://www.outkastsolutions.co.za
version:2.1
end:vcard



Re: [lazarus] Behavior of ClientToScreen in scrolling windows across different widget sets

2008-02-06 Thread Paul Ishenin

Luiz Americo Pereira Camara пишет:
While debugging scrolling bugs in LCL i found that ClientToScreen acts 
differently according to the widget set.


These are the behaviors:

1) The returned value is related to the actual position, i.e., it does 
not consider the scroll offset. If you pass Point(0,0) the value will be 
the same regardless of the scroll position. (Gtk1)


2) The returned value is related to the virtual position, i.e, it takes 
into account the scroll offset. If you pass Point(0, 0) the value 
changes inversely to scrollbar position. (Gtk2)  
3)  The returned value is related to the virtual position, i.e, it takes 
into account the scroll offset. If you pass Point(0, 0) the value 
changes the same amount of scrollbar position. (Win32)


4) Nothing. Qt has no visible scrollbars so...

Notes:

Delphi does the same as (1)/Gtk1

(3) is clearly buggy.

Between (1) and (2) is a design decision.


Attached is a patch that makes win32 acts like (2)/gtk2. It changes the 
offset signal when calculating the LCL bounds. With the change it 
becomes consistent with the TCustomGroupBox signal convention (LCL 
bounds at Right/Down  of win32 +, at Left/Up -).

It also fixes the scrolling paint and setcursor of non TWincontrol.



Thanks for patch. I changed things to repair GetClientBounds in r12351 
and probably this caused errors after. I will look at scrolling before 
and after your patch and commit it if behaviour will be better.


Best regards,
Paul Ishenin.

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


Re: [lazarus] Behavior of ClientToScreen in scrolling windows across different widget sets

2008-02-06 Thread Paul Ishenin

Luiz Americo Pereira Camara wrote:

3)  The returned value is related to the virtual position, i.e, it takes 
into account the scroll offset. If you pass Point(0, 0) the value 
changes the same amount of scrollbar position. (Win32)


Thanks, I applied it in r14010


4) Nothing. Qt has no visible scrollbars so...



I correct many things in r14009. Please reevaluate.

Best regards,
Paul Ishenin.

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