Re: [lazarus] 0.9.20 released

2006-11-09 Thread Mattias Gaertner
On Wed, 08 Nov 2006 21:59:29 +0100
Søren Ager [EMAIL PROTECTED] wrote:

 On 2006-11-08 09:52, Mattias Gaertner wrote:
 
  The Lazarus team is glad to announce the 0.9.20 release. This
  release is based on fpc 2.0.4.
 
 I downloaded and installed the .deb (on top of 0.9.18) - but is still 
 says 0.9.18 in the caption and about? Cosmetic bug or wrong version?

Did you download an install the lazarus_0.9.20-0_i386.deb?
I will double check.

Mattias

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


Re: [lazarus] Possible to 'embed' a java applet in application?

2006-11-09 Thread Graeme Geldenhuys

Hi Alexandre,

As Felipe has mentioned.  I have created the basics for this already.
Currently Flash and Adobe Reader can be embedded, but there is no
reason Java cannot be done as well.

Have a look in my SubVersion server at:
 svn co svn://opensoft.homeip.net/MozillaPluginPanel/trunk MozillaPluginPanel

It does need some work though.  The Flash and Adobe Reader plugins
work fine under Windows.  It is close to working under Linux.  In the
end we decided to write complete CGI apps for the project Mozilla
Plugin Panel was designed for, so development has halted on that for
now.  I intend to start development again, as soon as fpGUI is more
workable.

Scott Sedgwick [EMAIL PROTECTED] is also interested to
revive the Mozilla Plugin Panel, so if you are interested, there will
be two developers working on it.  I will help where I can, but as I
said, fpGUI is priority at the moment.

Regards,
 - Graeme -


On 08/11/06, Alexandre Leclerc [EMAIL PROTECTED] wrote:

Hi all,

I don't know if this is possible. I have a java applet (this is a
program) that run in a browser. But this is external to my
application. I would like to build a form and run this applet inside
my form so that it looks much more embeded.

Is such a think possible. Main target will be Windows platform. But
linux platform is *a must* by principle (to me) :) .

Thank you for any help and pointers.

--
Alexandre Leclerc

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




--
There's no place like 127.0.0.1

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


Re: [lazarus] Possible to 'embed' a java applet in application?

2006-11-09 Thread Graeme Geldenhuys

On 08/11/06, Eduardo Jedliczka [EMAIL PROTECTED] wrote:

I think it´s a very interesting thing to implement as true lazarus
component...

Of coarse with it´s autor authorization.


I have no problems with that.

Regards,
 - Graeme -

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


[lazarus] version of TmySQLConnection

2006-11-09 Thread Bisma Jayadi

Hi...

I saw three icons of TmySQLConnection component on Lazarus component palette, 
they are for mySQL v.4.0, v.4.1, and v.5.0. Can't they just be wrapped into a 
single component and supply the corresponding version through connection 
parameter? This way will make our code life easier to connect to any version of 
mySQL database.


Is it possible?

-Bee-

has Bee.ography at:
http://beeography.wordpress.com

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


Re: [lazarus] Possible to 'embed' a java applet in application?

2006-11-09 Thread Graeme Geldenhuys

On 08/11/06, Alexandre Leclerc [EMAIL PROTECTED] wrote:

Thanks for the pointer... I already knew this; this is why I did ask
the question. Maybe there is another way asside using the mozilla
back-end? If there are no other solution, this is fine... at least
this is a solution.


Okay, you are not understanding the Mozilla Plugin Panel (MPP) and how
it works.  It doesn't use Mozilla at all! Maybe the usage of the word
'Mozilla' is confusing.  What is does do, is allow you to use the
Mozilla plugins currently available.  In theory, any Mozilla plugins
should work.  The MPP implements the API's that the plugins expect
from Mozilla.  This way, when the plugin loads inside MPP, it has no
idea, it isn't running inside Mozilla.  The plugin can call the API's
it needs and the MPP will respond as needed.

As I said, the Linux side needs some work. When I started the project,
I knew nothing about X11 programming.  Things are now different.  The
Windows side of things are working fine. The plugin was design using
Lazarus, so creating a Lazarus component on the component palette is a
no brainer.

I will create a web page describing the MPP and how it works.  It
should be available on my website after the weekend.  Maybe I should
rather put it on the Lazarus Wiki now that I think about it.

Regards,
 - Graeme -

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


Re: [lazarus] 0.9.20 released

2006-11-09 Thread Mattias Gaertner
On Wed, 8 Nov 2006 23:27:00 +0300
Al Boldi [EMAIL PROTECTED] wrote:

 Vincent Snijders wrote:
  Al Boldi schreef:
   Vincent Snijders wrote:
   Al Boldi schreef:
  
   But I don't have svn.
 
  Get it, it is worth it.
 
   Plus, I am on dial-up; does svn resume on lost connections?
 
  This diff command doesn't.
 
 So maybe someone can do me a favor, if the diff isn't too big?
 
 I am on laz-0.9.15, and fpc-2.0.2.

0.9.15 was never released, it was a developer version. If eventually
there will be diffs, they will be the diffs from release to release
(e.g. 0.9.18 - 0.9.20).

