[Lazarus] For Qt LCL users

2012-10-31 Thread zeljko
One nice thing in Qt 5 (it'll have it's own "unique" look on all platforms as 
style option):
http://blog.qt.digia.com/2012/10/30/cleaning-up-styles-in-qt5-and-adding-
fusion/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+TheQtBlog+%28The+Qt+Blog%29

zeljko

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


Re: [Lazarus] Problems with Win8 x64

2012-10-31 Thread Vincent Snijders
2012/10/31 Mattias Gaertner 

> On Mon, 29 Oct 2012 09:43:01 -0500
> Andrew Brunner  wrote:
>
> > After installing Lazarus 1.0.2 binaries I try to compile my project and
> get
> >
> > Fatal: Can't find unit pqconnection used by uDatabase
> >
> > If I click on the pqconnection unit CodeTools brings me right to the
> > proper file.
> >
> > What can't fpc find the unit?  What entry is missing from the fpc.cfg
> file?
>
> Maybe you have a wrong ppu file or maybe you have an include file that
> conflicts.
> Try in the IDE "Run / Clean up build files".
>
> It is quiet possible that the unit was not compied for win64 in the
default installation, because the postgresql dll was not yet tested with
fpc and win64, so nobody knew it actually worked.

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


Re: [Lazarus] Splash window with drop shadow

2012-10-31 Thread Howard Page-Clark

On 30/10/12 10:49, Leonardo M. Ramé wrote:



Alberto, how can I make a window transparent?.


There's a suggestion here:
http://www.lazarus.freepascal.org/index.php/topic,18738.msg106055.html#msg106055

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


Re: [Lazarus] Remote application

2012-10-31 Thread Michael Schnell

I understand that there are (at least) two ways to do the remote display.

A) Read the pixels from the graphics driver. This is what VNC does. The 
problem here is, that you don't know when an update is necessary (and 
thus you need to do polling) and that reading the pixels needs a lot of 
performances (get a GDI-handle, read the complete screen memory via the 
bus and then transfer only the pixels that have changed). (In fact some 
time ago I stole this code from VNC, translated it from C to Pascal and 
did a thingy that could transfer a rectangle of the screen via TCP to 
another PC.)


or

B) Hook into the interface between the application and the Windows 
manager. This is what Linux "Remote X" and Windows "Remote Desktop" do. 
VirtualBox (and supposedly VMWare) seems to be able to do do this, too, 
and here I did already see that it is possible to virtualize a single 
program rather than a complete Desktop.




Seemingly NX can do both, depending on the situation.

It's understandable that doing (B) is at least "difficult", when you 
want to attach to a running program, as supposedly a program transfers 
some information when starting and the Window manager needs to know same 
even when it requests a full repaint. But obviously Windows "Remote 
Desktop" can handle this problem decently.


So attaching to an already running program (not the Desktop it runs on) 
using (B) is not that easy :-( . Maybe it's possible to something like 
starting another instance of the program with NX in the way you 
originally described and do some magic within the program itself to meld 
the running instance into the newly started one. (Just raving...)


-Michael

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


Re: [Lazarus] Indy & WinCE

2012-10-31 Thread Antonio Fortuny

Hi ALL.

I got rid of the compilation problems of Indy. I've made a little test 
for WinCE and, good news, it works !
However some minor changes have to be made on a few units to have a 
clean compilation for WinCE:


IdRegisterCore.pas,
IdIMAP4.pas,
idStackWindows.pas,
IdWinsock2.pas

Server: Vista32
Client; WinCE

Compiled on Vista32, Lazarus 1.1 37816 (29/06/2012)
indylaz.lpk compiled but not yet installed in the IDE

Server uses a TIdTCPServer and connetions are handled within separated 
threads, one per new connection, as usual with Indy.


Client uses a TIdTCPClient, connection is handled synchronously.

Both client and server use the standard IoHandler Stream reader and 
writer and any binary data runs thru the streams without problem. Of 
course, I have to take care of string translations between Win32 
(WIN1252 code page) and WinCE (Unicode) or whatever goes trhu 
(specifically from databases).


In case you need some more explantions feel free to ask me.

Antonio


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


Re: [Lazarus] Indy & WinCE

2012-10-31 Thread Tommi Prami

Hello,

Donate your changes back to the Project ;)

