Re: [Lazarus] IDE dialogs mouse wheel scrolling incrments too small

2009-01-26 Thread Graeme Geldenhuys
On Mon, Jan 26, 2009 at 4:58 AM, Lee Jenkins l...@datatrakpos.com wrote:

 Ooooh.  That does sound sexy.  I assume by your comments that we can expect
 fpGUI to support that kind of thing? ;)

Yup, already working on it. :-)


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Free Open Source Diagram Components for Lazarus?

2009-01-26 Thread Thierry Coq
Hello Flàvio,

I would hope to have rather a Lazarus-compatible license such as LGPL or 
Mozilla. Pure GPL for a component is, in my case, somewhat of an issue. 
I would happily give the work to improve the drawing component, but not 
necessarily the science that the component represents.

Thanks for the link in any case. Essmodel is, indeed, very interesting.

Thierry

Flávio Etrusco wrote:
 On Sun, Jan 25, 2009 at 7:41 PM, Thierry Coq t...@free.fr wrote:
   
 I'm looking for a diagramming components for Lazarus, to draw circles,
 rectangles, and connectors between them that are resized or moved when
 the components are moved. This would be used to create graph editors,
 for example for designing dynamic models.

 Do you have ideas about a mature component I could use for this purpose?
 I've been thinking about using GLScene as a 2D layer, but it seems to be
 overkill for my purpose (although 3D diagrams... hum.)

 Best regards,
 Thierry
 


 If GPL is an option, ESS-Model may be of some use:
 http://essmodel.sourceforge.net/

 Best regards,
 Flávio

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


   

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


Re: [Lazarus] Free Open Source Diagram Components for Lazarus?

2009-01-26 Thread M.Ali VARDAR
Hi,

I wrote circle, rectangle and decision symbols, all three components are so
premature. I was start last year but i'm busy with another projects. If
anybody want to develop i can upload on to a web site.

Best Regads,

M.Ali VARDAR


On Mon, Jan 26, 2009 at 10:43 AM, Thierry Coq t...@free.fr wrote:

 Hello Flàvio,

 I would hope to have rather a Lazarus-compatible license such as LGPL or
 Mozilla. Pure GPL for a component is, in my case, somewhat of an issue.
 I would happily give the work to improve the drawing component, but not
 necessarily the science that the component represents.

 Thanks for the link in any case. Essmodel is, indeed, very interesting.

 Thierry

 Flávio Etrusco wrote:
  On Sun, Jan 25, 2009 at 7:41 PM, Thierry Coq t...@free.fr wrote:
 
  I'm looking for a diagramming components for Lazarus, to draw circles,
  rectangles, and connectors between them that are resized or moved when
  the components are moved. This would be used to create graph editors,
  for example for designing dynamic models.
 
  Do you have ideas about a mature component I could use for this
 purpose?
  I've been thinking about using GLScene as a 2D layer, but it seems to be
  overkill for my purpose (although 3D diagrams... hum.)
 
  Best regards,
  Thierry
 
 
 
  If GPL is an option, ESS-Model may be of some use:
  http://essmodel.sourceforge.net/
 
  Best regards,
  Flávio
 
  ___
  Lazarus mailing list
  Lazarus@lazarus.freepascal.org
  http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
 
 
 

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




-- 

Saygılarımla
M.Ali VARDAR
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Free Open Source Diagram Components for Lazarus?

2009-01-26 Thread ik
There is the following components (for Delphi, but I think it can be converted):
http://angusj.com/delphi/

It's freeware with source, so maybe we shoudl contact the developer if
it will be converted to lazarus.

Ido

On Sun, Jan 25, 2009 at 11:41 PM, Thierry Coq t...@free.fr wrote:
 I'm looking for a diagramming components for Lazarus, to draw circles,
 rectangles, and connectors between them that are resized or moved when
 the components are moved. This would be used to create graph editors,
 for example for designing dynamic models.

 Do you have ideas about a mature component I could use for this purpose?
 I've been thinking about using GLScene as a 2D layer, but it seems to be
 overkill for my purpose (although 3D diagrams... hum.)

 Best regards,
 Thierry
 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

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


