Re: [lazarus] Component

2008-01-28 Thread Graeme Geldenhuys
On 27/01/2008, micahel schneider [EMAIL PROTECTED] wrote:
 
 No problem here with advertisments
 I click on free download and everything is normal

Sorry, it helps if I READ!  :-)  I had to click on the 'Free' button
to start the download.


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] Component

2008-01-27 Thread Michael Van Canneyt


On Sat, 26 Jan 2008, [EMAIL PROTECTED] wrote:

 That's it! http://wiki.lazarus.freepascal.org/Lazarus_Packages should be
 enhanced...

I did this, added some stuff.

Michael.

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


Re: [lazarus] Component

2008-01-26 Thread user1

hi!
I can see the package in the Package Graph window, but it isn't shown in 
the palette or the component window.

But the .pas file contains a

procedure Register;
begin
 RegisterComponents('Samples', [TMyScrollBox]);
end;
 


Mattias Gaertner wrote:

On Fri, 25 Jan 2008 22:22:13 +0100
[EMAIL PROTECTED] wrote:

  

A small demo would be helpful.



See here:

http://wiki.lazarus.freepascal.org/Lazarus_Packages#Quick_Start


Mattias



  

Mattias Gaertner wrote:


On Fri, 25 Jan 2008 21:41:04 +0100
[EMAIL PROTECTED] wrote:

  
  

Is there an installation guide describing component installation
within Lazarus IDE?



Did you see

http://wiki.lazarus.freepascal.org/Install_Packages

?

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


  


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


Re: [lazarus] Component

2008-01-26 Thread Lee Jenkins

[EMAIL PROTECTED] wrote:

hi!
I can see the package in the Package Graph window, but it isn't shown in 
the palette or the component window.

But the .pas file contains a

procedure Register;
begin
 RegisterComponents('Samples', [TMyScrollBox]);
end;



Hi, did you recompile the IDE after selecting the package?  (Tools  Build 
Lazarus)  The IDE needs to be built again after installing components.


--
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] Component

2008-01-26 Thread user1

Lee Jenkins wrote:

[EMAIL PROTECTED] wrote:

hi!
I can see the package in the Package Graph window, but it isn't shown 
in the palette or the component window.

But the .pas file contains a

procedure Register;
begin
 RegisterComponents('Samples', [TMyScrollBox]);
end;



Hi, did you recompile the IDE after selecting the package?  (Tools  
Build Lazarus)  The IDE needs to be built again after installing 
components.


Sure. Several times. the package is marked as installed in the 
Package-Graph.


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


Re: [lazarus] Component

2008-01-26 Thread Michael Van Canneyt


On Sat, 26 Jan 2008, [EMAIL PROTECTED] wrote:

 hi!
 I can see the package in the Package Graph window, but it isn't shown in the
 palette or the component window.
 But the .pas file contains a
 
 procedure Register;
 begin
  RegisterComponents('Samples', [TMyScrollBox]);
 end;

Did you mark this unit as 'contains register procedure' ?

Michael.

  
 
 Mattias Gaertner wrote:
  On Fri, 25 Jan 2008 22:22:13 +0100
  [EMAIL PROTECTED] wrote:
 

   A small demo would be helpful.
   
 
  See here:
 
  http://wiki.lazarus.freepascal.org/Lazarus_Packages#Quick_Start
 
 
  Mattias
 
 
 

   Mattias Gaertner wrote:
   
On Fri, 25 Jan 2008 21:41:04 +0100
[EMAIL PROTECTED] wrote:
   
  
  
 Is there an installation guide describing component installation
 within Lazarus IDE?
 
 
Did you see
   
http://wiki.lazarus.freepascal.org/Install_Packages
   
?
   
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
 
 

 
 _
 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] Component

2008-01-26 Thread user1

where can I find this checkbox?

Michael Van Canneyt wrote:

On Sat, 26 Jan 2008, [EMAIL PROTECTED] wrote:

  

hi!
I can see the package in the Package Graph window, but it isn't shown in the
palette or the component window.
But the .pas file contains a

procedure Register;
begin
 RegisterComponents('Samples', [TMyScrollBox]);
end;



Did you mark this unit as 'contains register procedure' ?

Michael.

  
 


Mattias Gaertner wrote:


On Fri, 25 Jan 2008 22:22:13 +0100
[EMAIL PROTECTED] wrote:

  
  

A small demo would be helpful.



See here:

http://wiki.lazarus.freepascal.org/Lazarus_Packages#Quick_Start


Mattias



  
  

Mattias Gaertner wrote:



On Fri, 25 Jan 2008 21:41:04 +0100
[EMAIL PROTECTED] wrote:

  
  
  

Is there an installation guide describing component installation
within Lazarus IDE?




Did you see

http://wiki.lazarus.freepascal.org/Install_Packages

?

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


  
  

_
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


  


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


Re: [lazarus] Component

2008-01-26 Thread Michael Van Canneyt


On Sat, 26 Jan 2008, [EMAIL PROTECTED] wrote:

 where can I find this checkbox?

In the package dialog. 
- Open the packake file.
- Select the file that contains the register statement.
- below in 'File properties', check 'Register unit'
- Compile and install.

Michael.

 
 Michael Van Canneyt wrote:
  On Sat, 26 Jan 2008, [EMAIL PROTECTED] wrote:
 

   hi!
   I can see the package in the Package Graph window, but it isn't shown in
   the
   palette or the component window.
   But the .pas file contains a
  
   procedure Register;
   begin
   RegisterComponents('Samples', [TMyScrollBox]);
   end;
   
 
  Did you mark this unit as 'contains register procedure' ?
 
  Michael.
 


  
   Mattias Gaertner wrote:
   
On Fri, 25 Jan 2008 22:22:13 +0100
[EMAIL PROTECTED] wrote:
   
  
  
 A small demo would be helpful.
 
 
See here:
   
http://wiki.lazarus.freepascal.org/Lazarus_Packages#Quick_Start
   
   
Mattias
   
   
   
  
  
 Mattias Gaertner wrote:
 
 
  On Fri, 25 Jan 2008 21:41:04 +0100
  [EMAIL PROTECTED] wrote:
 



   Is there an installation guide describing component installation
   within Lazarus IDE?
   
   
   
  Did you see
 
  http://wiki.lazarus.freepascal.org/Install_Packages
 
  ?
 
  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
   
   
  
  
   _
   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
 
 

 
 _
 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] Component

2008-01-26 Thread user1
That's it! http://wiki.lazarus.freepascal.org/Lazarus_Packages should be 
enhanced...


Michael Van Canneyt wrote:

On Sat, 26 Jan 2008, [EMAIL PROTECTED] wrote:

  

where can I find this checkbox?



In the package dialog. 
- Open the packake file.

- Select the file that contains the register statement.
- below in 'File properties', check 'Register unit'
- Compile and install.

Michael.

  

Michael Van Canneyt wrote:


On Sat, 26 Jan 2008, [EMAIL PROTECTED] wrote:

  
  

hi!
I can see the package in the Package Graph window, but it isn't shown in
the
palette or the component window.
But the .pas file contains a

procedure Register;
begin
RegisterComponents('Samples', [TMyScrollBox]);
end;



Did you mark this unit as 'contains register procedure' ?

Michael.

  
  
 


Mattias Gaertner wrote:



On Fri, 25 Jan 2008 22:22:13 +0100
[EMAIL PROTECTED] wrote:

  
  
  

A small demo would be helpful.




See here:

http://wiki.lazarus.freepascal.org/Lazarus_Packages#Quick_Start


Mattias



  
  
  

Mattias Gaertner wrote:




On Fri, 25 Jan 2008 21:41:04 +0100
[EMAIL PROTECTED] wrote:

  
  
  
  

Is there an installation guide describing component installation
within Lazarus IDE?





Did you see

http://wiki.lazarus.freepascal.org/Install_Packages

?

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


  
  
  

_
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


  
  

_
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


  


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


Re: [lazarus] Component

2008-01-26 Thread Vincent Snijders

[EMAIL PROTECTED] schreef:
That's it! http://wiki.lazarus.freepascal.org/Lazarus_Packages should be 
enhanced...




Please, go ahead.

Vincent

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


Re: [lazarus] Component

2008-01-26 Thread micahel schneider
Am Samstag 26 Januar 2008 schrieb Graeme Geldenhuys:
 On 26/01/2008, micahel schneider [EMAIL PROTECTED] wrote:
  Am Freitag 25 Januar 2008 schrieb [EMAIL PROTECTED]:
   A small demo would be helpful.
 
  2 Videos demonstrating component install under Linux
 
  http://rapidshare.de/files/38408096/installcomp.ogv.html
 
  http://rapidshare.de/files/38225046/reportinstallieren.ogv.html

 Those links take me to some Hosting site and then to the Love
 Connection site.  ;-)


 Regards,
   - Graeme -

No problem here with advertisments
I click on free download and everything is normal

(i have used a hosting site because i have atm no other possibility 
to upload the files)


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


Re: [lazarus] Component

2008-01-25 Thread Mattias Gaertner
On Fri, 25 Jan 2008 21:41:04 +0100
[EMAIL PROTECTED] wrote:

 Is there an installation guide describing component installation
 within Lazarus IDE?

Did you see

http://wiki.lazarus.freepascal.org/Install_Packages

?

Mattias

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


[lazarus] Component

2008-01-25 Thread user1
Is there an installation guide describing component installation within 
Lazarus IDE?


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


Re: [lazarus] Component

2008-01-25 Thread Graeme Geldenhuys
On 26/01/2008, micahel schneider [EMAIL PROTECTED] wrote:
 Am Freitag 25 Januar 2008 schrieb [EMAIL PROTECTED]:
  A small demo would be helpful.
 
 2 Videos demonstrating component install under Linux

 http://rapidshare.de/files/38408096/installcomp.ogv.html

 http://rapidshare.de/files/38225046/reportinstallieren.ogv.html


Those links take me to some Hosting site and then to the Love
Connection site.  ;-)


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] Component

2008-01-25 Thread user1

I did this, but can't see an icon in the component palette.

Mattias Gaertner wrote:

On Fri, 25 Jan 2008 21:41:04 +0100
[EMAIL PROTECTED] wrote:

  

Is there an installation guide describing component installation
within Lazarus IDE?



Did you see

http://wiki.lazarus.freepascal.org/Install_Packages

?

Mattias

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


  




Re: [lazarus] Component

2008-01-25 Thread user1

A small demo would be helpful.


Mattias Gaertner wrote:

On Fri, 25 Jan 2008 21:41:04 +0100
[EMAIL PROTECTED] wrote:

  

Is there an installation guide describing component installation
within Lazarus IDE?



Did you see

http://wiki.lazarus.freepascal.org/Install_Packages

?

Mattias

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


  




Re: [lazarus] Component

2008-01-25 Thread Mattias Gaertner
On Fri, 25 Jan 2008 22:22:13 +0100
[EMAIL PROTECTED] wrote:

 A small demo would be helpful.

See here:

http://wiki.lazarus.freepascal.org/Lazarus_Packages#Quick_Start


Mattias



 
 
 Mattias Gaertner wrote:
  On Fri, 25 Jan 2008 21:41:04 +0100
  [EMAIL PROTECTED] wrote:
 

  Is there an installation guide describing component installation
  within Lazarus IDE?
  
 
  Did you see
 
  http://wiki.lazarus.freepascal.org/Install_Packages
 
  ?
 
  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] Component

2008-01-25 Thread micahel schneider
Am Freitag 25 Januar 2008 schrieb [EMAIL PROTECTED]:
 A small demo would be helpful.

2 Videos demonstrating component install under Linux

http://rapidshare.de/files/38408096/installcomp.ogv.html

http://rapidshare.de/files/38225046/reportinstallieren.ogv.html


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


[lazarus] Component palette - default icon suggestion

2007-12-11 Thread Graeme Geldenhuys
Hi,

I got another svn update today and looked through all the new icons.
I think the 'default' icon is unclear an the moment.  A few times I
had to mouse over to see the tooltip just to make sure it was the
default icon.  It looks to much like a design (actual) component icon
instead of a place holder for a missing one.

I suggest adding a ? (question mark) over the three boxes to indicate
more clearly that the icon is unknown/missing for that component.
Your thoughts?  Attached is a quick/simple idea I used in fpGUI UI
Designer - obviously the Lazarus icon needs to be *much* prettier.
:)


Regards,
  - Graeme -


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

Re: [lazarus] Component palette - default icon suggestion

2007-12-11 Thread wile64
See unregisteredcomponent.png, (I do not done yet) :-(
default.png (see Paul) ;-)

-- 
Laurent.

My Components: http://wiki.lazarus.freepascal.org/Wile64
French Forum : http://lazforum-fr.tuxfamily.org/index.php


Re: [lazarus] Lazarus component DBExport

2007-11-12 Thread Michael Van Canneyt


On Mon, 12 Nov 2007, fedorax wrote:

 In yesterday SVN à new component DbExport was added, but if i can find it in 
 the
 
 /usr/local/src/lazarus/trunk/components/dbexport
 
 directory it's not appear in the IDE list of components. Bug or not bug ? If 
 not
 how can i install it ?