-Tee-

On 31.10.2012 11:42, Antonio Fortuny wrote:

Hi ALL.

I got rid of the compilation problems of Indy. I've made a little test 
for WinCE and, good news, it works !
However some minor changes have to be made on a few units to have a 
clean compilation for WinCE:


IdRegisterCore.pas,
IdIMAP4.pas,
idStackWindows.pas,
IdWinsock2.pas

Server: Vista32
Client; WinCE

Compiled on Vista32, Lazarus 1.1 37816 (29/06/2012)
indylaz.lpk compiled but not yet installed in the IDE

Server uses a TIdTCPServer and connetions are handled within separated 
threads, one per new connection, as usual with Indy.


Client uses a TIdTCPClient, connection is handled synchronously.

Both client and server use the standard IoHandler Stream reader and 
writer and any binary data runs thru the streams without problem. Of 
course, I have to take care of string translations between Win32 
(WIN1252 code page) and WinCE (Unicode) or whatever goes trhu 
(specifically from databases).


In case you need some more explantions feel free to ask me.

Antonio


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



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


Re: [Lazarus] Remote application

2012-10-31 Thread Santiago A.
El 31/10/2012 10:13, Michael Schnell escribió:
> I understand that there are (at least) two ways to do the remote display.
>
> A) Read the pixels from the graphics driver. This is what VNC does.
> The problem here is, that you don't know when an update is necessary
> (and thus you need to do polling) and that reading the pixels needs a
> lot of performances (get a GDI-handle, read the complete screen memory
> via the bus and then transfer only the pixels that have changed). (In
> fact some time ago I stole this code from VNC, translated it from C to
> Pascal and did a thingy that could transfer a rectangle of the screen
> via TCP to another PC.)
>
> or
>
> B) Hook into the interface between the application and the Windows
> manager. This is what Linux "Remote X" and Windows "Remote Desktop"
> do. VirtualBox (and supposedly VMWare) seems to be able to do do this,
> too, and here I did already see that it is possible to virtualize a
> single program rather than a complete Desktop.
>
>
>
> Seemingly NX can do both, depending on the situation.

I suppose that NX not only compress, but decides from the server (in
behalf the client application) what must  be send to the client (the
graphic server). A lot of things needn't to be send, a lot of things can
be joint and send only the final result, and a lot of commands can be
queued, cached and sent in less commadds. And the other way around, the
client (the graphic server) needent to sent everything.

I suppose that NX does smart decisions filtering what needs to be sent
in both directions, so saves a lot of traffic and round trips.

X11 It is acceptable when in a local machine, but not for remote
machines, let alone a WAN.  I've heard that the problem is in a poor use
of X11 of libraries like gtk or qt, I've also heard that the problem is
in xlib, the common libarry of most widgets that doesn't optimize the
protocol.

I have also heard that X11 is a too low level protocol and should be
replaced. There have been some tries like
http://en.wikipedia.org/wiki/Fresco_%28windowing_system%29. In fact,
that is what javascript and ajax tries, send widgets etc.

-- 
Saludos

Santiago
s...@ciberpiula.net


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


Re: [Lazarus] Indy & WinCE

2012-10-31 Thread Antonio Fortuny

Le 31/10/2012 12:03, Tommi Prami a écrit :

Hello,

Donate your changes back to the Project ;)


No problem. I know that Marco VDV was playing around with some Indy 
guys. What would be the best ?
I can easily spot where the changes are but I'd like to have some other 
guy used to post changes


Antonio.


-Tee-