[Lazarus] Freepascal 2.2.4rc1 released

2009-01-26 Thread Joost van der Sluis
We have placed the first release-candidate of the Free Pascal Compiler
version 2.2.4 on our ftp-servers.

You can help improve the upcoming 2.2.4 release by downloading and
testing this release. If you want you can report what you have done here:
http://wiki.freepascal.org/Testers_2.2.4

With this release we also want to test our new packaging-system. After
installing the package manager (fppkg) can be called from the
command-line. For now only the 'lnet' package is available for
installation through the package system. When all goes well it could be
that more packages will be added.

For more information about fppkg:
http://wiki.freepascal.org/fppkg

Changes that may break backwards compatibility are documented at:
http://wiki.freepascal.org/User_Changes_2.2.4

Downloads are available at:
ftp://ftp.freepascal.org/pub/fpc/beta/2.2.4rc1/


Enjoy!

The Free Pascal Compiler Team




Free Pascal Compiler

Version 2.2.4rc1

**
  What's New in 2.2.4rc1
**

Free Pascal 2.2.4rc1 contains many bug-fixes and some new features. The 
main purpose of this release is to fix problems reported with FPC 2.2.2.

Please also see http://wiki.freepascal.org/User_Changes_2.2.4 for a list
of changes which may affect the behaviour of previously working code,
and
how to cope with these changes.

Some highlights are:

All:
  * Experimental packages-installation tool

Packages:
  * Added support for TIFF reading/writing in fcl-image
  * Improvements and fixes in CHM support
  * Fixed linking the gtk2-package with gtk versions above 2.13.4

IDE:
  * Added support for CHM help files

Documentation

See http://bugs.freepascal.org/changelog_page.php for the list of
reported
bugs which have been fixed in this release.


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


Re: [Lazarus] Freepascal 2.2.4rc1 released

2009-01-26 Thread Vincent Snijders
2009/1/26 Joost van der Sluis jo...@cnoc.nl:
 See http://bugs.freepascal.org/changelog_page.php

And switch to the FPC project, if necessary.

 for the list of
 reported
 bugs which have been fixed in this release.

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


Re: [Lazarus] TFileStream

2009-01-26 Thread Dave Coventry
I'm having some difficulty over this:

= snip ===
  FS:=TFileStream.Create(fname, fmshareDenyWrite);
  Try
FS.ReadBuffer(hdbuffer[0],32);
  Finally
FreeAndNil(FS);
  end;
  RecSize:=LEtoN(PSmallInt(@hdbuffer[10])^);
  SetLength(recbuffer,RecSize);
  FillChar(recbuffer,RecSize,' ');
  pos:=68;
  bufferpos:=1;
  setLength(fldheader,48);
  for i:=0 to gFields.Count-1 do
  begin
ftype:=getFieldType(PChar(gFields.GetItem(i)));
case ftype of
  43://'+'
  begin
FS:=TFileStream.Create(fname, fmshareDenyWrite);- Fails here
Try
  FS.Seek(pos,soFromBeginning);
  FS.ReadBuffer(fldheader[0],4);
Finally
  FreeAndNil(FS);
end;
  end;
= snip ===

Project raised exception class 'External: SIGSEgV'

Followed by:

Project raised exception class 'RunError (216)'
'Access Violation'

What am I doing wrong?
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TFileStream

2009-01-26 Thread ajv
Dear Dave Coventry,

Probably the FileStream still exist in an other thread.
Application.ProcessMessages might help.
Better is it to open the stream on fname once an reposition the pointer 
repeatedly.

Success.