The actual components are in fcl-db in Free Pascal.
You must upgrade Free Pascal with the latest version from SVN to be able to
use these components.

Michael.

Re: [lazarus] Lazarus component DBExport

2007-11-12 Thread Mattias Gaertner
On Mon, 12 Nov 2007 02:25:15 +0100
fedorax [EMAIL PROTECTED] wrote:

 In yesterday SVN à new component DbExport was added, but if i can
 find it in the
 
 /usr/local/src/lazarus/trunk/components/dbexport
 
 directory it's not appear in the IDE list of components. Bug or not
 bug ? If not how can i install it ?

Only packages without special requirements are installed in the
snapshots (bigide). lazdbexport requires the development version of FPC.

Install: Upgrade to the unstable recent FPC 2.3.1, then recompile
lazarus, open the lazdbexport.lpk and install it.

Mattias

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


Re: [lazarus] Lazarus component DBExport

2007-11-12 Thread fedorax
Selon Mattias Gaertner [EMAIL PROTECTED]:

 On Mon, 12 Nov 2007 02:25:15 +0100
 fedorax [EMAIL PROTECTED] wrote:

  In yesterday SVN Ã  new component DbExport was added, but if i can
  find it in the
 
  /usr/local/src/lazarus/trunk/components/dbexport
 
  directory it's not appear in the IDE list of components. Bug or not
  bug ? If not how can i install it ?

 Only packages without special requirements are installed in the
 snapshots (bigide). lazdbexport requires the development version of FPC.

 Install: Upgrade to the unstable recent FPC 2.3.1, then recompile
 lazarus, open the lazdbexport.lpk and install it.

 Mattias

I do this but lazarus can't find path for fpc files when i want to compile the
package:
--
/usr/local/src/lazarus/trunk/components/dbexport/fpdataexporter.pp(1,1) Fatal:
Can't find unit fpdbexport used by fpdataexporter
--
All the requested fpc .pp files are in directory

/usr/local/src/fpc/trunk/packages/fcl-db/src/export

( Fpc 2.3.1 9216 )

But lazarus don't find it.


 _
  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] Lazarus component DBExport

2007-11-11 Thread fedorax
In yesterday SVN à new component DbExport was added, but if i can find it in the

/usr/local/src/lazarus/trunk/components/dbexport

directory it's not appear in the IDE list of components. Bug or not bug ? If not
how can i install it ?

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


Re: [lazarus] Component or library for HTTP and/or WebDAV protocol on Mac OS X

2007-07-24 Thread Marco van de Voort
On Mon, Jul 23, 2007 at 03:35:51PM +0200, Tobias Giesen wrote:
 I am ready to invest a lot of time into this, so if I have to create
 something new or port a library that currently works on Windows or Linux,
 how should I proceed? Is there a library that I should port over to 
 Macintosh? Probably not Indy 10? Should I try to use the Carbon API or 
 Unix sockets?

Indy 10 snapshot worked for a while on OS X, but only a handful of
components have been checked. 

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


[lazarus] Component or library for HTTP and/or WebDAV protocol on Mac OS X

2007-07-23 Thread Tobias Giesen
Hello,

I am looking for a component or library which will eventually enable me
to access a WebDAV server from my client application, which I am making
with Lazarus. Is there a recommended component or library for HTTP, or
even WebDAV?

I am ready to invest a lot of time into this, so if I have to create
something new or port a library that currently works on Windows or Linux,
how should I proceed? Is there a library that I should port over to 
Macintosh? Probably not Indy 10? Should I try to use the Carbon API or 
Unix sockets?

Any advice or opinions are very welcome.

Cheers,
Tobias


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


Re: [lazarus] Component or library for HTTP and/or WebDAV protocol on Mac OS X

2007-07-23 Thread Michael Van Canneyt


On Mon, 23 Jul 2007, Tobias Giesen wrote:

 Hello,
 
 I am looking for a component or library which will eventually enable me
 to access a WebDAV server from my client application, which I am making
 with Lazarus. Is there a recommended component or library for HTTP, or
 even WebDAV?

There is code for HTTP (synapse, Indy, ICS, lnet).
I have code for Webdav, which I plucked from internet somewhere, and which
I corrected and enhanced.

 
 I am ready to invest a lot of time into this, so if I have to create
 something new or port a library that currently works on Windows or Linux,
 how should I proceed? Is there a library that I should port over to 
 Macintosh? Probably not Indy 10? Should I try to use the Carbon API or 
 Unix sockets?