On 31.10.2012 11:42, Antonio Fortuny wrote:

Hi ALL.

I got rid of the compilation problems of Indy. I've made a little test
for WinCE and, good news, it works !
However some minor changes have to be made on a few units to have a
clean compilation for WinCE:

IdRegisterCore.pas,
IdIMAP4.pas,
idStackWindows.pas,
IdWinsock2.pas

Server: Vista32
Client; WinCE

Compiled on Vista32, Lazarus 1.1 37816 (29/06/2012)
indylaz.lpk compiled but not yet installed in the IDE

Server uses a TIdTCPServer and connetions are handled within separated
threads, one per new connection, as usual with Indy.

Client uses a TIdTCPClient, connection is handled synchronously.

Both client and server use the standard IoHandler Stream reader and
writer and any binary data runs thru the streams without problem. Of
course, I have to take care of string translations between Win32
(WIN1252 code page) and WinCE (Unicode) or whatever goes trhu
(specifically from databases).

In case you need some more explantions feel free to ask me.

Antonio


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



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





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


[Lazarus] Free Windows 8 OEM x64 for Lazarus Core Developer(s)

2012-10-31 Thread Andrew Brunner
I'm looking to better Lazarus on Windows 8 (64bit).  I realize it just 
came out and it may be not worth the time to run (even in a virtual-box).


I'm offering a few Lazarus core developers a copy of windows 8 so they 
can have it to run and test and improve Lazarus.


The only thing I want is
  1: fcl-db components present (currently missing postgresql).
  2: Install to Program Files and Build Projects.  If the problem is 
out of scope - clearly identify problem areas and their external projects.


Email me for acceptance, I will buy and drop-ship you the cd.  You 
retain license for your time.  Win8 Pro Upgrade or Win8 Pro Full.


Thanks,

--
Andrew Brunner

Aurawin LLC
512.574.6298
http://aurawin.com/

Aurawin is a great new way to store, share, and enjoy your
photos, videos, music and more.


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


Re: [Lazarus] Remote application

2012-10-31 Thread Lukasz Sokol
On 31/10/2012 09:13, Michael Schnell wrote:
> I understand that there are (at least) two ways to do the remote
> display.
> 
> A) Read the pixels from the graphics driver. This is what VNC does.
> The problem here is, that you don't know when an update is necessary
> (and thus you need to do polling) and that reading the pixels needs a
> lot of performances (get a GDI-handle, read the complete screen
> memory via the bus and then transfer only the pixels that have
> changed). 

Some /free software/ VNC implementations (e.g. UltraVNC) install their 
own display driver [under Windows] to exactly know /when/ update is needed
and where. 

> -Michael
> 

Lukasz


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


Re: [Lazarus] Remote application

2012-10-31 Thread Michael Schnell

On 10/31/2012 01:47 PM, Lukasz Sokol wrote:
Some /free software/ VNC implementations (e.g. UltraVNC) install their 
own display driver [under Windows] to exactly know /when/ update is 
needed and where.

Good to know !

Thanks,
-Michael

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


Re: [Lazarus] Free Windows 8 OEM x64 for Lazarus Core Developer(s)

2012-10-31 Thread Vincent Snijders
2012/10/31 Andrew Brunner 

> I'm looking to better Lazarus on Windows 8 (64bit).  I realize it just
> came out and it may be not worth the time to run (even in a virtual-box).
>
> I'm offering a few Lazarus core developers a copy of windows 8 so they can
> have it to run and test and improve Lazarus.
>
> The only thing I want is
>   1: fcl-db components present (currently missing postgresql).
>   2: Install to Program Files and Build Projects.  If the problem is out
> of scope - clearly identify problem areas and their external projects.
>
> Email me for acceptance, I will buy and drop-ship you the cd.  You retain
> license for your time.  Win8 Pro Upgrade or Win8 Pro Full.
>
>
Nice offer, I see you already added to the bounties page at:
http://wiki.lazarus.freepascal.org/Bounties#Windows_8_64bit_Pro_.28Full.2FUpgrade.29

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