=
 I'm having some difficulty over this:

 = snip ===
   FS:=TFileStream.Create(fname, fmshareDenyWrite);
   Try
 FS.ReadBuffer(hdbuffer[0],32);
   Finally
 FreeAndNil(FS);
   end;
   RecSize:=LEtoN(PSmallInt(@hdbuffer[10])^);
   SetLength(recbuffer,RecSize);
   FillChar(recbuffer,RecSize,' ');
   pos:=68;
   bufferpos:=1;
   setLength(fldheader,48);
   for i:=0 to gFields.Count-1 do
   begin
 ftype:=getFieldType(PChar(gFields.GetItem(i)));
 case ftype of
   43://'+'
   begin
 FS:=TFileStream.Create(fname, fmshareDenyWrite);- Fails here
 Try
   FS.Seek(pos,soFromBeginning);
   FS.ReadBuffer(fldheader[0],4);
 Finally
   FreeAndNil(FS);
 end;
   end;
 = snip ===

 Project raised exception class 'External: SIGSEgV'

 Followed by:

 Project raised exception class 'RunError (216)'
 'Access Violation'

 What am I doing wrong?
 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


   

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


Re: [Lazarus] Free Open Source Diagram Components for Lazarus?

2009-01-26 Thread Lee Jenkins
ik wrote:
 There is the following components (for Delphi, but I think it can be 
 converted):
 http://angusj.com/delphi/
 
 It's freeware with source, so maybe we shoudl contact the developer if
 it will be converted to lazarus.
 
 Ido
 

This one too is freeware and might make a good candidate to port assuming you 
could get permission from the author.  Great component btw.

--
Warm Regards,

Lee

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


[Lazarus] Unicode data

2009-01-26 Thread theo
In the charactermapdlg.pas unit (IDE) we use some code from unicode.org.
Since we should add unicode.org copyright notice to this file, I've
created a patch for this file:
http://www.theo.ch/lazarus/mypatchlic.diff

Vincent suggested to put the relevant code into a separate unit of the LCL.
Now Im asking if /lcl is the right place and what would the best name
for it?
unicodedata.pas
lclunicodedata.pas
lunicodedata.pas

Any thoughts about this?
Is there currently more code in the LCL which should go there?

Regards Theo


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


Re: [Lazarus] TFileStream

2009-01-26 Thread Dave Coventry
Hi AJ.

I was under the impression that this:

 FS:=TFileStream.Create(fname, fmshareDenyWrite);
 Try
   FS.ReadBuffer(hdbuffer[0],32);
 Finally
   FreeAndNil(FS);-
 end;

would free the File Pointer to be used again.

Do you suggest that I use another variable when I do it the second time?

Is it possible to specify that the program only uses one thread?

I'm having a lot of unexplained errors in developing this app and I'm
wondering if this isn't the cause of a lot of them.


FS2:=TFileStream.Create(fname, fmshareDenyWrite);

Surely that would fail too?

2009/1/26 ajv a...@vogelaar-electronics.com:
 Dear Dave Coventry,

 Probably the FileStream still exist in an other thread.
 Application.ProcessMessages might help.
 Better is it to open the stream on fname once an reposition the pointer
 repeatedly.

 Success.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TFileStream

2009-01-26 Thread Michael Van Canneyt


On Mon, 26 Jan 2009, Dave Coventry wrote:

 Hi AJ.
 
 I was under the impression that this:
 
  FS:=TFileStream.Create(fname, fmshareDenyWrite);
  Try
FS.ReadBuffer(hdbuffer[0],32);
  Finally
FreeAndNil(FS);-
  end;
 
 would free the File Pointer to be used again.

That is correct.

 
 Do you suggest that I use another variable when I do it the second time?

That should absolutely not be necessary.

 
 Is it possible to specify that the program only uses one thread?

This is so by default, unless you create threads yourself ?

More likely is simply the fact that the file cannot be locked.

Michael.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TFileStream

2009-01-26 Thread Dave Coventry
Hi Michael.

The file is accessed correctly the first time, but fails the second time.

2009/1/26 Michael Van Canneyt mich...@freepascal.org:
 This is so by default, unless you create threads yourself ?

No, I didn't.

 More likely is simply the fact that the file cannot be locked.

How can I check this?
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TFileStream

2009-01-26 Thread ajv
The application is one thread, the file handling is done by the 
operating system in an other thread.
FreeAndNil releases indded the Class TFileStream but the OS can still 
have a capture on the file.
This will not happen if you use one instance of an attached class 
throughout your application.

Succes, Anthony Vogelaar.


 On Mon, 26 Jan 2009, Dave Coventry wrote:

   
 Hi AJ.

 I was under the impression that this:

  FS:=TFileStream.Create(fname, fmshareDenyWrite);
  Try