I suggest you use one of the above sets. The webdav component can still
be found on internet (I think I got it from Torry's pages), but if you
don't find it, I can always send you a copy.

Michael.

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


Re: [lazarus] Component or library for HTTP and/or WebDAV protocol on Mac OS X

2007-07-23 Thread Tobias Giesen
Michael wrote:
 There is code for HTTP (synapse, Indy, ICS, lnet).
 I have code for Webdav, which I plucked from internet somewhere, and which
 I corrected and enhanced.

Hi Michael,

thanks for the quick reply! Are you using WebDAV on Windows?

Do you think any of (synapse, Indy, ICS, lnet) might be suited best 
for a Mac OS X port? I also need https ...

Cheers,
Tobias


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


RE: [lazarus] Component or library for HTTP and/or WebDAV protocol on Mac OS X

2007-07-23 Thread Hess, Philip J
Synapse compiles okay on OS X, but it crashes at startup. I'm still
investigating why as it works fine on Windows. I'm using Synapse with
the Web Service Toolkit.

http://www.ararat.cz/synapse/

http://wiki.lazarus.freepascal.org/Web_Service_Toolkit

Thanks.

-Phil


-Original Message-
From: Tobias Giesen [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 23, 2007 9:36 AM
To: lazarus@miraclec.com
Subject: [lazarus] Component or library for HTTP and/or WebDAV protocol
on Mac OS X

Hello,

I am looking for a component or library which will eventually enable me
to access a WebDAV server from my client application, which I am making
with Lazarus. Is there a recommended component or library for HTTP, or
even WebDAV?

I am ready to invest a lot of time into this, so if I have to create
something new or port a library that currently works on Windows or
Linux,
how should I proceed? Is there a library that I should port over to 
Macintosh? Probably not Indy 10? Should I try to use the Carbon API or 
Unix sockets?

Any advice or opinions are very welcome.

Cheers,
Tobias


_
 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] Component or library for HTTP and/or WebDAV protocol on Mac OS X

2007-07-23 Thread Michael Van Canneyt


On Mon, 23 Jul 2007, Tobias Giesen wrote:

 Michael wrote:
  There is code for HTTP (synapse, Indy, ICS, lnet).
  I have code for Webdav, which I plucked from internet somewhere, and which
  I corrected and enhanced.
 
 Hi Michael,
 
 thanks for the quick reply! Are you using WebDAV on Windows?

Yes (using Delphi, though)

 
 Do you think any of (synapse, Indy, ICS, lnet) might be suited best 
 for a Mac OS X port? I also need https ...

I use Indy, but I think the component was originally written for Synapse.
Since I used Indy for the rest of my code, I changed the back-end.

Synapse is more simple than Indy, so I suggest you use that. As far
as I know, it should work out of the box on Mac.

Michael.

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


Re: [lazarus] Component to force one instance by application

2006-12-20 Thread Razvan Adrian Bogdan

Listing processes might be one way to check for instances, maybe try
to communicate with that instance to make sure it's not blocked.
There was also a simple way to check using instance handle in C wich
could be adapted to FPC but i don't know how it works in Unix world.

Razvan

On 12/17/06, Luiz Americo Pereira Camara [EMAIL PROTECTED] wrote:

Al Boldi wrote:
 Luiz Americo Pereira Camara wrote:

 Kris Leech wrote:

 Good stuff, did you come across any issues with simpleIPC, Ive been
 meaning to have a go with it for a while...

 I had two issues with simpleipc:
  - in unix the TSimpleIPCServer.OnMessage event is not fired. To
 override this, a solution is to call ReadMessage in the OnIdle event of
 the application.


 Try this implementation:
 
 type

   { TPeekThread }
   TPeekThread = Class(TThread)
   private
 FDoPeek: TNotifyEvent;
   protected
 procedure Execute; override;
 procedure Synchronize(Method: TThreadMethod);
 Property DoPeek: TNotifyEvent read FDoPeek write FDoPeek;
   end;

   { TSimpleIPCpServer }
   TSimpleIPCpServer = Class(TSimpleIPCServer)
   private
 FPeek: Boolean;
 FPeekThread: TPeekThread;
 procedure PeekMethod(Sender: TObject);
 procedure SetPeek(const AValue: Boolean);
   protected
 Procedure Activate; override;
 Procedure Deactivate; override;
   published
 Property Peek : Boolean read FPeek write SetPeek;
   end;

 implementation

 { TPeekThread }
 procedure TPeekThread.Execute;
 begin
   repeat
 FDoPeek(self);
   until Terminated;
 end;

 procedure TPeekThread.Synchronize(Method: TThreadMethod);
 begin
   inherited;
 end;

 { TSimpleIPCpServer }
 procedure TSimpleIPCpServer.PeekMethod(Sender: TObject);
 begin
   if PeekMessage(1000,false) then
 TPeekThread(sender).Synchronize(@ReadMessage);
 end;

 procedure TSimpleIPCpServer.SetPeek(const AValue: Boolean);
 begin
   if FPeek=AValue then exit;
   if FActive then DoError(SErrActive,[]);
   FPeek:=AValue;
 end;

 procedure TSimpleIPCpServer.Activate;
 begin
   inherited Activate;
   if FActive and FPeek then begin
 FPeekThread:=TPeekThread.Create(true);
 FPeekThread.DoPeek:[EMAIL PROTECTED];
 FPeekThread.FreeOnTerminate:=true;
 FPeekThread.Resume;
   end;
 end;

 procedure TSimpleIPCpServer.Deactivate;
 begin
   if FActive and FPeek then begin
 FPeekThread.Terminate;
   end;
   inherited Deactivate;
 end;
 


Thanks. Another solution is to use the dnotify api of the kernel.
Someone already tried dnotify with fpc?
 BTW:  Somebody know how to override a Classname, like it's possible with
 Methods.  i.e:  TComponent = Class(TComponent); override;


  - The other is that there's currently no easy way to diferentiate
 between different message types. Let's say i need to send messages
 telling i started the job, send the results of the job and than finished
 the job. Currently there are two options: send a header in the stream
 with a numeric variable and check it when arrive (you lose the comodity
 of SendStringMessage) or you send a string with a string marker. I will
 propose a change in it (and provide the patch) where we could use the
 MessageType (user defined) to identify the message and we could still
 use SendStringMessage .


 Or you could use another SimpleIPC connection.


 - another potential problem (not tested) is that in unix a file is used
 to pass the messages. So if the program crashes the file may not be
 deleted and would give that the server is running.


 In unix it uses pipes.  No problem when program crashes.

Good to know. I don't have experience with pipes.

Luiz

_
 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] Special Lazarus Component Request

2006-12-19 Thread [EMAIL PROTECTED]
Hi, like i asked Lazarus forum, i have a problem that i don't know how 
to resolve.


I'm developing an application with Lazarus on Windows Mobile 2003 
(winCe), crosscompiling with Lazarus cause the Pocket PC have an ARM 
architecture.


Thanks to Sekel help, i managed to do it and i'm creating some forms and 
buttons... but the hardest (and most important) task i have to commit is 
to make a mysql connection from the Pocket PC to a local area address 
through TCP/IP socket.


For this, i need the component named: sqldb (or, if you know that i can 
use different and more diffuse component, just tell me)


Compiling for i386 and win32, i got no problems to do it. But... i get 
errors on doing it on wince-arm crosscompiling.

Looking into lazarus directory i think i found my problem...

I need the sqldb component files:
registersqldb.o
sqldblaz.o
registersqldb.ppu
sqldblaz.ppu

Compiled for arm-wince.

I got the i386-win32 version under:
C:\apps\lazarus\components\sqldb\lib\i386-win32\

But the arm-wince directory (in the lib directory) is empty.

I think that those component are very important in order to consider 
Lazarus a multiplatform software for developers... cause database 
connection is very important and mysql is the most used database in the 
world.


So please tell me how i can get this work done, and, if some Lazarus 
developer read this request, please provide to (cross)compile me those 
(i thing open source) libraries.


Thanks in advance, and compliments for your project,
a new (but very surprised) Lazarus user.

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


Re: [lazarus] Component to force one instance by application

2006-12-17 Thread Luiz Americo Pereira Camara

Kris Leech wrote:
Good stuff, did you come across any issues with simpleIPC, Ive been 
meaning to have a go with it for a while...



I had two issues with simpleipc:
- in unix the TSimpleIPCServer.OnMessage event is not fired. To 
override this, a solution is to call ReadMessage in the OnIdle event of 
the application.