Re: [Lazarus] Free Windows 8 OEM x64 for Lazarus Core Developer(s)

2012-10-31 Thread luiz americo pereira camara
2012/10/31 Andrew Brunner 

>   1: fcl-db components present (currently missing postgresql).
>


AFAIK, the lack of db components in 64bit is a fpc issue. Somehow some db
units were not built in 64bit. I remember some fixes landing in fpc svn
repository some time ago

So your best bet is ask the fpc devs.

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


Re: [Lazarus] Free Windows 8 OEM x64 for Lazarus Core Developer(s)

2012-10-31 Thread luiz americo pereira camara
2012/10/31 Vincent Snijders 

>
>
> 2012/10/31 Andrew Brunner 
>
>> I'm looking to better Lazarus on Windows 8 (64bit).  I realize it just
>> came out and it may be not worth the time to run (even in a virtual-box).
>>
>> I'm offering a few Lazarus core developers a copy of windows 8 so they
>> can have it to run and test and improve Lazarus.
>>
>> The only thing I want is
>>   1: fcl-db components present (currently missing postgresql).
>>
>
AFAIK, the lack of db components in 64bit is a fpc issue. Somehow some db
units were not built in 64bit. I remember some fixes landing in fpc svn
repository some time ago

So your best bet is ask the fpc devs.

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


[Lazarus] Assigning Scrollbar.Position crashes on Gtk

2012-10-31 Thread Alexander Klenin
I'd like a help of Gtk expert with issue
http://bugs.freepascal.org/view.php?id=23200
This is outside of my usual interests, but the crash happens to affect TAChart,
since it imlpements a TScrollBar descendant.
Note that the code works on both Win and Qt.

-- 
Alexander S. Klenin

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


Re: [Lazarus] Free Windows 8 OEM x64 for Lazarus Core Developer(s)

2012-10-31 Thread Reinier Olislagers
On 31-10-2012 17:49, luiz americo pereira camara wrote:
> 

>   1: fcl-db components present (currently missing postgresql).
> 
> 
> 
> AFAIK, the lack of db components in 64bit is a fpc issue. Somehow some
> db units were not built in 64bit. I remember some fixes landing in fpc
> svn repository some time ago
> 
> So your best bet is ask the fpc devs.

Bug with patch for 64 bit Lazarus component for PostgreSQL:
http://bugs.freepascal.org/view.php?id=23096
Postgres SQL Connection for 64bit driver
which depends on the FPC implementation:

http://bugs.freepascal.org/view.php?id=23098
[Patch] FPC Postgres SQL Connection for 64bit driver
applied in FPC trunk/2.7.1, revision 22607
marked for backport to 2.6.x (could be/might well be in there already,
don't remember).

The FPC patch has been committed; the Lazarus one hasn't yet.
If you use FPC trunk, you could apply the Lazarus patch


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


[Lazarus] fpdoc download

2012-10-31 Thread Marco Aurelio Ramirez Carrillo
Hi. I have some libraries in Lazarus, that I want to generate documentation.

I don't have internet at home. I found this link:

http://lazarus-ccr.sourceforge.net/fpcdoc/fpdoc/fpdoc.html

Is there a url where I can download the same manual ?

Thanks.

-- 
atte

Marco Aurelio Ramirez Carrillo

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


Re: [Lazarus] Free Windows 8 OEM x64 for Lazarus Core Developer(s)

2012-10-31 Thread Maxim Ganetsky

31.10.2012 22:25, Reinier Olislagers пишет:

On 31-10-2012 17:49, luiz americo pereira camara wrote:





   1: fcl-db components present (currently missing postgresql).



AFAIK, the lack of db components in 64bit is a fpc issue. Somehow some
db units were not built in 64bit. I remember some fixes landing in fpc
svn repository some time ago

So your best bet is ask the fpc devs.


Bug with patch for 64 bit Lazarus component for PostgreSQL:
http://bugs.freepascal.org/view.php?id=23096
Postgres SQL Connection for 64bit driver
which depends on the FPC implementation:

http://bugs.freepascal.org/view.php?id=23098
[Patch] FPC Postgres SQL Connection for 64bit driver
applied in FPC trunk/2.7.1, revision 22607
marked for backport to 2.6.x (could be/might well be in there already,
don't remember).

The FPC patch has been committed; the Lazarus one hasn't yet.
If you use FPC trunk, you could apply the Lazarus patch


It seems that this revision isn't yet in 2.6.x. BTW, won't it break 
Lazarus compilation with FPC 2.6.0?


--
Best regards,
 Maxim Ganetsky  mailto:gan...@narod.ru

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


Re: [Lazarus] Free Windows 8 OEM x64 for Lazarus Core Developer(s)

2012-10-31 Thread Juha Manninen
On Wed, Oct 31, 2012 at 8:25 PM, Reinier Olislagers
 wrote:
> Bug with patch for 64 bit Lazarus component for PostgreSQL:
> http://bugs.freepascal.org/view.php?id=23096
> Postgres SQL Connection for 64bit driver
> which depends on the FPC implementation:
> [...]
> The FPC patch has been committed; the Lazarus one hasn't yet.
> If you use FPC trunk, you could apply the Lazarus patch

I applied it, or actually I removed the whole define because it became obsolete.

Juha

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


Re: [Lazarus] Free Windows 8 OEM x64 for Lazarus Core Developer(s)

2012-10-31 Thread Juha Manninen
On Wed, Oct 31, 2012 at 10:49 PM, Maxim Ganetsky  wrote:
> It seems that this revision isn't yet in 2.6.x. BTW, won't it break Lazarus
> compilation with FPC 2.6.0?

I have FPC 2.6.0 and it compiles OK.

Juha

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


[Lazarus] about DBGrid from hfiandor 31 oct 2012

2012-10-31 Thread Héctor F . Fiandor Rosario
Dear colleagues:

i have a BD with 20 fields. In a form i want to fill the data for three of then 
only, using a DBGrid.

the first columns is the Id that is AutoInc and the others are ftString.

Please, i don´t know how to fix the name of the columns with the name of the 
fields selected to be filled.

thanks in advance,

yours truly,

Ing. Héctor F. Fiandor Rosario
hfian...@infomed.sld.cu



--

Este mensaje le ha llegado mediante el servicio de correo electronico 
que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistem
a Nacional de Salud. La persona que envia este correo asume el compromiso de
 usar el servicio a tales fines y cumplir con las regulaciones establecidas


Infomed: http://www.sld.cu/


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


[Lazarus] 2do: about DBGrid from hfiandor 31 oct 2012

2012-10-31 Thread Héctor F . Fiandor Rosario
dear colleagues:

i have found how to fix the name of columns with the field´s name, and i have 
found how to fix the width of each colum. It works in a pretty way.

as i have 20 fields with data about "projects", the last ones scroll the screen 
to the right and the PC´operator lost the project´s name and i am thinking to 
put and edit box in the upper place of the DBGrid to show the project´s name 
(one of the firsts fields of the record) for the active row. If i used a simple 
edit box, it can be programmed in the OnKeyPress Event, but I don´t know how to 
do it in the case of a dbGrid.

Another question: Can I obtain the Sum of each colums and put in a StringGrid 
placed above the DBGrid?

thanks in advance,

yours truly,

Ing. Héctor F. Fiandor Rosario
hfian...@infomed.sld.cu

--

Este mensaje le ha llegado mediante el servicio de correo electronico 
que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistem
a Nacional de Salud. La persona que envia este correo asume el compromiso de
 usar el servicio a tales fines y cumplir con las regulaciones establecidas


Infomed: http://www.sld.cu/


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