FS.ReadBuffer(hdbuffer[0],32);
  Finally
FreeAndNil(FS);-
  end;

 would free the File Pointer to be used again.
 

 That is correct.

   
 Do you suggest that I use another variable when I do it the second time?
 

 That should absolutely not be necessary.

   
 Is it possible to specify that the program only uses one thread?
 

 This is so by default, unless you create threads yourself ?

 More likely is simply the fact that the file cannot be locked.

 Michael.
 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


   

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


Re: [Lazarus] Free Open Source Diagram Components for Lazarus?

2009-01-26 Thread theo
There's also this (Delphi Freeware)

http://meesoft.logicnet.dk/DiagramDesigner/

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


Re: [Lazarus] Free Open Source Diagram Components for Lazarus?

2009-01-26 Thread Lee Jenkins
Lee Jenkins wrote:
 ik wrote:
 There is the following components (for Delphi, but I think it can be 
 converted):
 http://angusj.com/delphi/

 It's freeware with source, so maybe we shoudl contact the developer if
 it will be converted to lazarus.

 Ido

 
 This one too is freeware and might make a good candidate to port assuming you 
 could get permission from the author.  Great component btw.
 
 --
 Warm Regards,
 
 Lee
 

Forgot the link:

http://www.delphiarea.com/products/delphi-components/simplegraph/

--
Warm Regards,

Lee


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


Re: [Lazarus] Free Open Source Diagram Components for Lazarus?

2009-01-26 Thread Lee Jenkins
theo wrote:
 There's also this (Delphi Freeware)
 
 http://meesoft.logicnet.dk/DiagramDesigner/
 

LOL!  Teach me to actually look at the link before I post.

The one that I posted is the official website if that matters any...


--
Warm Regards,

Lee
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TFileStream

2009-01-26 Thread Hans-Peter Diettrich
Dave Coventry schrieb:

   FS:=TFileStream.Create(fname, fmshareDenyWrite);

IMO you should also specify the requested access (fmCreate or 
fmOpen...), even if zero happens to mean fmOpenRead.

Nonetheless it looks strange when the same file cannot be reopened 
later. Are you sure that fname is unchanged the second time?

Why don't you keep the stream open, and move the try/finally to the end 
of the subroutine?

DoDi

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


Re: [Lazarus] TFileStream

2009-01-26 Thread Vincent Snijders
2009/1/26, Mattias Gaertner nc-gaert...@netcologne.de:
 On Mon, 26 Jan 2009 15:49:24 +0200

 Dave Coventry dgcoven...@gmail.com wrote:


  I'm having some difficulty over this:
  
   = snip ===
 FS:=TFileStream.Create(fname, fmshareDenyWrite);
 Try
   FS.ReadBuffer(hdbuffer[0],32);
 Finally
   FreeAndNil(FS);
 end;
 RecSize:=LEtoN(PSmallInt(@hdbuffer[10])^);
 SetLength(recbuffer,RecSize);
 FillChar(recbuffer,RecSize,' ');


 Maybe you mean

 FillChar(recbuffer^,RecSize,' ');
  ?


Or FillChar(recbuffer[1],RecSize,' ');

if it is a string or [0] if it is a dynarray.

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


[Lazarus] several weird behaviors with Lazarus

2009-01-26 Thread ik
Hello,

I'm working with Lazarus v0.9.27 r18450M x86_64-linux-gtk 2 (beta) .

I have encountered few weird behaviors with this version of Lazarus,
but I do not know if that's a bug or a change that was made to act
like this, but it was not ended (the change).

1. When Lazarus starts, all of the windows of lazarus try to steal the
focus from each other until I make the entire windows of lazarus to
loose focus to another program.

2. The following code never have more then 0 components returned:

A: for i := 0 to Screen.ComponentCount
B: for i := 0 to GroupBox1.ComponentCount

Only
for i := 0 to Form1.ComponentCount

returns the correct number of compinents.

Is there something I'm missing with this two issues, or should I just
report bug reports ?

Thanks,

Ido
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Free Open Source Diagram Components for Lazarus?