The svn can create diffs with the following command: 
svn diff -r 9933:10175.
This is the diff between 0.9.18 and 0.9.20 and creates a diff
of 4.7mb, gzipped: 0.8mb.
But there were less changes than normal. For comparison the diff between
0.9.16 and 0.9.18 is 7mb, gzipped 1.4mb.


Mattias

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


Re: [lazarus] version of TmySQLConnection

2006-11-09 Thread Michael Van Canneyt


On Thu, 9 Nov 2006, Bisma Jayadi wrote:

 Hi...
 
 I saw three icons of TmySQLConnection component on Lazarus component palette,
 they are for mySQL v.4.0, v.4.1, and v.5.0. Can't they just be wrapped into a
 single component and supply the corresponding version through connection
 parameter? This way will make our code life easier to connect to any version
 of mySQL database.
 
 Is it possible?

It is, but:
1. It will take some additional work.
2. It will make your application bigger, because the code for all 3 connections
   will be included in your application.

Michael.

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


Re: [lazarus] 0.9.20 released

2006-11-09 Thread Graeme Geldenhuys

On 08/11/06, Luis R. Hilario B. [EMAIL PROTECTED] wrote:

Like http://mypage.bluewin.ch/msegui/



The same idea yes, but a few different features.

Regards,
 - Graeme -

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


Re: [lazarus] 0.9.20 released

2006-11-09 Thread Graeme Geldenhuys

On 09/11/06, Luis R. Hilario B. [EMAIL PROTECTED] wrote:

 Which files are enormous?

The final result of the programs created with MSEide + MSEgui


Isn't that just because of the debug information inside the
executables.  This is covered in the Free Pascal or Lazarus FAQ.  Use
the 'strip' command, to remove the debug information from the
executable.

For example:
I compile a app with Lazarus and the executable is 12Mb.  After using
'strip appname.exe' it shrinks down to 4Mb.

Regards,
 - Graeme -

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


Re: [lazarus] version of TmySQLConnection

2006-11-09 Thread Bisma Jayadi

It is, but:
1. It will take some additional work.


If we keep them separated, it will take some additional works to users 
(programmers), especially if he wants to make an application which connects to 
several mySQL databases with different version. ;)



2. It will make your application bigger, because the code for all 3 connections
   will be included in your application.


For a multi-database with version-adaptive client application, this'd be the 
consequences.


-Bee-

has Bee.ography at:
http://beeography.wordpress.com

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


Re: [lazarus] version of TmySQLConnection

2006-11-09 Thread Vincent Snijders

Bisma Jayadi schreef:

It is, but:
1. It will take some additional work.


If we keep them separated, it will take some additional works to users 
(programmers), especially if he wants to make an application which 
connects to several mySQL databases with different version. ;)




The version mySQL databases (i.e. the server) is irrelevant. What is 
important is the installed client libraries.


Vincent

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


Re: [lazarus] 0.9.20 released

2006-11-09 Thread Al Boldi
Mattias Gaertner wrote:
 Al Boldi [EMAIL PROTECTED] wrote:
  Vincent Snijders wrote:
   Al Boldi schreef:
Vincent Snijders wrote:
Al Boldi schreef:
   
But I don't have svn.
  
   Get it, it is worth it.
  
Plus, I am on dial-up; does svn resume on lost connections?
  
   This diff command doesn't.
 
  So maybe someone can do me a favor, if the diff isn't too big?
 
  I am on laz-0.9.15, and fpc-2.0.2.

 0.9.15 was never released, it was a developer version. If eventually
 there will be diffs, they will be the diffs from release to release
 (e.g. 0.9.18 - 0.9.20).

So what I need is a diff from the 0.9.15 daily tarball snapshot from 
2006.05.10 to the 0.9.16 release.  Is this possible?

If so, can someone provide this for me?

 The svn can create diffs with the following command:
 svn diff -r 9933:10175.
 This is the diff between 0.9.18 and 0.9.20 and creates a diff
 of 4.7mb, gzipped: 0.8mb.
 But there were less changes than normal. For comparison the diff between
 0.9.16 and 0.9.18 is 7mb, gzipped 1.4mb.

Great!  bz2 could possibly provide even higher compression.


Thanks!

--
Al

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


[lazarus] How to substitute TBitmap.ScanLine?

2006-11-09 Thread Sergei Gorelkin
Hello,

I have a procedure like this:

  procedure PaintIntoMemory(aWidth, aHeight, rowstride: Integer;
aMemory: Pointer);

It 'paints' some stuff into memory block described by its arguments,
treating memory as RGB bitmap. Then, I want to draw the result on TCanvas.
In Delphi, it is quite simple:

  Bitmap := TBitmap.Create;
  Bitmap.PixelFormat := pf24Bit;
  Bitmap.Width := ...;
  Bitmap.Height := ...;
  PaintIntoMemory(Bitmap.Width, Bitmap.Height,
BytesPerScanline(Bitmap.Width, 24, 32), Bitmap.Scanline[0]);
  ...
  aCanvas.Draw(0,0,Bitmap);
  
But how to do the same in Lazarus? I guess that I must create a TLazIntfImage,
specify its pixel format, then use its PixelData property...
Or it is better allocate a TRawImage, paint into it and then call
TLazIntfImage.SetRawImage method?
Please point me to a right direction :) Thank you in advance.
  