- The other is that there's currently no easy way to diferentiate 
between different message types. Let's say i need to send messages 
telling i started the job, send the results of the job and than finished 
the job. Currently there are two options: send a header in the stream 
with a numeric variable and check it when arrive (you lose the comodity 
of SendStringMessage) or you send a string with a string marker. I will 
propose a change in it (and provide the patch) where we could use the 
MessageType (user defined) to identify the message and we could still 
use SendStringMessage .


- another potential problem (not tested) is that in unix a file is used 
to pass the messages. So if the program crashes the file may not be 
deleted and would give that the server is running.


Luiz

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


Re: [lazarus] Component to force one instance by application

2006-12-17 Thread Luiz Americo Pereira Camara

Al Boldi wrote:

Luiz Americo Pereira Camara wrote:
  

Kris Leech wrote:


Good stuff, did you come across any issues with simpleIPC, Ive been
meaning to have a go with it for a while...
  

I had two issues with simpleipc:
 - in unix the TSimpleIPCServer.OnMessage event is not fired. To
override this, a solution is to call ReadMessage in the OnIdle event of
the application.



Try this implementation:

type

  { TPeekThread }
  TPeekThread = Class(TThread)
  private
FDoPeek: TNotifyEvent;
  protected
procedure Execute; override;
procedure Synchronize(Method: TThreadMethod);
Property DoPeek: TNotifyEvent read FDoPeek write FDoPeek;
  end;

  { TSimpleIPCpServer }
  TSimpleIPCpServer = Class(TSimpleIPCServer)
  private
FPeek: Boolean;
FPeekThread: TPeekThread;
procedure PeekMethod(Sender: TObject);
procedure SetPeek(const AValue: Boolean);
  protected
Procedure Activate; override;
Procedure Deactivate; override;
  published
Property Peek : Boolean read FPeek write SetPeek;
  end;

implementation

{ TPeekThread }
procedure TPeekThread.Execute;
begin
  repeat
FDoPeek(self);
  until Terminated;
end;

procedure TPeekThread.Synchronize(Method: TThreadMethod);
begin
  inherited;
end;

{ TSimpleIPCpServer }
procedure TSimpleIPCpServer.PeekMethod(Sender: TObject);
begin
  if PeekMessage(1000,false) then
TPeekThread(sender).Synchronize(@ReadMessage);
end;

procedure TSimpleIPCpServer.SetPeek(const AValue: Boolean);
begin
  if FPeek=AValue then exit;
  if FActive then DoError(SErrActive,[]);
  FPeek:=AValue;
end;

procedure TSimpleIPCpServer.Activate;
begin
  inherited Activate;
  if FActive and FPeek then begin
FPeekThread:=TPeekThread.Create(true);
FPeekThread.DoPeek:[EMAIL PROTECTED];
FPeekThread.FreeOnTerminate:=true;
FPeekThread.Resume;
  end;
end;

procedure TSimpleIPCpServer.Deactivate;
begin
  if FActive and FPeek then begin
FPeekThread.Terminate;
  end;
  inherited Deactivate;
end;


  
Thanks. Another solution is to use the dnotify api of the kernel. 
Someone already tried dnotify with fpc?
BTW:  Somebody know how to override a Classname, like it's possible with 
Methods.  i.e:  TComponent = Class(TComponent); override;


  

 - The other is that there's currently no easy way to diferentiate
between different message types. Let's say i need to send messages
telling i started the job, send the results of the job and than finished
the job. Currently there are two options: send a header in the stream
with a numeric variable and check it when arrive (you lose the comodity
of SendStringMessage) or you send a string with a string marker. I will
propose a change in it (and provide the patch) where we could use the
MessageType (user defined) to identify the message and we could still
use SendStringMessage .



Or you could use another SimpleIPC connection.

  

- another potential problem (not tested) is that in unix a file is used
to pass the messages. So if the program crashes the file may not be
deleted and would give that the server is running.



In unix it uses pipes.  No problem when program crashes.
  

Good to know. I don't have experience with pipes.

Luiz

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


[lazarus] New Lazarus component: TColorPalette

2006-10-30 Thread Tom Gregorovic

Hi,
I have developed new visual component for Lazarus: TColorPalette. 
Shortly, it is a color palette grid with ability to use custom palettes.
See wiki page for further info: 
http://wiki.lazarus.freepascal.org/ColorPalette.


Best regards,
   Tom Gregorovic.

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


Re: [lazarus] new lazarus component palette images

2006-10-17 Thread Mattias Gaertner
On Thu, 12 Oct 2006 19:14:17 +0200
Jernej L. [EMAIL PROTECTED] wrote:

 http://users.volja.net/delfi/lazimages.rar
 
 ^^ New lazarus component palette images, if you like these, i am
 working on more. drop me a line on irc, #lazarus-ide nick: JernejL /
 Jernej .

Thanks. 
On a first look, it seems some did not change.
Is this true?

Mattias

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


Re: [lazarus] new lazarus component palette images

2006-10-17 Thread Felipe Monteiro de Carvalho

On 10/12/06, Jernej L. [EMAIL PROTECTED] wrote:

http://users.volja.net/delfi/lazimages.rar


Can you post that as zip?

rar and 7zip are problematic to open on non-windows systems.

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] new lazarus component palette images

2006-10-17 Thread Micha Nelissen
Felipe Monteiro de Carvalho wrote:
 On 10/12/06, Jernej L. [EMAIL PROTECTED] wrote:
 http://users.volja.net/delfi/lazimages.rar
 
 Can you post that as zip?
 
 rar and 7zip are problematic to open on non-windows systems.

Look for p7zip. It's even in Debian! ;-)

Micha

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


Re: [lazarus] new lazarus component palette images

2006-10-17 Thread Lord Satan
On Tue, 17 Oct 2006 21:56:09 +0200
Micha Nelissen [EMAIL PROTECTED] wrote:

 Felipe Monteiro de Carvalho wrote:
  On 10/12/06, Jernej L. [EMAIL PROTECTED] wrote:
  http://users.volja.net/delfi/lazimages.rar
  
  Can you post that as zip?
  
  rar and 7zip are problematic to open on non-windows systems.
 
 Look for p7zip. It's even in Debian! ;-)
 
Unrar, too.

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


Re: [lazarus] new lazarus component palette images

2006-10-17 Thread Jernej L.

OK, here is zip, but it is 300KB larger than rar. i don't have any 7z
software availible at the moment.

http://users.volja.net/delfi/lazimages.zip



2006/10/17, Lord Satan [EMAIL PROTECTED]:

On Tue, 17 Oct 2006 21:56:09 +0200
Micha Nelissen [EMAIL PROTECTED] wrote:

 Felipe Monteiro de Carvalho wrote:
  On 10/12/06, Jernej L. [EMAIL PROTECTED] wrote:
  http://users.volja.net/delfi/lazimages.rar
 
  Can you post that as zip?
 
  rar and 7zip are problematic to open on non-windows systems.

 Look for p7zip. It's even in Debian! ;-)

Unrar, too.

_
 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] new lazarus component palette images

2006-10-12 Thread Jernej L.

http://users.volja.net/delfi/lazimages.rar

^^ New lazarus component palette images, if you like these, i am
working on more. drop me a line on irc, #lazarus-ide nick: JernejL /
Jernej .

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


[lazarus] Lazarus component documentation

2006-03-05 Thread Uwe Grauer
Hi,

Where can i download documentation about lazarus components?
Are the lazarus components similar enough to Delphi to actually use the
Delphi docs?

Regards,
Uwe

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


Re: [lazarus] Lazarus component documentation

2006-03-05 Thread Michael Van Canneyt


On Sun, 5 Mar 2006, Uwe Grauer wrote:

 Hi,

 Where can i download documentation about lazarus components?
 Are the lazarus components similar enough to Delphi to actually use the
 Delphi docs?

Yes, unless you want to create custom descendents.

Michael.

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


Re: [lazarus] Lazarus component documentation

2006-03-05 Thread Uwe Grauer
Michael Van Canneyt wrote:
 
 On Sun, 5 Mar 2006, Uwe Grauer wrote:
 
 Hi,

 Where can i download documentation about lazarus components?
 Are the lazarus components similar enough to Delphi to actually use the
 Delphi docs?
 
 Yes, unless you want to create custom descendents.
 
 Michael.
 

Which delphi version docs are best suited for this?

Uwe

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


Re: [lazarus] Lazarus component documentation

2006-03-05 Thread Michael Van Canneyt


On Sun, 5 Mar 2006, Uwe Grauer wrote:

 Michael Van Canneyt wrote:
 
  On Sun, 5 Mar 2006, Uwe Grauer wrote:
 
  Hi,
 
  Where can i download documentation about lazarus components?
  Are the lazarus components similar enough to Delphi to actually use the
  Delphi docs?
 
  Yes, unless you want to create custom descendents.
 
  Michael.
 

 Which delphi version docs are best suited for this?

Doesn't matter. The basic components have remained
the same since ages. Anything up from version 3 of
Delphi should be OK, 5 or higher is even better.

Michael.

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


Re: [lazarus] Component for to do backup !!

2006-02-12 Thread Vincent Snijders

Patrick wrote:

does anybody know any backup component ???
like the file attached.
if anybody to get compile it tell me pls !!!


I took a quick look at the backup.pas file.

Add {$mode delphi} or {$mode objfpc}{$h+} to the top of file.

I have problems with missing obj files. Maybe you can use the paszlib 
unit or package instead.


Vincent.

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


Re: [lazarus] Component for to do backup !!

2006-02-12 Thread Michael Van Canneyt


On Sat, 11 Feb 2006, Patrick wrote:

 does anybody know any backup component ??? 
 like the file attached.
 if anybody to get compile it tell me pls !!!

A simple backup for a single file can be done with the zstream unit.
More advanced backup can be done with TurboPower's abbrevia, the 
non-visual part compiles with FPC.

Michael.

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


Re: [lazarus] Component for to do backup !!

2006-02-12 Thread Luiz Americo Pereira Camara

Patrick escreveu:

does anybody know any backup component ???
I'm developing an backup application that supports incremental backups 
and file version tracking.It uses sqlite3 to do the file tracking. You 
can find the sources here: 
http://www.geocities.com/camara_luiz/becape-alpha.zip.


The actual backup is done in backupengine.pas and backupcatalog.pas 
which is GUI independent. To see how do a backup see fexecutetask.pas. 
Please not that the core is functional and can be considered in beta 
state, while the GUI is in alpha state. Furthermore there's a lot of 
debug hints along the code.


It requires a recent sqliteds component: 
http://www.geocities.com/camara_luiz/sqliteds.zip

Luiz

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


Re: [lazarus] Component for to do backup !!

2006-02-12 Thread Bogusław Brandys

Luiz Americo Pereira Camara wrote:

Patrick escreveu:

does anybody know any backup component ???
I'm developing an backup application that supports incremental backups 
and file version tracking.It uses sqlite3 to do the file tracking. You 
can find the sources here: 
http://www.geocities.com/camara_luiz/becape-alpha.zip.


The actual backup is done in backupengine.pas and backupcatalog.pas 
which is GUI independent. To see how do a backup see fexecutetask.pas. 
Please not that the core is functional and can be considered in beta 
state, while the GUI is in alpha state. Furthermore there's a lot of 
debug hints along the code.


It requires a recent sqliteds component: 
http://www.geocities.com/camara_luiz/sqliteds.zip

Luiz


Is this version the same as in FPC 2.0.3 SVN ?

Regards
Boguslaw


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


Re: [lazarus] Component for to do backup !!

2006-02-12 Thread Luiz Americo Pereira Camara

Bogusław Brandys escreveu:

Luiz Americo Pereira Camara wrote:


It requires a recent sqliteds component: 
http://www.geocities.com/camara_luiz/sqliteds.zip

Is this version the same as in FPC 2.0.3 SVN ?


No. It's newer.

Luiz

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


[lazarus] Component for to do backup !!

2006-02-11 Thread Patrick



does anybody know any backup component ??? 

like the file attached.
if anybody to get compile it tell me pls 
!!!


backup.pas
Description: Binary data


[lazarus] Component writing problems

2005-12-21 Thread Markku Niskanen
Hello, 

I have been trying to create a simple new component just for the
sake of experience and I MUST be real stupid as I get the following
backtrace when I try to insert the new component (which has been
compiled ok) to the form. The component comes from Delphi and
works just fine there.

It seems to me as if the TWincontrol needed a parent but as it
cannot find one simply raises an exception. Before getting into the
real thing I created the simplest component I can image, it extends
class TCustomPanel and onPaint it should draw a very short line
and is totally useless. The Canvas operation Moveto() seems to
start the chain.

Any help would be appreciated. I do not mind being called an 
idiot, either :)

When I get the first real component done I will document the 
process and publish it as a starter's tutorial.