2009-01-26 Thread Thierry Coq
Both SimpleGraph and DiagramDesigner look promising!

- SimpleGraph seems easier to understand, and the license is very 
simple: the original author is not responsible, please mail him the 
sources changes, and keep his name as original author,
- DiagramDesigner has another license: no responsible, but also no 
changes allowed. So we must ask permission for any changes.

I suggest the next step is to ask both authors if they are willing to 
port these tools to Lazarus, first as a Windows port, then as a multi-OS 
port, or willing to let US do the porting, and if they are willing to 
use a recognized license scheme such as Lazarus'.

Best regards,
Thierry

Lee Jenkins wrote:
 Lee Jenkins wrote:
   
 ik wrote:
 
 There is the following components (for Delphi, but I think it can be 
 converted):
 http://angusj.com/delphi/

 It's freeware with source, so maybe we shoudl contact the developer if
 it will be converted to lazarus.

 Ido

   
 This one too is freeware and might make a good candidate to port assuming 
 you 
 could get permission from the author.  Great component btw.

 --
 Warm Regards,

 Lee

 

 Forgot the link:

 http://www.delphiarea.com/products/delphi-components/simplegraph/

 --
 Warm Regards,

 Lee


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


   

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


Re: [Lazarus] TFileStream

2009-01-26 Thread Dave Coventry
2009/1/26 Vincent Snijders vincent.snijd...@gmail.com:
 2009/1/26, Mattias Gaertner nc-gaert...@netcologne.de:
 Maybe you mean

 FillChar(recbuffer^,RecSize,' ');
  ?


 Or FillChar(recbuffer[1],RecSize,' ');

 if it is a string or [0] if it is a dynarray.

Thanks.

I'll put that in. It seemed to work okay as written but I obviously
never had the opportunity to check the output.

I'll have a go at twisting the code around to see if I can get the
calls to the file stream in the same 'try' block.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] several weird behaviors with Lazarus

2009-01-26 Thread Vincent Snijders
2009/1/26, ik ido...@gmail.com:
 Hello,

  I'm working with Lazarus v0.9.27 r18450M x86_64-linux-gtk 2 (beta) .

  I have encountered few weird behaviors with this version of Lazarus,
  but I do not know if that's a bug or a change that was made to act
  like this, but it was not ended (the change).

  1. When Lazarus starts, all of the windows of lazarus try to steal the
  focus from each other until I make the entire windows of lazarus to
  loose focus to another program.

This is the consequence of an unsuccessful patch for
http://bugs.freepascal.org/view.php?id=13004

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


Re: [Lazarus] TFileStream

2009-01-26 Thread Andrew Brunner
Actually, I'm thinking you're creating a memory problem with using
fillchar and passing the pointer to the dynarray instead of the
element.  Try using FillChar with the zero element again...  The
reason why the construction maybe failing is b/c a potential memory
leak created by not using the zero element of the dynarray you are
using.

On Mon, Jan 26, 2009 at 2:23 PM, Dave Coventry dgcoven...@gmail.com wrote:
 2009/1/26 Vincent Snijders vincent.snijd...@gmail.com:
 2009/1/26, Mattias Gaertner nc-gaert...@netcologne.de:
 Maybe you mean

 FillChar(recbuffer^,RecSize,' ');
  ?


 Or FillChar(recbuffer[1],RecSize,' ');

 if it is a string or [0] if it is a dynarray.

 Thanks.

 I'll put that in. It seemed to work okay as written but I obviously
 never had the opportunity to check the output.

 I'll have a go at twisting the code around to see if I can get the
 calls to the file stream in the same 'try' block.
 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

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


Re: [Lazarus] TFileStream

2009-01-26 Thread Dave Coventry
2009/1/26 Andrew Brunner andrew.t.brun...@gmail.com:
 Actually, I'm thinking you're creating a memory problem with using
 fillchar and passing the pointer to the dynarray instead of the
 element.  Try using FillChar with the zero element again...  The
 reason why the construction maybe failing is b/c a potential memory
 leak created by not using the zero element of the dynarray you are
 using.