-- 
Best regards,
 Sergei


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


Re: [lazarus] 0.9.20 released

2006-11-09 Thread John Meyer
I'm still getting the error that the kde/gnome lazarus icon fails to
start lazarus and when I type lazarus in the alt+f2, it gives me an
error.  Incidentally, when I start it either from the command line or
from an icon on the desktop there are no problems starting it.

Mattias Gaertner wrote:
 On Wed, 8 Nov 2006 18:20:33 +0100
 Sebastian Kraft [EMAIL PROTECTED] wrote:

   
 Am Mittwoch, 8. November 2006 09:52 schrieb Mattias Gaertner:
 
 The Lazarus team is glad to announce the 0.9.20 release. This
 release is based on fpc 2.0.4.

   
 Mhm... with new release the editor looks strange. everything is a 
 bit squeezed. font is small and ugly. With the svn some days before
 it was excellent...
 

 I don't remember any such change. At least not since 0.9.18.
 Please create a bug report.


 Mattias

 _
  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] 0.9.20 released

2006-11-09 Thread Søren Ager

On 2006-11-09 08:59, Mattias Gaertner wrote:

I downloaded and installed the .deb (on top of 0.9.18) - but is still 
says 0.9.18 in the caption and about? Cosmetic bug or wrong version?

Did you download an install the lazarus_0.9.20-0_i386.deb?
I will double check.


Yes I did - and Synaptic package manager tells me version 0.9.20 is 
installed.



Take care,
  Søren

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


Re: [lazarus] Possible to 'embed' a java applet in application?

2006-11-09 Thread Alexandre Leclerc

2006/11/9, Graeme Geldenhuys [EMAIL PROTECTED]:

On 08/11/06, Alexandre Leclerc [EMAIL PROTECTED] wrote:
 Thanks for the pointer... I already knew this; this is why I did ask
 the question. Maybe there is another way asside using the mozilla
 back-end? If there are no other solution, this is fine... at least
 this is a solution.

Okay, you are not understanding the Mozilla Plugin Panel (MPP) and how
it works.  It doesn't use Mozilla at all! Maybe the usage of the word
'Mozilla' is confusing.  What is does do, is allow you to use the
Mozilla plugins currently available.  In theory, any Mozilla plugins
should work.  The MPP implements the API's that the plugins expect
from Mozilla.  This way, when the plugin loads inside MPP, it has no
idea, it isn't running inside Mozilla.  The plugin can call the API's
it needs and the MPP will respond as needed.


Now, there you talk. This is a very interesting project. So
potentially, the java applets would also work as desired. The project
is not officiel. I must find a technology that can embed an applet
inside a normal application and have some control on it (as far as the
applet is concerned). If possible to interract with java script or any
other way to initialize the applet as it is possible with java script.

But I must check if making java applets will work. I saw painting
problems if I resize the screen: I must stop / start the flash so that
it paints properly after...


I will create a web page describing the MPP and how it works.  It
should be available on my website after the weekend.  Maybe I should
rather put it on the Lazarus Wiki now that I think about it.


That would be good. But for now this is just an exploration of the
possibilities.

Best regards.

--
Alexandre Leclerc

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


Re: [lazarus] Possible to 'embed' a java applet in application?

2006-11-09 Thread Graeme Geldenhuys

On 09/11/06, Alexandre Leclerc [EMAIL PROTECTED] wrote:

Now, there you talk. This is a very interesting project. So
potentially, the java applets would also work as desired.


:-)  Yes, the same as what you embed a applet in the Mozilla Browser,
you should be able to do it in MPP.  All Mozilla plugins expect a
certain API, and MPP implements that.

The only problem is that the documentation of the Mozilla Browser
Plugin API is very hard to find.  I had to look at a lot of C source
(Mozilla) code to figure most of it out.


The project is not officiel.


What do you mean by official?  It's not part of Lazarus if that is
what you mean.  If it is stable enough, it could be.


I must find a technology that can embed an applet
inside a normal application and have some control on it (as far as the
applet is concerned). If possible to interract with java script or any
other way to initialize the applet as it is possible with java script.


Seeing that JavaScript can talk to the Java applet, it has to talk via
some API.  If you can find out what, that could be added to MPP.
Currently (as far as I remember - I haven't touched the code since
January) you can only pass parameters to the plugin as it gets loaded.
The interaction should be possible, you just need to know more about
how JavaScript talks to plugins.  That would be a very cool feature
though.  Imagine what good looking GUI interfaces you can build with
embedded flash files inside you app!  :-)


But I must check if making java applets will work. I saw painting
problems if I resize the screen: I must stop / start the flash so that
it paints properly after...


I am sure there are main more bugs.  The project is far from
production quality, but should have a good base to continue on.  Linux
support still requires most work.

Regards,
 - Graeme -

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


Re: [lazarus] 0.9.20 released

2006-11-09 Thread Luis R. Hilario B.

2006/11/9, Graeme Geldenhuys [EMAIL PROTECTED]:

On 09/11/06, Luis R. Hilario B. [EMAIL PROTECTED] wrote:
  Which files are enormous?

 The final result of the programs created with MSEide + MSEgui

Isn't that just because of the debug information inside the
executables.  This is covered in the Free Pascal or Lazarus FAQ.  Use
the 'strip' command, to remove the debug information from the
executable.

For example:
 I compile a app with Lazarus and the executable is 12Mb.  After using
'strip appname.exe' it shrinks down to 4Mb.


I know.
You consider that 4MB is small?

joke
It is verified that the size yes imports. :)
joke


Regards,
  - Graeme -

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




--
http://luisdigital.com

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


Re: [lazarus] 0.9.20 released

2006-11-09 Thread Graeme Geldenhuys

Well, the app I used as an example isn't very small. It wasn't a
'Hello World' app.  Yes it is bigger than Delphi created, but then I
worked on Delphi apps that had 35Mb executables, and no that wasn't
due to image resources.  Just a very large app.  With today's hard
drive space - who cares!  :-)

For internet downloading/distribution, use 7zip for compression.  It
shrinks files like nothing before!

Regards,
 - Graeme -


On 09/11/06, Luis R. Hilario B. [EMAIL PROTECTED] wrote:

2006/11/9, Graeme Geldenhuys [EMAIL PROTECTED]:
 On 09/11/06, Luis R. Hilario B. [EMAIL PROTECTED] wrote:
   Which files are enormous?
 
  The final result of the programs created with MSEide + MSEgui

 Isn't that just because of the debug information inside the
 executables.  This is covered in the Free Pascal or Lazarus FAQ.  Use
 the 'strip' command, to remove the debug information from the
 executable.

 For example:
  I compile a app with Lazarus and the executable is 12Mb.  After using
 'strip appname.exe' it shrinks down to 4Mb.

I know.
You consider that 4MB is small?

joke
It is verified that the size yes imports. :)
joke

 Regards,
   - Graeme -

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



--
http://luisdigital.com

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




--
There's no place like 127.0.0.1

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


Re: [lazarus] 0.9.20 released

2006-11-09 Thread Marc Weustink

Søren Ager wrote:

On 2006-11-09 08:59, Mattias Gaertner wrote:

I downloaded and installed the .deb (on top of 0.9.18) - but is still 
says 0.9.18 in the caption and about? Cosmetic bug or wrong version?

Did you download an install the lazarus_0.9.20-0_i386.deb?
I will double check.


Yes I did - and Synaptic package manager tells me version 0.9.20 is 
installed.


Did you install packages in 0.9.18 ? And do you start lazarus using 
startlazarus ?


if so, remove ~/.lazarus/bin/lazarus

Marc


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


Re: [lazarus] 0.9.20 released

2006-11-09 Thread Søren Ager

On 2006-11-09 16:21, Marc Weustink wrote:

I downloaded and installed the .deb (on top of 0.9.18) - but is 
still says 0.9.18 in the caption and about?


Did you install packages in 0.9.18 ? And do you start lazarus using 
startlazarus ?


if so, remove ~/.lazarus/bin/lazarus


A - that did it. Thanks a lot.


Take care,
  Søren

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


Re: [lazarus] Possible to 'embed' a java applet in application?

2006-11-09 Thread Alexandre Leclerc

2006/11/9, Graeme Geldenhuys [EMAIL PROTECTED]:

 The project is not officiel.

What do you mean by official?  It's not part of Lazarus if that is
what you mean.  If it is stable enough, it could be.


I mean our project. :) I'm searching for solutions to a problem and
based on what we can do we will build a project. My boss has not
decided if he would actually integrate applets to our software. But I
think this is what he will want. So MPP comes into the game if we
choose to write the solution in FPC.


I must find a technology that can embed an applet
 inside a normal application and have some control on it (as far as the
 applet is concerned). If possible to interract with java script or any
 other way to initialize the applet as it is possible with java script.

Seeing that JavaScript can talk to the Java applet, it has to talk via
some API.  If you can find out what, that could be added to MPP.
Currently (as far as I remember - I haven't touched the code since
January) you can only pass parameters to the plugin as it gets loaded.
 The interaction should be possible, you just need to know more about
how JavaScript talks to plugins.  That would be a very cool feature
though.  Imagine what good looking GUI interfaces you can build with
embedded flash files inside you app!  :-)


For now, initialization on applet start-up will be enought. I'm not
going into real-time interraction as in ajax for now :) But as you say
that would be impressive to do that.


I am sure there are main more bugs.  The project is far from
production quality, but should have a good base to continue on.  Linux
support still requires most work.


Yes, it gives a pretty good starting point: the concept does work. And
it is very interesting to actually directly talk to the plugin API...
the mozilla way. :) I'm impressed by this brilliant idea!

Best regards.

--
Alexandre Leclerc

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


Re: [lazarus] Possible to 'embed' a java applet in application?

2006-11-09 Thread Razvan Adrian Bogdan

Is MPP using the netscape plugin system (wich mozilla and other
browsers still use) ?

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


Re: [lazarus] Possible to 'embed' a java applet in application?

2006-11-09 Thread Alexandre Leclerc

2006/11/9, Graeme Geldenhuys [EMAIL PROTECTED]:

On 09/11/06, Alexandre Leclerc [EMAIL PROTECTED] wrote:
 Now, there you talk. This is a very interesting project. So
 potentially, the java applets would also work as desired.

:-)  Yes, the same as what you embed a applet in the Mozilla Browser,
you should be able to do it in MPP.  All Mozilla plugins expect a
certain API, and MPP implements that.


Implementing java looks overkill... I just don't know where to start.
I downloaded mozilla source. There is a folder for java-sun. I also
checked out http://javaplugin.sourceforge.net/ to have a look.

Did anyone started the java applet interface? (Because I would at
least know where to continue...) My personnal needs are only to start
the applet inside the panel with init stuff. Then kill the applet when
required. Further interraction could be made later. But the JavaVM
stub, etc. is quite a monster to work with.

--
Alexandre Leclerc

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


Re: [lazarus] Possible to 'embed' a java applet in application?

2006-11-09 Thread Graeme Geldenhuys

On 09/11/06, Alexandre Leclerc [EMAIL PROTECTED] wrote:

I mean our project. :) I'm searching for solutions to a problem and
based on what we can do we will build a project. My boss has not


Ok, I understand now.  :)


Yes, it gives a pretty good starting point: the concept does work. And
it is very interesting to actually directly talk to the plugin API...
the mozilla way. :) I'm impressed by this brilliant idea!


We needed to embed Macromedia Flash into our application.  It was easy
when we used Delphi, ActiveX flash (.ocx) and Windows.  We started a
complete rewrite, to redesign our application suit, and wanted to go
cross-platform.  Obviously ActiveX was not an option under Linux.  We
also didn't want to maintain our own Flash Player (that is a mammoth
task) - we would rather just use what Macromedia (now Adobe) creates.

The only thing Macromedia created that was cross-platform is the
Mozilla Flash Plugin.  Seeing that in is only a single .dll (windows)
or .so (linux) file, it would be easy to deploy as well.  I started
researching the idea of using that dll/so file and what would be
involved. Obviously we didn't want to rewrite Mozilla in Object
Pascal!  After a lot of research we ended up with the idea of MPP.  A
panel that acts like a browser (supports the plugin API only) and
embeds a plugin.

Regards,
 - Graeme -

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


Re: [lazarus] Possible to 'embed' a java applet in application?

2006-11-09 Thread Graeme Geldenhuys

On 09/11/06, Razvan Adrian Bogdan [EMAIL PROTECTED] wrote:

Is MPP using the netscape plugin system (wich mozilla and other
browsers still use) ?


Yes, I converted a few C header files and implemented the required
plugin API than all Netscape/Mozilla plugins require.

Regards,
 - Graeme -

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


Re: [lazarus] Possible to 'embed' a java applet in application?

2006-11-09 Thread Graeme Geldenhuys

On 09/11/06, Alexandre Leclerc [EMAIL PROTECTED] wrote:

Implementing java looks overkill... I just don't know where to start.
I downloaded mozilla source. There is a folder for java-sun. I also
checked out http://javaplugin.sourceforge.net/ to have a look.

Did anyone started the java applet interface? (Because I would at
least know where to continue...) My personnal needs are only to start
the applet inside the panel with init stuff. Then kill the applet when
required. Further interraction could be made later. But the JavaVM
stub, etc. is quite a monster to work with.


You wouldn't be working with the JavaVM, only the Java dll that needs
to be in the Mozilla plugins directory.  Obviously the system would
need the Java Runtime installed, as that is what the Java .dll needs.

Look at how the Flash and Acrobat support was done. You would do the
same for Java.

Example:
 *  Create a JavaApplet.inc file.
 *  Create a class descending from TMozPluginPanel
 *  Implement the other (applet specific) properties a Java Applet
would require.
  Look at what properties you need to specify in a html file to get a
applet to work, and implement those.

 TJavaApplet = class(TMozPluginPanel)
 private
  ...
 public
   constructor Create(AOwner : TComponent); override;
   procedure   LoadJava;
   procedure   UnLoadJava;
 published
   propertyActive;
   propertyPluginName;
   propertyPluginPath;
   property   CodeBase...
   property   Archive   -- maybe for .jar files
   ...
 end;


Regards,
 - Graeme -

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


Re: [lazarus] Possible to 'embed' a java applet in application?

2006-11-09 Thread Alexandre Leclerc

2006/11/9, Graeme Geldenhuys [EMAIL PROTECTED]:

On 09/11/06, Alexandre Leclerc [EMAIL PROTECTED] wrote:
 Implementing java looks overkill... I just don't know where to start.
 I downloaded mozilla source. There is a folder for java-sun. I also
 checked out http://javaplugin.sourceforge.net/ to have a look.

 Did anyone started the java applet interface? (Because I would at
 least know where to continue...) My personnal needs are only to start
 the applet inside the panel with init stuff. Then kill the applet when
 required. Further interraction could be made later. But the JavaVM
 stub, etc. is quite a monster to work with.

You wouldn't be working with the JavaVM, only the Java dll that needs
to be in the Mozilla plugins directory.  Obviously the system would
need the Java Runtime installed, as that is what the Java .dll needs.

Look at how the Flash and Acrobat support was done. You would do the
same for Java.


Yeah, I saw in Firefox 2.0 that java stuff is now integrated and I did
not find .dll in the plugin directory. This is way I was confused.
I'll try to check for older versions and get the .dll that is
required.

--
Alexandre Leclerc

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


Re: [lazarus] Possible to 'embed' a java applet in application?

2006-11-09 Thread Alexandre Leclerc

2006/11/9, Alexandre Leclerc [EMAIL PROTECTED]:

2006/11/9, Graeme Geldenhuys [EMAIL PROTECTED]:
 On 09/11/06, Alexandre Leclerc [EMAIL PROTECTED] wrote:
  Implementing java looks overkill... I just don't know where to start.
  I downloaded mozilla source. There is a folder for java-sun. I also
  checked out http://javaplugin.sourceforge.net/ to have a look.
 
  Did anyone started the java applet interface? (Because I would at
  least know where to continue...) My personnal needs are only to start
  the applet inside the panel with init stuff. Then kill the applet when
  required. Further interraction could be made later. But the JavaVM
  stub, etc. is quite a monster to work with.

 You wouldn't be working with the JavaVM, only the Java dll that needs
 to be in the Mozilla plugins directory.  Obviously the system would
 need the Java Runtime installed, as that is what the Java .dll needs.

 Look at how the Flash and Acrobat support was done. You would do the
 same for Java.

Yeah, I saw in Firefox 2.0 that java stuff is now integrated and I did
not find .dll in the plugin directory. This is way I was confused.
I'll try to check for older versions and get the .dll that is
required.


I downloaded seamonkey to have a look. And I see all the required
files now. I also saw that all these files are also available when you
install the jre in the /bin directory. So as far as technology
deployment is concerned, this is ok. And with the JavaSoft registry
key it is possible to know where it is installed and access the
required dlls.

Now I must find the documentation for the dll and how we actually work
with that.

--
Alexandre Leclerc

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


Re: [lazarus] diff between FPC 2.11 and 2.04

2006-11-09 Thread Joost van der Sluis

All changes that were available and tested at the time that 2.0.4 was
released, were merged to 2.0.4. Effectively one fix wasn't merged. 

But the changes since 2.0.4 was released, didn't make it into 2.0.4,
offcourse.

On Wed, 2006-11-08 at 08:32 -0800, johnf wrote:
 Hi,
 
 I know that FPC 2.04 is the stable release.  But if I recall SQLDB was not as 
 advanced in 2.0x and it is in 2.1.x.  Is this correct?  Or has all the 
 SQLDB stuff been back ported to 2.04.
 
 Thanks
 
 John
 
 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
 
-- 
Met vriendelijke groeten,

  Joost van der Sluis
  CNOC Informatiesystemen en Netwerken
  http://www.cnoc.nl

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


Re: [lazarus] version of TmySQLConnection

2006-11-09 Thread Joost van der Sluis
On Thu, 2006-11-09 at 16:32 +0700, Bisma Jayadi wrote:
  It is, but:
  1. It will take some additional work.
 
 If we keep them separated, it will take some additional works to users 
 (programmers), especially if he wants to make an application which connects 
 to 
 several mySQL databases with different version. ;)

If you - as programmer - want to do that, you simply can: detect the
installed mysql-CLIENT-version at startup, and then create the right
TMySQLconnection for that version.

But, I can not state this enough, if you want to do such things, simply
don't use MySQL. Not al combinations of MySQL-Clients and server
versions can work together. You, as programmer, can't do anything about
that. And, the MySQL-developers don't/won't/can't guarantee that it will
work with newer MySQL-versions.

If you want interoperatibility between versions of the DB-server, use
Firebird, PostgreSQL, Oracle or ODBC. The development of these databases
is much further, and their clients and ABI's has been stabalised years
ago.

Joost.

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


Re: [lazarus] WinCE Patch

2006-11-09 Thread Christian Ulrich
Is this patch forgotten ?

Please Matthias, Vincent can anybody apply it ?

Christian

- Original Message -
From: Christian Ulrich [EMAIL PROTECTED]
To: lazarus@miraclec.com
Sent: Tuesday, November 07, 2006 11:43 PM
Subject: [lazarus] WinCE Patch


 This patch fixes Window Styles for Wince (always maximized windows as
 they are in wince with close or ok buttons in the taskbar).
 A little bit dirty Hack for fixing the Close Bug and Get and SetPixel
 for the Canvases.
 VirtualTreeview runs fine on Windows Mobile 5.0 with this changes :)

 regards
 Christian








 Index: winceobject.inc
 ===
 --- winceobject.inc (revision 10177)
 +++ winceobject.inc (working copy)
 @@ -135,13 +135,13 @@
  procedure TWinCEWidgetSet.DCSetPixel(CanvasHandle: HDC; X, Y: integer;
AColor: TGraphicsColor);
  begin
 -
 +  Windows.SetPixel(CanvasHandle, X, Y, AColor);
  end;

  function TWinCEWidgetSet.DCGetPixel(CanvasHandle: HDC; X, Y: integer
): TGraphicsColor;
  begin
 -  Result:=clNone;
 +  Result := Windows.GetPixel(CanvasHandle, X, Y);
  end;

  procedure TWinCEWidgetSet.DCRedraw(CanvasHandle: HDC);
 @@ -297,6 +297,7 @@

  procedure TWinCEWidgetSet.AppTerminate;
  begin
 +  PostQuitMessage(0);
AppTerminated := True;
  end;

 Index: winceproc.pp
 ===
 --- winceproc.pp (revision 10177)
 +++ winceproc.pp (working copy)
 @@ -283,17 +283,7 @@

  function BorderStyleToWin32Flags(Style: TFormBorderStyle): DWORD;
  begin
 -  Result := WS_CLIPCHILDREN or WS_CLIPSIBLINGS;
 -  case Style of
 -  bsSizeable, bsSizeToolWin:
 -Result := Result or (WS_OVERLAPPED or WS_THICKFRAME or WS_CAPTION);
 -  bsSingle, bsToolWindow:
 -Result := Result or (WS_OVERLAPPED or WS_BORDER or WS_CAPTION);
 -  bsDialog:
 -Result := Result or (WS_POPUP or WS_BORDER or WS_CAPTION);
 -  bsNone:
 -Result := Result or WS_POPUP;
 -  end;
 +  Result := WS_VISIBLE;
  end;

  function BorderStyleToWin32FlagsEx(Style: TFormBorderStyle): DWORD;
 @@ -301,9 +291,7 @@
Result := 0;
case Style of
bsDialog:
 -Result := WS_EX_DLGMODALFRAME or WS_EX_WINDOWEDGE;
 -  bsToolWindow, bsSizeToolWin:
 -Result := WS_EX_TOOLWINDOW;
 +Result := WS_EX_CAPTIONOKBTN;
end;
  end;

 Index: wincewsforms.pp
 ===
 --- wincewsforms.pp (revision 10177)
 +++ wincewsforms.pp (working copy)
 @@ -206,9 +206,9 @@
if GetDesigningBorderStyle(AForm) in [bsNone, bsSingle, bsSizeable]
then
begin
  if biMinimize in BorderIcons then
 -  Result := Result or WS_MINIMIZEBOX;
 +  Result := Result or WS_MINIMIZE;
  if biMaximize in BorderIcons then
 -  Result := Result or WS_MAXIMIZEBOX;
 +  Result := Result or WS_MAXIMIZE;
end;
  end;



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


Re: [lazarus] WinCE Patch

2006-11-09 Thread Vincent Snijders

Christian Ulrich schreef:

Is this patch forgotten ?

Please Matthias, Vincent can anybody apply it ?



I don't know the wince interface, so I cannot determine if 
PostQuitMessage is a good idea or whether the borderstyle icons should 
be ignored in wince.


Felipe, what do you think?

Vincent

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


Re: [lazarus] WinCE Patch

2006-11-09 Thread Felipe Monteiro de Carvalho

On 11/9/06, Vincent Snijders [EMAIL PROTECTED] wrote:

Felipe, what do you think?


Here are my remarks:

1 - If PostQuitMessage fixes the bug, then I think it's ok to use it.

2 - About removing all styles and border icons, I think this needs
IFDEFs around them, because Windows CE can be utilized with 2
different interfaces.

One interface is for tablet pc, a quite big pda, see screenshot here:

http://www.grundlesoftware.com/soundwidget_screen_shots.htm

That seams like a regular windows, just smaller. And on this styles
and border icons should not be ignored.

On the other hand, for Phones, PocketPC and others, we really should
ignore the styles. The only thing I can come up with to solve this is
a IFDEF

Also, even for Mobiles, isn't the removing all styles a bit drastic? I
mean, you may still want to create a small modal dialog with OK and
Cancel buttons, or show a popup menu. So maybe most styles and buttons
should be removed, but we still should leave enougth styles to allow
modal dialogs and popup menus.

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] WinCE Patch

2006-11-09 Thread Felipe Monteiro de Carvalho

Just to complete: Since PocketPC and smartphones are more popular then
HandheldPC I would propose that the default be having no (or few)
window styles, and you can set a define if you want HandheldPC mode.

--
Felipe Monteiro de Carvalho

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


Re: [lazarus] WinCE Patch

2006-11-09 Thread Vincent Snijders

Felipe Monteiro de Carvalho schreef:

Just to complete: Since PocketPC and smartphones are more popular then
HandheldPC I would propose that the default be having no (or few)
window styles, and you can set a define if you want HandheldPC mode.



Why not use a property of the TWin32CEWidgetSet.

In your main program use the project specific WinCEConfig

Uses
  Interfaces, WinCEConfig, etc.

unit WinCeConfig;

uses
  Interfaces, WinCEInt;

interfaces

implementation

intialization
  TWinCeWidgetSet(WidgetSet).UseWindowsStyles := true;

end.

That way, there is no need to recompile the widgetset. You just need to 
use the correct unit.


There are other possibilities, which may be easier to use.

Vincent.

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


Re: [lazarus] Possible to 'embed' a java applet in application?

2006-11-09 Thread Graeme Geldenhuys

On 09/11/06, Alexandre Leclerc [EMAIL PROTECTED] wrote:

Now I must find the documentation for the dll and how we actually work
with that.


Seeing that MPP is currently more developed under Windows I would
experiment on that platform. Not sure what platform you develop under
- I think you mentioned Windows.

I would first start by implementing the TJavaApplet class and
experiment, to see what happens.  As I said, the MPP implements the
API required by the plugin and gives it a canvas to paint on and other
than that, the plugin itself does the rest.  That is the beauty of
MPP. Not much is needed, to get newer plugins to work - seeing that
the basic plugin framework has already been designed.  After I created
the FlashPlayer class, the AdobeDocument class was done in under a
hour.

Once you create the TJavaApplet class and tried to load the java
applet... if it fails, then start reading the docs to what the Java
plugin requires, that other plugins don't.

Regards,
 - Graeme -

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


[lazarus] How to insert a small text into a Memobox?

2006-11-09 Thread 00153036
I want to insert a text from a ListBox to a Memo. I've already got how  
to get the information form the Listbox... Now I want to insert that  
information where the memo's cursor is... I´ve tried to use the  
following thing to know where the cursor is:




procedure GetMemoRowCol (M : TMemo; var Row, Col : LongInt);
begin
  Row := SendMessage(M.Handle, EM_LINEFROMCHAR, M.SelStart, 0);
  Col := M.SelStart-SendMessage(M.Handle, EM_LINEINDEX, Row, 0);
end;

procedure SetMemoRowCol(M : TMemo; Row, Col : Integer);
begin
  M.SelStart := SendMessage(M.Handle, EM_LINEINDEX, Row, 0)
+ Col;
end;

When compiling, the message window says that SendMessage is not a  
valid identifier... Maybe the name of this method is not the right one  
under Lazarus, and valid only under Delphi...


HMB64




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


Re: [lazarus] How to insert a small text into a Memobox?

2006-11-09 Thread Andrew Haines
[EMAIL PROTECTED] wrote:
 I want to insert a text from a ListBox to a Memo. I've already got how
 to get the information form the Listbox... Now I want to insert that
 information where the memo's cursor is... I´ve tried to use the
 following thing to know where the cursor is:
 

Just do
Memo1.SelLength := 0;  // not really needed
Memo1.SelText := ListBox.Text;

Andrew

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


Re: [lazarus] WinCE Patch

2006-11-09 Thread Marc Weustink
Vincent Snijders wrote:
 Felipe Monteiro de Carvalho schreef:
 Just to complete: Since PocketPC and smartphones are more popular then
 HandheldPC I would propose that the default be having no (or few)
 window styles, and you can set a define if you want HandheldPC mode.

 
 Why not use a property of the TWin32CEWidgetSet.
 
 In your main program use the project specific WinCEConfig
 
 Uses
   Interfaces, WinCEConfig, etc.
 
 unit WinCeConfig;
 
 uses
   Interfaces, WinCEInt;
 
 interfaces
 
 implementation
 
 intialization
   TWinCeWidgetSet(WidgetSet).UseWindowsStyles := true;
 
 end.

I prefer something like this instead of using defines. I don't link
recompiling my libs everytime I use a different target.

The wince interface is usable for handhelds, but also for the kind of
boards we use at work.


Marc


 That way, there is no need to recompile the widgetset. You just need to
 use the correct unit.
 
 There are other possibilities, which may be easier to use.
 
 Vincent.
 
 _
 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] WinCE Patch

2006-11-09 Thread Christian Ulrich
 Felipe Monteiro de Carvalho schreef:
  Just to complete: Since PocketPC and smartphones are more popular then
  HandheldPC I would propose that the default be having no (or few)
  window styles, and you can set a define if you want HandheldPC mode.
 

 Why not use a property of the TWin32CEWidgetSet.

I think the best solution for this is an seperate interface.
I think you deploy also different Applications for HPC and PPC.
Also i dont know if there are a lot of hpcs in last time i have seen always
pocketpc´s and smartphones.

By the way, another problem has somebody tried the interface on real devices
?
I have strange problems with the tbitmap implementation on my Pocket pc 3.0


Christian

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


Re: [lazarus] WinCE Patch

2006-11-09 Thread Christian Ulrich



Also, even for Mobiles, isn't the removing all styles a bit drastic? I
mean, you may still want to create a small modal dialog with OK and
Cancel buttons, or show a popup menu. So maybe most styles and buttons
should be removed, but we still should leave enougth styles to allow
modal dialogs and popup menus.


My Patch dont remove all styles, bsSizeable is with that an Fullscren 
Window that adds an x button in the taskbar (only  windows mobile 2003)

bsDialog is an Fullscreen with an ok button in the taskbar

bsSingle does at time the same like bsSizeable, schould it be an regular 
window with caption and border ??




Christian

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


Re: [lazarus] [PATCH] gtk2 listview images

2006-11-09 Thread Sebastian Kraft
Am Sonntag, 5. November 2006 14:03 schrieb Sebastian Kraft:
 Hi,

 this patch should correct gtk2wscustomlistview.inc so that listview now
 shows images from an imagelist.

What about this? Has anyone looked into. If there's something wrong with it 
please tell, so I can solve the problem. 

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


Re: [lazarus] WinCE Patch

2006-11-09 Thread Florian Klaempfl
Christian Ulrich schrieb:
 By the way, another problem has somebody tried the interface on real devices
 ?

I tried simple programs on my mobile (Windows Mobile 5).

 I have strange problems with the tbitmap implementation on my Pocket pc 3.0

Can you post some sample project?

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