- gdb backtrace (running lazarus, dropping component) ---
Program received signal SIGFPE, Arithmetic exception.
$0040dc98 in RAISEGDBEXCEPTION (MSG=$1f95e4c) at LCLProc.pas:594
(gdb) bt
#0  $0040dc98 in RAISEGDBEXCEPTION (MSG=$1f95e4c) at LCLProc.pas:594
#1  $00480f45 in TWINCONTROL__CREATEWND (this=$2216928) at
wincontrol.inc:4781
#2  $00480c53 in TWINCONTROL__CREATEHANDLE (this=$2216928)
at wincontrol.inc:4723
#3  $004818ac in TWINCONTROL__HANDLENEEDED (this=$2216928)
at wincontrol.inc:5031
#4  $0047ff73 in TWINCONTROL__GETHANDLE (this=$2216928) at
wincontrol.inc:4073
#5  $00482aa5 in TWINCONTROL__GETDEVICECONTEXT (WINDOWHANDLE=0,
this=$2216928)
at wincontrol.inc:5502
#6  $004788f0 in TCONTROLCANVAS__CREATEHANDLE (this=$2199934)
at controlcanvas.inc:90
#7  $004b8180 in TCANVAS__REQUIREDSTATE (REQSTATE=[CSHANDLEVALID],
this=$2199934) at canvas.inc:1403
#8  $004b7a30 in TCANVAS__MOVETO (X1=2, Y1=2, this=$2199934) at
canvas.inc:1075
#9  $007c12b1 in TSIMPLELINE__PAINT (this=$2216928) at SimpleLine.pas:49
#10 $007c127d in TSIMPLELINE__RESIZE (this=$2216928) at SimpleLine.pas:44
 /backtrace-

-- unit/component
unit SimpleLine;
{$mode objfpc}{$H+}
interface
uses
  Windows, Messages, SysUtils, Classes, GraphType,Graphics, Controls,
Forms, Dialogs,
  ExtCtrls, LResources;

type
  TSimpleLine = class(TCustomPanel)
  private
{ Private declarations }
  protected
{ Protected declarations }
  public
{ Public declarations }
constructor Create(AOwner: TComponent); override;
procedure Paint; override;
procedure Resize; override;
  published
property OnResize;
{ Published declarations }
  end;

procedure Register;

implementation

procedure Register;
begin
  RegisterComponents('Misc',[TSimpleLine]);
end;

constructor TSimpleLine.Create(AOwner: TComponent);
begin
  inherited;
end;

procedure TSimpleLine.Resize;
begin
  inherited;
  paint();
end;

// - this is where it all starts ---
procedure TSimpleLine.paint() ;
begin
  Canvas.Moveto(2,2);
  Canvas.Lineto(4,4);
end;

end.  
-- 
[EMAIL PROTECTED]

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


Re: [lazarus] Component writing problems

2005-12-21 Thread Mattias Gaertner
On Wed, 21 Dec 2005 20:28:55 +0200
Markku Niskanen [EMAIL PROTECTED] wrote:

 Hello, 
 
 I have been trying to create a simple new component just for the
 sake of experience and I MUST be real stupid as I get the following
 backtrace when I try to insert the new component (which has been
 compiled ok) to the form. The component comes from Delphi and
 works just fine there.
 
 It seems to me as if the TWincontrol needed a parent but as it
 cannot find one simply raises an exception. Before getting into the
 real thing I created the simplest component I can image, it extends
 class TCustomPanel and onPaint it should draw a very short line
 and is totally useless. The Canvas operation Moveto() seems to
 start the chain.
 
 Any help would be appreciated. I do not mind being called an 
 idiot, either :)
 
 When I get the first real component done I will document the 
 process and publish it as a starter's tutorial.
 
 - gdb backtrace (running lazarus, dropping component) ---
 Program received signal SIGFPE, Arithmetic exception.
 $0040dc98 in RAISEGDBEXCEPTION (MSG=$1f95e4c) at LCLProc.pas:594
 (gdb) bt
 #0  $0040dc98 in RAISEGDBEXCEPTION (MSG=$1f95e4c) at LCLProc.pas:594
 #1  $00480f45 in TWINCONTROL__CREATEWND (this=$2216928) at
 wincontrol.inc:4781
 #2  $00480c53 in TWINCONTROL__CREATEHANDLE (this=$2216928)
 at wincontrol.inc:4723
 #3  $004818ac in TWINCONTROL__HANDLENEEDED (this=$2216928)
 at wincontrol.inc:5031
 #4  $0047ff73 in TWINCONTROL__GETHANDLE (this=$2216928) at
 wincontrol.inc:4073
 #5  $00482aa5 in TWINCONTROL__GETDEVICECONTEXT (WINDOWHANDLE=0,
 this=$2216928)
 at wincontrol.inc:5502
 #6  $004788f0 in TCONTROLCANVAS__CREATEHANDLE (this=$2199934)
 at controlcanvas.inc:90
 #7  $004b8180 in TCANVAS__REQUIREDSTATE (REQSTATE=[CSHANDLEVALID],
 this=$2199934) at canvas.inc:1403
 #8  $004b7a30 in TCANVAS__MOVETO (X1=2, Y1=2, this=$2199934) at
 canvas.inc:1075
 #9  $007c12b1 in TSIMPLELINE__PAINT (this=$2216928) at SimpleLine.pas:49
 #10 $007c127d in TSIMPLELINE__RESIZE (this=$2216928) at SimpleLine.pas:44
  /backtrace-
 
 -- unit/component
 unit SimpleLine;
 {$mode objfpc}{$H+}
 interface
 uses
   Windows, Messages, SysUtils, Classes, GraphType,Graphics, Controls,
 Forms, Dialogs,
   ExtCtrls, LResources;
 
 type
   TSimpleLine = class(TCustomPanel)
   private
 { Private declarations }
   protected
 { Protected declarations }
   public
 { Public declarations }
 constructor Create(AOwner: TComponent); override;
 procedure Paint; override;
 procedure Resize; override;
   published
 property OnResize;
 { Published declarations }
   end;
 
 procedure Register;
 
 implementation
 
 procedure Register;
 begin
   RegisterComponents('Misc',[TSimpleLine]);
 end;
 
 constructor TSimpleLine.Create(AOwner: TComponent);
 begin
   inherited;
 end;
 
 procedure TSimpleLine.Resize;
 begin
   inherited;
   paint();
 end;

Don't call paint in Resize. This will be done automatically.


 
 // - this is where it all starts ---
 procedure TSimpleLine.paint() ;
 begin
   Canvas.Moveto(2,2);
   Canvas.Lineto(4,4);
 end;
 
 end.  


Mattias

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


Re: [lazarus] Component writing problems

2005-12-21 Thread Marc Weustink

Mattias Gaertner wrote:

On Wed, 21 Dec 2005 20:28:55 +0200
Markku Niskanen [EMAIL PROTECTED] wrote:


procedure TSimpleLine.Resize;
begin
 inherited;
 paint();
end;



Don't call paint in Resize. This will be done automatically.


It shouldn't be nesecary there, but if you ever want to repaint, use 
Invalidate;

That way a repaint is sceduled till the next update.

Marc

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


Re: [lazarus] Component writing problems

2005-12-21 Thread Markku Niskanen
Maybe you can take a look at 
http://wiki.lazarus.freepascal.org/index.php/RingChart_and_AnalogWatch 
to see how to create a analogue clock. ;-)

Huh? Well, yes... I know there are lots of clocks available :)

What I had in mind, really was to convert a simple Delphi 
freeware component to see what needs to be done. Now I should
have at least a vague idea of it so I'll write down what I have done.

After that, the next chapter is a bit more demanding: I will try to 
convert a DXF reader/display class to Lazarus. It is a freeware
component and worked well in my commercial Delphi application 
I wrote in 1997.

As for the icon I did, again, run into a trouble. I used an icon editor
called IconXP that should export XPM. However, when linking the 
resource, Lazarus fails to start, stating that the bitmap resource is
invalid. 

A look at the XPM file revealed that the icon editor produces:
  static const unsigned char * tclock_xpm[] = {
instead of 
  static char * tclock_xpm[] = {

After fixing that everything was ok. Any idea about a decent xpm 
icon editor that would make valid Lazarus XPM?

Markku
-- 
[EMAIL PROTECTED]

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


Re: [lazarus] Component writing problems

2005-12-21 Thread Mattias Gaertner
On Thu, 22 Dec 2005 01:30:13 +0200
Markku Niskanen [EMAIL PROTECTED] wrote:

 Maybe you can take a look at 
 http://wiki.lazarus.freepascal.org/index.php/RingChart_and_AnalogWatch 
 to see how to create a analogue clock. ;-)
 
 Huh? Well, yes... I know there are lots of clocks available :)
 
 What I had in mind, really was to convert a simple Delphi 
 freeware component to see what needs to be done. Now I should
 have at least a vague idea of it so I'll write down what I have done.
 
 After that, the next chapter is a bit more demanding: I will try to 
 convert a DXF reader/display class to Lazarus. It is a freeware
 component and worked well in my commercial Delphi application 
 I wrote in 1997.
 
 As for the icon I did, again, run into a trouble. I used an icon editor
 called IconXP that should export XPM. However, when linking the 
 resource, Lazarus fails to start, stating that the bitmap resource is
 invalid. 
 
 A look at the XPM file revealed that the icon editor produces:
   static const unsigned char * tclock_xpm[] = {
 instead of 
   static char * tclock_xpm[] = {
 
 After fixing that everything was ok. Any idea about a decent xpm 
 icon editor that would make valid Lazarus XPM?

I imrpoved TestStreamIsXPM to recognize also 'static const unsigned char'.
Now the LCL can load such .xpm files.


Mattias

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


[lazarus] Component adds no new tab on lazarus - strange problem

2005-11-16 Thread Armando Jorge Sousa


Hello.

I am new to this mailing list.

I have successfully installed lazarus on my laptop running Mandriva Linux.
After that, I have successfully installed ZeosLib components.
After that, I successfully installed another component I am working on.

After that, I installed lazarus successfully on a Desktop PC.
Only that on the desktop I was unable to install any component:
I could never see an additional tab in the lazarus tools.
The 2 components I tried compile and lazarus rebuilds normally but
after normal restart there is no additional tab.
Although I tried other version stuff, this happened in the
same versions I used on the laptop: fpc2.0.0 and lazarus 0.9.10.

The desktop runs Debian Sarge with a kernel 2.4.27
(not my choice...).

Installation in the desktop was made with RPMs converted into .DEBs,
as explained in the wiki.
I already 777 all permissions in the /etc/fpc.cfg, .lazarus directory,
lazarus and fpc directories, removed and re-installed and still no change.

I find this to be a lazarus problem because neither the Zeos nor
my own package adds the registered tab...

My guess is that this is a permissions problem (?). Maybe lazarus tries 
to write
something somewhere fails and returns no error message, not even in the 
console.


Any hints ? Any hint on how to debug such a problem ?

Thanks for all the help

 Armando Jorge Sousa

--
Armando J. M. Sousa  
FEUP - DEEC - ISR
R.Dr.Roberto Frias, S/N
4200-465 Porto   
Tel: +351 225 081 815

Fax: +351 225 081 443

Personal web page:   http://www.fe.up.pt/~asousa
RoboSoccer web page: http://www.fe.up.pt/~robosoc

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


Re: [lazarus] Component adds no new tab on lazarus - strange problem

2005-11-16 Thread Joost van der Sluis
On Wed, 2005-11-16 at 12:56 +, Armando Jorge Sousa wrote:
 I find this to be a lazarus problem because neither the Zeos nor
 my own package adds the registered tab...

How did you start lazarus? With 'lazarus' or with 'startlazarus'.

Try to start it with 'startlazarus'.

Probably you are running the wrong lazarus-binary. Try if you can find
multiple binaries, and try them all.

-- 
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] Component adds no new tab on lazarus - strange problem

2005-11-16 Thread barko
/home/yourname/.lazarus/bin

look in this directory...

copy startlazarus into this directory and run from it.. it works everytime 
when you install new components...

Dne sreda 16. novembra 2005 13:56 je Armando Jorge Sousa napisal(a):
 Hello.

 I am new to this mailing list.

 I have successfully installed lazarus on my laptop running Mandriva Linux.
 After that, I have successfully installed ZeosLib components.
 After that, I successfully installed another component I am working on.

 After that, I installed lazarus successfully on a Desktop PC.
 Only that on the desktop I was unable to install any component:
 I could never see an additional tab in the lazarus tools.
 The 2 components I tried compile and lazarus rebuilds normally but
 after normal restart there is no additional tab.
 Although I tried other version stuff, this happened in the
 same versions I used on the laptop: fpc2.0.0 and lazarus 0.9.10.

 The desktop runs Debian Sarge with a kernel 2.4.27
 (not my choice...).

 Installation in the desktop was made with RPMs converted into .DEBs,
 as explained in the wiki.
 I already 777 all permissions in the /etc/fpc.cfg, .lazarus directory,
 lazarus and fpc directories, removed and re-installed and still no change.

 I find this to be a lazarus problem because neither the Zeos nor
 my own package adds the registered tab...

 My guess is that this is a permissions problem (?). Maybe lazarus tries
 to write
 something somewhere fails and returns no error message, not even in the
 console.

 Any hints ? Any hint on how to debug such a problem ?

 Thanks for all the help

   Armando Jorge Sousa

-- 
bye,
...s]-[it happens...

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