So you're saying that if I miss out the Fillchar function, it will
work a expected? Apart from the fact that my array won't be filled
with spaces, of course.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Unicode data

2009-01-26 Thread Mattias Gaertner
On Mon, 26 Jan 2009 15:33:41 +0100
theo x...@theo.ch wrote:

 In the charactermapdlg.pas unit (IDE) we use some code from
 unicode.org. Since we should add unicode.org copyright notice to this
 file, I've created a patch for this file:
 http://www.theo.ch/lazarus/mypatchlic.diff

What parts are form unicode.org?

 
 Vincent suggested to put the relevant code into a separate unit of
 the LCL. 

Good idea.


 Now Im asking if /lcl is the right place and what would the
 best name for it?
 unicodedata.pas
 lclunicodedata.pas
 lunicodedata.pas

lclunicodedata.pas


 Any thoughts about this?
 Is there currently more code in the LCL which should go there?

I don't know any.

Mattias
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TFileStream

2009-01-26 Thread Michael Van Canneyt


On Mon, 26 Jan 2009, Dave Coventry wrote:

 2009/1/26 Andrew Brunner andrew.t.brun...@gmail.com:
  Actually, I'm thinking you're creating a memory problem with using
  fillchar and passing the pointer to the dynarray instead of the
  element.  Try using FillChar with the zero element again...  The
  reason why the construction maybe failing is b/c a potential memory
  leak created by not using the zero element of the dynarray you are
  using.
 
 So you're saying that if I miss out the Fillchar function, it will
 work a expected? Apart from the fact that my array won't be filled
 with spaces, of course.

That is what he is saying, yes.

Michael.

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


Re: [Lazarus] Where to place definition of a record?

2009-01-26 Thread Andreas Berger

But unfortunately an object is not totally record compatible. It can not 
do this:

foo = object
  a : integer
  case boolean of
true:{...};
fasle: {...}
  end;
  procedure b;
end;

Martin Friebe wrote:
 try

 type
   foo = Object
  a : integer;
  Procedure b;
   end;



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


 Nenhum virus encontrado nessa mensagem recebida.
 Verificado por AVG - http://www.avgbrasil.com.br 
 Versao: 8.0.176 / Banco de dados de virus: 270.10.13/1914 - Data de 
 Lancamento: 1/24/2009 8:40 PM

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


Re: [Lazarus] Colors and Themes

2009-01-26 Thread Paul Ishenin
Hans-Peter Diettrich wrote:

 You're right, it are other cl... colors that are deprecated. The lack of 
 documentation sucks :-(
 
 Are the system colors always mapped to the current standards, including 
 themes?

Well, with themes some controls are often painted using bitmaps instead 
of colors and clBtnFace (for example) is not a correct color to draw a 
button on themed XP or vista. But if you turn themes off all standard 
buttons will be painted using clBtnFace.

To draw using themes we have a class TThemeServices though only a small 
set of controls and their parts is implemented at moment for qt, gtk and 
carbon. But it is possible to implement more if needed.

Best regards,
Paul Ishenin.

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


[Lazarus] Debugger Options raises Access Violation

2009-01-26 Thread Bahman Movaqar
Whenever I click on Environment-Deubegger Options, an Access Violation 
error message is popped up and Lazarus shuts down.  The log on console is:

 Gtk2_ItemSelectionChanged  ItemCache=nil lvSignals
 Gtk2_ItemSelectionChanged  ItemCache=nil lvSignals
 Gtk2_ItemSelectionChanged  ItemCache=nil lvSignals
 Gtk2_ItemSelectionChanged  ItemCache=nil lvSignals
TApplication.HandleException Access violation
  Stack trace:
  $34A30CFE
  $34876F1C

I'm using:
 Lazarus 0.9.26 (GTK2)
 FPC 2.2.2
 FreeBSD 7.0

I'd appreciate any hint/idea.

TIA,

-- 
Bahman Movaqar (http://www.bahmanm.com)
PGP KeyID: 0x14D3D9BF (keyserver2.pgp.com)

Whenever there are great virtues, it's a sure sign something's wrong.
-Bertolt Brecht


signature.asc
Description: This is a digitally signed message part.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Free Open Source Diagram Components for Lazarus?

2009-01-26 Thread Thierry Coq
Yes, I know about StarUML, it's a good tool, but it's dead: little work 
has been done since 2005. And the code base is so huge, it seems 
daunting to port the code base to Lazarus as is.

What license is it delivered with?

BR
Thierry

Alex Kovacic wrote:
 -

 try StarULM (made with delphi?)

 http://staruml.sourceforge.net/en/



 At 02:12 AM 26/01/2009 -0200, you wrote:
   
 On Sun, Jan 25, 2009 at 7:41 PM, Thierry Coq t...@free.fr wrote:
 
 I'm looking for a diagramming components for Lazarus, to draw circles,
 rectangles, and connectors between them that are resized or moved when
 the components are moved. This would be used to create graph editors,
 for example for designing dynamic models.

 Do you have ideas about a mature component I could use for this purpose?
 I've been thinking about using GLScene as a 2D layer, but it seems to be
 overkill for my purpose (although 3D diagrams... hum.)

 Best regards,
 Thierry
   
 If GPL is an option, ESS-Model may be of some use:
 http://essmodel.sourceforge.net/

 Best regards,
 Flávio

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

 
 Alex Kovacic(PTC,HPTC,MHGSA,BSc,MSc)
 SENIOR SCIENTICT,
 FISH Lab
 CYTOGENETICS UNIT,
 SEALS,Level 4, Campus Centre,
 Prince Of Wales Hospital,
 RANDWICK, NSW, 2031,
 AUSTRALIA,
 Tel: (61) (02) 9382 9168
 Fax: (61) (02) 9382 9157
 email1:a.kova...@unsw.edu.au
 email2:kovac...@sesahs.nsw.gov.au


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


   

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


Re: [Lazarus] Debugger Options raises Access Violation

2009-01-26 Thread Bahman Movaqar
On 87/11/08, 08:57 Bahman Movaqar wrote:
 Whenever I click on Environment-Deubegger Options, an Access Violation
 error message is popped up and Lazarus shuts down.  The log on console is:

  Gtk2_ItemSelectionChanged  ItemCache=nil lvSignals
  Gtk2_ItemSelectionChanged  ItemCache=nil lvSignals
  Gtk2_ItemSelectionChanged  ItemCache=nil lvSignals
  Gtk2_ItemSelectionChanged  ItemCache=nil lvSignals
 TApplication.HandleException Access violation
   Stack trace:
   $34A30CFE
   $34876F1C

 I'm using:
  Lazarus 0.9.26 (GTK2)
  FPC 2.2.2
  FreeBSD 7.0

Solved.

Built Lazarus with GTK and it works fine.

-- 
Bahman Movaqar (http://www.bahmanm.com)
PGP KeyID: 0x14D3D9BF (keyserver2.pgp.com)

Honesty is praised, and left to starve.
-Juvenil


signature.asc
Description: This is a digitally signed message part.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Colors and Themes

2009-01-26 Thread Paul Ishenin
Graeme Geldenhuys wrote:
 Does clBtnFace update to the correct colour if you apply a new windows
 colour scheme (without quitting the application)?
 
 eg:
 *  using default colour scheme in windows (usual grey colours).
 *  start my app and button is painted in grey (clBtnFace).
 *  I change the colour scheme to pink/purple (I wouldn't really do that. 
 wink.)
 *  All windows apps adjust their colours as well. Does LCL apps do the same?

If you are about lcl-win32 then yes. When LCL process clBtnFace it calls 
winapi function GetSysColor. Ofcource there can be problems with already 
created brushes, pens and fonts which was created before theme change.

Best regards,
Paul Ishenin.

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


Re: [Lazarus] Colors and Themes

2009-01-26 Thread Graeme Geldenhuys
On Tue, Jan 27, 2009 at 9:24 AM, Paul Ishenin i...@kmiac.ru wrote:

 If you are about lcl-win32 then yes. When LCL process clBtnFace it calls
 winapi function GetSysColor. Ofcource there can be problems with already
 created brushes, pens and fonts which was created before theme change.

OK, thanks Paul.


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus