Re: [lazarus] New bitmap :-)

2007-12-07 Thread Bee

You will make the machine stalled ! :-)


I'm sorry. I just can't hold my hands to share my ideas after looking at 
your great job. :) Wish I could help. :(


-Bee-

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

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


[lazarus] Wrongly option ... contains a not existing directory warning

2007-12-07 Thread Andrey Gusev
The message The ... option ... contains a not existing directory, 
wrongly say about my really existient directories.
That occurs when i press OK button in search path editor dialog (be 
called from project compiler options),
sayed about totally all directories from the path, so that warning is 
useless to find directory mistyping.

Cut trailing slash forgotten (before existence checking) ?

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


Re: [lazarus] Wrongly option ... contains a not existing directory warning

2007-12-07 Thread Andrey Gusev
* Mattias Gaertner [EMAIL PROTECTED] [Fri, 7 Dec 2007 13:13:40 
+0100]:

Can you help me finding out why it does not work under windows?

Yes, sure, moreover is friday today.
i will post...

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


Re: [lazarus] directorycacher, directory existence check

2007-12-07 Thread Andrey Gusev
* Mattias Gaertner [EMAIL PROTECTED] [Fri, 7 Dec 2007 13:29:04 
+0100]:

On Fri, 07 Dec 2007 14:40:43 +0300
Instead of IncludeTrailingPathDelimiter there is already
AppendPathDelim. Probably you have a old file because of a svn
conflict. Remove the file and update svn, or use svn revert.


sorry, this patch given from my home computer, in that fileprocs is 
obsolete,
but directorycacher is identical to current svn, so patch, partly, is 
applicable.



The 'if not DirectoryExists(Directory)' does not work on automounted
directories. You must use FindFirst.


I will explore, may be differenced directory non-existence from empty 
directory, with FindFirst.


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


[lazarus] New Logo

2007-12-07 Thread Guadagnini David

Boys... the new logo is fantastic!
Now is better use the same image for about box.
begin:vcard
fn:David Guadagnini
n:Guadagnini;David
org:Biotecnica Instruments S.p.A.;RD
adr:;;Via Licenza 18;Roma;RM;00133;Italy
email;internet:[EMAIL PROTECTED]
title:Software architet
tel;work:+39064112616
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [lazarus] Wrongly option ... contains a not existing directory warning

2007-12-07 Thread Andrey Gusev
* Mattias Gaertner [EMAIL PROTECTED] [Fri, 7 Dec 2007 13:13:40 
+0100]:

On Fri, 07 Dec 2007 12:58:49 +0300
Andrey Gusev [EMAIL PROTECTED] wrote:

 The message The ... option ... contains a not existing directory,
 wrongly say about my really existient directories.
 That occurs when i press OK button in search path editor dialog 

(be

 called from project compiler options),
 sayed about totally all directories from the path, so that warning 

is

 useless to find directory mistyping.
 Cut trailing slash forgotten (before existence checking) ?

ide/compileroptionsdlg.pp
function TfrmCompilerOptions.CheckSearchPath


It not worked with relative paths (i'm forgot, whose that advice, to use 
relative paths, your, or may be Vincent Snijders).
Whereas OK button, pressed on itself compiler options dialog (not 
paths editor !), give clean result.

It is two different existence checking mechanics ?

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


Re: [lazarus] directorycacher, directory existence check

2007-12-07 Thread Mattias Gaertner
On Fri, 07 Dec 2007 17:14:16 +0300
Andrey Gusev [EMAIL PROTECTED] wrote:

 * Mattias Gaertner [EMAIL PROTECTED] [Fri, 7 Dec 2007
 14:25:10 +0100]:
  On Fri, 07 Dec 2007 16:07:05 +0300
  Andrey Gusev [EMAIL PROTECTED] wrote:
 
  It should not raise an exception, because this is a low level
  function and it is allowed to search in non existing directories.
  For example:
  Packages create their output directories on the fly and these output
  directories are in the search paths of other packages.
 
 
 That is, about what said primary specification of UpdateListing()
 isn't known to me, earlier.
 Now, i know something such.
 I'ill see, what i can do.
 Case, with non-existent directory in paths, is infrequent, seemingly.
 But, with me is occured, so, it shouldn't abandoned.

That's why I added a check to the compiler options dialog and to the
'Test'.

Mattias

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


Re: [lazarus] directorycacher, directory existence check

2007-12-07 Thread Andrey Gusev
* Mattias Gaertner [EMAIL PROTECTED] [Fri, 7 Dec 2007 14:25:10 
+0100]:

On Fri, 07 Dec 2007 16:07:05 +0300
Andrey Gusev [EMAIL PROTECTED] wrote:

It should not raise an exception, because this is a low level function
and it is allowed to search in non existing directories.
For example:
Packages create their output directories on the fly and these output
directories are in the search paths of other packages.



That is, about what said primary specification of UpdateListing() isn't 
known to me, earlier.

Now, i know something such.
I'ill see, what i can do.
Case, with non-existent directory in paths, is infrequent, seemingly.
But, with me is occured, so, it shouldn't abandoned.

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


Re: [lazarus] About project saving (project paths options)

2007-12-07 Thread Mattias Gaertner
On Thu, 06 Dec 2007 19:13:27 +0300
Andrey Gusev [EMAIL PROTECTED] wrote:

 That's notified:
 Correction of mistyped path (Other unit files box in project
 compiler options),
 affect to IDE behavoiur only after saving project,

Changes to the unit path are committed, when pressing Ok in the dialog.


 so will be good
 have button
 Save options (with sense that it will affects to units searching)
 on project
 compiler options dialog, already presented Load/Save button may be 
 used to that ?

The Load/Save buttons are not yet documented. 
I can't document it myself, because my current dyn ip is blacklisted.
Maybe I can do it tomorrow.


Mattias

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


Re: [lazarus] Wrongly option ... contains a not existing directory warning

2007-12-07 Thread Mattias Gaertner
On Fri, 07 Dec 2007 18:33:52 +0300
Andrey Gusev [EMAIL PROTECTED] wrote:

 * Mattias Gaertner [EMAIL PROTECTED] [Fri, 7 Dec 2007
 13:13:40 +0100]:
  On Fri, 07 Dec 2007 12:58:49 +0300
  Andrey Gusev [EMAIL PROTECTED] wrote:
 
   The message The ... option ... contains a not existing
   directory, wrongly say about my really existient directories.
   That occurs when i press OK button in search path editor dialog 
 (be
   called from project compiler options),
   sayed about totally all directories from the path, so that
   warning 
 is
   useless to find directory mistyping.
   Cut trailing slash forgotten (before existence checking) ?
 
  ide/compileroptionsdlg.pp
  function TfrmCompilerOptions.CheckSearchPath
 
 It not worked with relative paths (i'm forgot, whose that advice, to
 use relative paths, your, or may be Vincent Snijders).

It does work with relative paths.
But relative paths are context sensitive.
Normally the IDE works internally only with absolute paths. The only
exceptions are paths from unsaved project/package/files.
So, either you didn't save the project/package yet and then a relative
path makes no sense.
Or a function in the IDE forgot to make the path absolute before
passing it to the function.


 Whereas OK button, pressed on itself compiler options dialog (not 
 paths editor !), give clean result.
 It is two different existence checking mechanics ?

Yes.
The first (leaving the path editor) is a simple heuristic.
The second (leaving the compiler dialog) can really resolve all macros
and relationships.


Mattias

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


Re: [lazarus] directorycacher, directory existence check

2007-12-07 Thread Mattias Gaertner
On Fri, 07 Dec 2007 14:40:43 +0300
Andrey Gusev [EMAIL PROTECTED] wrote:

 There my modified patch to directory existence check, this variant
 more aestetic,
 and in addition - keeps primary UpdateListing() formal specification 
 untouched
 (though to that we may spit, because UpdateListing() currently used
 only within directorycacher).
 It must be useful, besides directory existence check in compiler
 options dialog, because
 directory can be renamed outside of design process (imperceptibly to 
 IDE).
 
 With this correction, IDE bring message about directory non-existence 
 only with first
 attempt to non-existent directory access, and unit not found (as 
 before) with next attempts.

Instead of IncludeTrailingPathDelimiter there is already
AppendPathDelim. Probably you have a old file because of a svn
conflict. Remove the file and update svn, or use svn revert.

The 'if not DirectoryExists(Directory)' does not work on automounted
directories. You must use FindFirst.


Mattias

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


Re: [lazarus] Include paths options inheritance details question

2007-12-07 Thread Mattias Gaertner
On Fri, 07 Dec 2007 14:12:12 +0300
Andrey Gusev [EMAIL PROTECTED] wrote:

 * Mattias Gaertner [EMAIL PROTECTED] [Wed, 5 Dec 2007
 20:09:59 +0100]:
  On Wed, 05 Dec 2007 14:45:10 +0300
  Andrey Gusev [EMAIL PROTECTED] wrote:
 
   May i don't prescription project's include path if it already
   prescribed to required package ?
   Have differences of prescription include directory to required 
 module
   and to project directly,
   in sense that, in what sources (only that package's sources or
   project's sources too) i may
   use such directory as included from which?
 
  Can you give an example?
 
 package1, have incl1 in -Fi tunable
 project2, have package1 in requirements
 may i include files, located in incl1, to project2's sources ?

What is in the include files?


Mattias

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


Re: [lazarus] Wrongly option ... contains a not existing directory warning

2007-12-07 Thread Mattias Gaertner
On Fri, 07 Dec 2007 12:58:49 +0300
Andrey Gusev [EMAIL PROTECTED] wrote:

 The message The ... option ... contains a not existing directory, 
 wrongly say about my really existient directories.
 That occurs when i press OK button in search path editor dialog (be 
 called from project compiler options),
 sayed about totally all directories from the path, so that warning is 
 useless to find directory mistyping.
 Cut trailing slash forgotten (before existence checking) ?

It does:

FileProcs:

function DirPathExists(DirectoryName: string): boolean;
begin
  Result:=Sysutils.DirectoryExists(ChompPathDelim(DirectoryName));
end;

And cache:

function TFileStateCache.FindFile(const Filename: string;
  CreateIfNotExists: boolean): TFileStateCacheItem;
begin
  TrimmedFilename:=ChompPathDelim(TrimFilename(Filename));


Can you help me finding out why it does not work under windows?
It starts here:

ide/compileroptionsdlg.pp
function TfrmCompilerOptions.CheckSearchPath


Mattias

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


Re: [lazarus] Include paths options inheritance details question

2007-12-07 Thread Andrey Gusev
* Mattias Gaertner [EMAIL PROTECTED] [Fri, 7 Dec 2007 14:11:29 
+0100]:

On Fri, 07 Dec 2007 15:53:02 +0300
Andrey Gusev [EMAIL PROTECTED] wrote:

 * Mattias Gaertner [EMAIL PROTECTED] [Fri, 7 Dec 2007
 13:16:44 +0100]:
  On Fri, 07 Dec 2007 14:12:12 +0300
  Andrey Gusev [EMAIL PROTECTED] wrote:
 
   package1, have incl1 in -Fi tunable
   project2, have package1 in requirements
   may i include files, located in incl1, to project2's sources ?
 
  What is in the include files?

 You conduction to that, whatever inc-file may be turned into
 pas-file, i.e. unit ?
 But, i try to clarify what i can do with lazarus, and what i can't.
 Answer is no, implied ?

Answer is yes: [...]


Thank, i will use it.

But can only think of one case, where it makes sense (a little bit): 

An
include file containing a lot of IFDEFs/Defines for the various 

compilers.

With that, each (clever) progman must rake himself (for C-programmers it 
is ordinary rakes).
But, i wish look, have fpc/lazarus compilers gcc's -E analog in 
options...


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


Re: [lazarus] Include paths options inheritance details question

2007-12-07 Thread Andrey Gusev
* Mattias Gaertner [EMAIL PROTECTED] [Fri, 7 Dec 2007 13:16:44 
+0100]:

On Fri, 07 Dec 2007 14:12:12 +0300
Andrey Gusev [EMAIL PROTECTED] wrote:

 package1, have incl1 in -Fi tunable
 project2, have package1 in requirements
 may i include files, located in incl1, to project2's sources ?

What is in the include files?


You conduction to that, whatever inc-file may be turned into pas-file, 
i.e. unit ?

But, i try to clarify what i can do with lazarus, and what i can't.
Answer is no, implied ?

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


Re: [lazarus] New Logo

2007-12-07 Thread Mattias Gaertner
On Fri, 07 Dec 2007 15:21:29 +0300
Andrey Gusev [EMAIL PROTECTED] wrote:

 * Guadagnini David [EMAIL PROTECTED] [Fri, 07 Dec 2007 12:51:00 
 +0100]:
  Boys... the new logo is fantastic!
 
 Please make to be delayed longer on screen, details cannot be 
 distinguished...

Please not. I want to work.
Maybe the about logo can be enlarged.


Mattias

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


Re: [lazarus] New Logo

2007-12-07 Thread Guadagnini David




Please make to be delayed longer on screen, details cannot be 
distinguished...

...and an good option can be Show Splash screen at the startup

begin:vcard
fn:David Guadagnini
n:Guadagnini;David
org:Biotecnica Instruments S.p.A.;RD
adr:;;Via Licenza 18;Roma;RM;00133;Italy
email;internet:[EMAIL PROTECTED]
title:Software architet
tel;work:+39064112616
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [lazarus] Include paths options inheritance details question

2007-12-07 Thread Andrey Gusev
* Mattias Gaertner [EMAIL PROTECTED] [Wed, 5 Dec 2007 20:09:59 
+0100]:

On Wed, 05 Dec 2007 14:45:10 +0300
Andrey Gusev [EMAIL PROTECTED] wrote:

 May i don't prescription project's include path if it already
 prescribed to required package ?
 Have differences of prescription include directory to required 

module

 and to project directly,
 in sense that, in what sources (only that package's sources or
 project's sources too) i may
 use such directory as included from which?

Can you give an example?


package1, have incl1 in -Fi tunable
project2, have package1 in requirements
may i include files, located in incl1, to project2's sources ?

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


Re: [lazarus] New bitmap :-)

2007-12-07 Thread wile64
Paul,

See not used icon

tcomboedit.png
tpopup.png
tmouse.png
tmenu.png

Regards,

-- 
Laurent.

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


Re: [lazarus] Wrongly option ... contains a not existing directory warning

2007-12-07 Thread Mattias Gaertner
On Fri, 07 Dec 2007 19:16:20 +0300
Andrey Gusev [EMAIL PROTECTED] wrote:

 * Mattias Gaertner [EMAIL PROTECTED] [Fri, 7 Dec 2007
 16:53:59 +0100]:
  On Fri, 07 Dec 2007 18:33:52 +0300
  Andrey Gusev [EMAIL PROTECTED] wrote:
 
  It does work with relative paths.
  But relative paths are context sensitive.
  Normally the IDE works internally only with absolute paths. The only
  exceptions are paths from unsaved project/package/files.
  So, either you didn't save the project/package yet and then a
  relative path makes no sense.
  Or a function in the IDE forgot to make the path absolute before
  passing it to the function.
 
   Whereas OK button, pressed on itself compiler options dialog
   (not paths editor !), give clean result.
   It is two different existence checking mechanics ?
 
  Yes.
  The first (leaving the path editor) is a simple heuristic.
  The second (leaving the compiler dialog) can really resolve all
  macros and relationships.
 
 OK, i will examine all that,
 but you insist, that it Windows-specific problem ?

Naa, just that I have not seen it under linux yet.
If you have an example I can try to reproduce it.


Mattias

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


Re: [lazarus] Include paths options inheritance details question

2007-12-07 Thread Mattias Gaertner
On Fri, 07 Dec 2007 15:53:02 +0300
Andrey Gusev [EMAIL PROTECTED] wrote:

 * Mattias Gaertner [EMAIL PROTECTED] [Fri, 7 Dec 2007
 13:16:44 +0100]:
  On Fri, 07 Dec 2007 14:12:12 +0300
  Andrey Gusev [EMAIL PROTECTED] wrote:
 
   package1, have incl1 in -Fi tunable
   project2, have package1 in requirements
   may i include files, located in incl1, to project2's sources ?
 
  What is in the include files?
 
 You conduction to that, whatever inc-file may be turned into
 pas-file, i.e. unit ?
 But, i try to clarify what i can do with lazarus, and what i can't.
 Answer is no, implied ?

Answer is yes: of course you can inherit include search paths. But
I can only think of one case, where it makes sense (a little bit): An
include file containing a lot of IFDEFs/Defines for the various
compilers.


Mattias

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


[lazarus] directorycacher, directory existence check

2007-12-07 Thread Andrey Gusev
There my modified patch to directory existence check, this variant more 
aestetic,
and in addition - keeps primary UpdateListing() formal specification 
untouched
(though to that we may spit, because UpdateListing() currently used only 
within directorycacher).
It must be useful, besides directory existence check in compiler options 
dialog, because
directory can be renamed outside of design process (imperceptibly to 
IDE).


With this correction, IDE bring message about directory non-existence 
only with first
attempt to non-existent directory access, and unit not found (as 
before) with next attempts.


DirectoryExistenceCheck2.diff.gz
Description: GNU Zip compressed data


Re: [lazarus] New bitmap :-)

2007-12-07 Thread Paul Ishenin



wile64 пишет:

More...

thanks, applied in r13206.

Best regards,
Paul Ishenin.

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


Re: [lazarus] New Logo

2007-12-07 Thread Andrey Gusev
* Mattias Gaertner [EMAIL PROTECTED] [Fri, 7 Dec 2007 13:31:01 
+0100]:

On Fri, 07 Dec 2007 15:21:29 +0300
Andrey Gusev [EMAIL PROTECTED] wrote:

 * Guadagnini David [EMAIL PROTECTED] [Fri, 07 Dec 2007 

12:51:00

 +0100]:
  Boys... the new logo is fantastic!

 Please make to be delayed longer on screen, details cannot be
 distinguished...

Please not. I want to work.
Maybe the about logo can be enlarged.



Moreover, logo layed as png in lazarus images directory.
So, who can't distinguish - please see source.

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


Re: [lazarus] About project saving (project paths options)

2007-12-07 Thread Andrey Gusev
* Mattias Gaertner [EMAIL PROTECTED] [Fri, 7 Dec 2007 15:51:54 
+0100]:

On Thu, 06 Dec 2007 19:13:27 +0300
Andrey Gusev [EMAIL PROTECTED] wrote:

 That's notified:
 Correction of mistyped path (Other unit files box in project
 compiler options),
 affect to IDE behavoiur only after saving project,

Changes to the unit path are committed, when pressing Ok in the 

dialog.

Maybe it is directorycacher reset problem, why unit not found... 
messages stops

ONLY AFTER project saving done ?

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


Re: [lazarus] ShellApi available in Lazarus?

2007-12-07 Thread Mattias Gaertner
On Fri, 7 Dec 2007 09:51:46 -0800
el stamatakos [EMAIL PROTECTED] wrote:

 
 Hi Jeff,
  I would like to be able to call other programs so I usually would
 use the ShellExecute command. How is this done on Lazarus for Linux.
 Thanks 

See
http://wiki.lazarus.freepascal.org/Executing_External_Programs

Mattias

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


RE: [lazarus] ShellApi available in Lazarus?

2007-12-07 Thread el stamatakos

Hi Jeff,
 I would like to be able to call other programs so I usually would use the 
ShellExecute command. How is this done on Lazarus for Linux. Thanks
 
Lefti From: [EMAIL PROTECTED] To: lazarus@miraclec.com Subject: Re: 
[lazarus] ShellApi available in Lazarus? Date: Fri, 7 Dec 2007 00:08:24 -0700 
  - Original Message -  From: el stamatakos To: 
lazarus@miraclec.com ; [EMAIL PROTECTED] Sent: Thursday, December 06, 2007 
17:02 Subject: RE: [lazarus] ShellApi available in Lazarus?Hi John 
Would this work undre Linux?  Thanks  Lefti Date: Fri, 7 Dec 2007 
10:32:47 +1100 From: [EMAIL PROTECTED] To: lazarus@miraclec.com Subject: Re: 
[lazarus] ShellApi available in Lazarus?  el stamatakos wrote: Hi All, is 
the ShellApi available in Lazarus? When I add it into my uses  ShellApi it 
comes back with an error cannot find unit ShellApi.  Thanks  Lefti  See 
if what you want is in the windows unit.  cheers, John 
-  The shell commands are windows only and 
will be found in the windows  unit. I would recommend using the TProcess which 
should work for both  Linux and Windows.  Jeff   
_ To 
unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject 
archives at http://www.lazarus.freepascal.org/mailarchives

Re: [lazarus] New bitmap :-)

2007-12-07 Thread Paul Ishenin



wile64 пишет:

more...

Thanks, commited in r13210.

Btw, with such speed we will have absolutely new component palette in 
next week :)


Best regards,
Paul Ishenin.

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


Re: [lazarus] FPC unit in Lazarus

2007-12-07 Thread John

SteveG wrote:

Steps to use FPC svn build within Lazarus (Windows)

1 - Have a current Lazarus working binary installed (requires access 
to GNU utilitys within the c:\lazarus\fpc\?.?.?\bin\i386-win32 folder)


2 - Set system Path to include c:\lazarus\fpc\?.?.?\bin\i386-win32

3 - Download SVN copy from FPC (http://svn.freepascal.org/svn/fpc/trunk)
  - save to local folder (eg. c:\FPC)

4 - Build FPC
  - cd \FPC
  - make clean all
  - cd compiler
  - make cycle
  - cd ..
  - make install INSTALL_PREFIX=c:\directory\of\your\choice (eg. c:\pp)
  - run c:\pp\fpmkcfg.exe (to create fpc.cfg)

just to be pedantic, fpcmkcfg.exe   (note first c in fpcmkcfg)
Isn't it in the bin\target subdirectory under the INSTALL_PREFIX dir ?
you can run fpcmkcfg.exe -d basepath=c:\directory\of\your\choice,
so you shouldn't have to do 5.
Wouldn't the basepath usually be the grandparent dir of the one in 
which fpcmkcfg lives ? 
In which case, this would be a useful switch to add to fpcmkcfg ?


5 - edit c:\pp\fpc.cfg to incorporate pathings
  - all non-commented lines beginning with '-Fu' and '-FD'
for example
 '-Fu/units/$FPCTARGET/' - -'Fuc:\pp\/units/$FPCTARGET/'

6 - within Lazarus / Enviroment / Environment options
compiler path= c:\pp\fpc.exe
FPC source directory = c:\FPC (as suits your SVN download)
make install also makes a copy of the source under the compiler 
directory, in this case c:\pp.

Is one preferable to the other ?

Make path = c:\lazarus\fpc\?.?.?\bin\i386-win32\make.exe

7 - Do FULL clean and build of Lazarus


NOTES -
I believe these steps worked for me, but needs testing.

Are the GNU utilitys available seperately as a group/package, or a 
list of necessary files available ?

(this would change Steps 1  2  6)


Good Question - I've been meaning to ask this too..
Is it possible to have the fpmkcfg.exe program create the pathing 
within the cfg file (saves editing) - or did I do something wrong here ?

(this would eliminate Step 5 completely)


see above
If somebody(s) could help / verify all of this, I will add it to the 
wiki.



cheers,
John Sunderland

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


Re: [lazarus] A Thread in DLL

2007-12-07 Thread melchiorre caruso

Al Boldi wrote:

melchiorre caruso wrote:
  

procedure TTestLibrary.TestBtnClick(Sender: TObject);
nbsp; LibHandle := LoadLibrary('thread2lib.dll');
CreateMyThreadFunc := GetProcedureAddress(LibHandle,'CreateMyThread');



Make sure your library actually loads...
  
if I use in execute method the source  


if Assigned (FMethod) then
 FMethod;

instead of

if Assigned (FMethod) then
 Synchronize(FMethod);


the method fMethod is called but not synchronized. Then the application 
closes


  

 if Assigned(CreateMyThreadFunc) then



... otherwise it won't enter this.


BTW, can you stop sending html messages?
  

Sorry, it is right now?

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


Re: [lazarus] A Thread in DLL

2007-12-07 Thread Al Boldi
melchiorre caruso wrote:
 procedure TTestLibrary.TestBtnClick(Sender: TObject);br
 beginbr
 nbsp; LibHandle := LoadLibrary('thread2lib.dll');br
 nbsp; CreateMyThreadFunc := GetProcedureAddress(LibHandle,
 'CreateMyThread');br

Make sure your library actually loads...

 nbsp; if Assigned(CreateMyThreadFunc) thenbr

... otherwise it won't enter this.


BTW, can you stop sending html messages?


Thanks!

--
Al

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


[lazarus] Using TProcess on Linux

2007-12-07 Thread el stamatakos


Hi All,
 Not sure if I sent this already.

I am trying to run a command using the TProcess class. I have included it in 
the uses process.

I have the code below

procedure TmainForm.StartCDS();
cmd:string;
AProcess:Tprocess;
begin
Aprocess:=TProcess.Create(nil);

cmd:='cd '+Dir+'/des/'+'v'+Rev+' ;startCDS.csh';
AProcess.CommandLine:=cmd;
Aprocess.Options:=Aprocess.Options+[poWaitOnExit];
AProcess.Execute;
AProcess.Free;
end;

I keep getting an error Project raised Exception class 'EProcess' with message 
Executable not found 

Not sure what I am doing wrong.

Thanks

Lefti

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


Re: [lazarus] Class to store pointer values indexed by pointers

2007-12-07 Thread Mattias Gaertner
On Fri, 07 Dec 2007 22:52:29 -0300
Luiz Americo Pereira Camara [EMAIL PROTECTED] wrote:

 I need a class that stores a pointer value indexed by a pointer. It 
 should provide a way to retrieve the value using the indexed value.
 I know TMap from Maps unit.
 
 There's another class that comes with fpc/lazarus?

unit avglvltree TPointerToPointerTree


Mattias

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


[lazarus] Class to store pointer values indexed by pointers

2007-12-07 Thread Luiz Americo Pereira Camara
I need a class that stores a pointer value indexed by a pointer. It 
should provide a way to retrieve the value using the indexed value.

I know TMap from Maps unit.

There's another class that comes with fpc/lazarus?

Luiz

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


Re: [lazarus] setting file permission at run time for Linux

2007-12-07 Thread Damien Gerard


On Dec 8, 2007, at 12:20 AM, el stamatakos wrote:


Hi All,
 I changed the subject of the e-mail. I would like to create a file  
at run time that has


Owner(Read,write,Execute)
Group(Read,Execute)
Others(Read,Execute)

How do I accomplish this. I created the file using
Assign
Rewrite
CloseFile



You may use both fpChown and fpChmod

http://www.freepascal.org/docs-html/rtl/baseunix/fpchown.html
http://www.freepascal.org/docs-html/rtl/baseunix/fpchmod.html




Thanks
Best,
Lefti




--
Damien Gerard
[EMAIL PROTECTED]

People who used magic without knowing what they were doing usually  
came to a sticky end. All over the entire room, sometimes.

-- (Terry Pratchett, Moving Pictures)





Re: [lazarus] Launch Lazarus under Windows

2007-12-07 Thread Damien Gerard


On Dec 7, 2007, at 10:29 PM, Vincent Snijders wrote:


Damien Gerard schreef:
With the last snapshot or the last revision the launch of  
startlazarus.exe or lazarus.exe produces nothing.

Is it normal (I guess) or I miss something ?



This is 'normal' if you are using fpc 2.2.1:
http://svn.freepascal.org/mantis/view.php?id=10347

If you use another compiler version, use the Lazarus (debug)  
shortcut and send the debug.log in the lazarus directory.




Oh I had an old fpc 2.1.x so I tried the version provided with the  
snapshot too. I will finish my work under my Ubuntu for tonight and  
will try with another fpc version tomorrow.



Vincent




--
Damien Gerard
[EMAIL PROTECTED]

People who used magic without knowing what they were doing usually  
came to a sticky end. All over the entire room, sometimes.

-- (Terry Pratchett, Moving Pictures)



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


RE: TStringList.SaveToFile File permissions

2007-12-07 Thread el stamatakos

Hi ,
 What I am trying to do is create a file and set the permissions to
 
OwnerRead=true
OwnerWrite=true;
OwnerExecute=true;
GroupRead=true;
GroupExecute=true;
OthersExecute=ture;
OthersRead=True;
 
This is for Linux
 
how can I do this at runtime while creating the file.
Thanks
 


From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Re: TStringList.SaveToFile File 
permissionsDate: Fri, 7 Dec 2007 13:05:34 -0700



If you are on a windows system, then this is not a problem.
 
On a Linux system, the permissions will be set when the file is saved.  Owner 
of the file will have R/W while all other should have read only unless your 
system administrator has other definitions on how that is defined.
 
The user saving the file will only be able to save that file into an area in 
which they have permission to write.
 
Jeff 
 

- Original Message - 
From: el stamatakos 
To: Jeff Steinkamp 
Sent: Friday, December 07, 2007 12:17
Subject: TStringList.SaveToFile File permissions
Hi All, I have a TStringList that I add lines to and eventually use the 
SaveToFile to Create the file with all the lines of my StringList in it. How do 
I set the permissions for this file that was created using SaveToFile from a 
TStringList. Thanks Lefti


From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Re: [lazarus] ShellApi available in 
Lazarus?Date: Fri, 7 Dec 2007 11:20:04 -0700


Lefti
 
I use Create Process. Here is a fucntion I use to do that.  Make sure you add 
process to the uses clause of the unit.
 
app -- complete path to the application you want to execute
cmd -- amy command line arguments you whish to add
Wait -- Set to true if you want the procedure to wait for the process to finish.
 
procedure TForm1.ExecNewProcess(app,cmd: string; Wait: Boolean);var   AProcess: 
TProcess;
 
 // This is where our program starts to runbegin   // Now we will create the 
TProcess object, and   // assign it to the var AProcess.   AProcess := 
TProcess.Create(nil);
 try   Aprocess.ShowWindow := swoShowNormal;  
   // Tell the new AProcess what the command to execute is.   // Let's use the 
FreePascal compilerif cmd  '' thenAProcess.CommandLine := app + ' ' 
+ cmd +'' else AProcess.CommandLine := app;
 
   // We will define an option for when the program   // is run. This option 
will make sure that our program   // does not continue until the program we 
will launch   // has stopped running.vv   if wait = 
True then
   AProcess.Options := AProcess.Options + [poWaitOnExit];
 
   // Now that AProcess knows what the commandline is   // we will run it.   
AProcess.Execute;   
   // This is not reached until app stops running.
 finally   AProcess.Free;
 end;
end; 

- Original Message - 
From: el stamatakos 
To: Jeff Steinkamp ; lazarus@miraclec.com 
Sent: Friday, December 07, 2007 10:51
Subject: RE: [lazarus] ShellApi available in Lazarus?
Hi Jeff, I would like to be able to call other programs so I usually would use 
the ShellExecute command. How is this done on Lazarus for Linux. Thanks Lefti 
From: [EMAIL PROTECTED] To: lazarus@miraclec.com Subject: Re: [lazarus] 
ShellApi available in Lazarus? Date: Fri, 7 Dec 2007 00:08:24 -0700   - 
Original Message -  From: el stamatakos To: lazarus@miraclec.com ; [EMAIL 
PROTECTED] Sent: Thursday, December 06, 2007 17:02 Subject: RE: [lazarus] 
ShellApi available in Lazarus?Hi John Would this work undre Linux?  
Thanks  Lefti Date: Fri, 7 Dec 2007 10:32:47 +1100 From: [EMAIL 
PROTECTED] To: lazarus@miraclec.com Subject: Re: [lazarus] ShellApi available 
in Lazarus?  el stamatakos wrote: Hi All, is the ShellApi available in 
Lazarus? When I add it into my uses  ShellApi it comes back with an error 
cannot find unit ShellApi.  Thanks  Lefti  See if what you want is in the 
windows unit.  cheers, John -  The shell 
commands are windows only and will be found in the windows  unit. I would 
recommend using the TProcess which should work for both  Linux and Windows.  
Jeff   _ To 
unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject 
archives at http://www.lazarus.freepascal.org/mailarchives

Re: [lazarus] FPC unit in Lazarus

2007-12-07 Thread SteveG

Steps to use FPC svn build within Lazarus (Windows)

1 - Have a current Lazarus working binary installed (requires access to 
GNU utilitys within the c:\lazarus\fpc\?.?.?\bin\i386-win32 folder)


2 - Set system Path to include c:\lazarus\fpc\?.?.?\bin\i386-win32

3 - Download SVN copy from FPC (http://svn.freepascal.org/svn/fpc/trunk)
  - save to local folder (eg. c:\FPC)

4 - Build FPC
  - cd \FPC
  - make clean all
  - cd compiler
  - make cycle
  - cd ..
  - make install INSTALL_PREFIX=c:\directory\of\your\choice (eg. c:\pp)
  - run c:\pp\fpmkcfg.exe (to create fpc.cfg)

5 - edit c:\pp\fpc.cfg to incorporate pathings
  - all non-commented lines beginning with '-Fu' and '-FD'
for example
 '-Fu/units/$FPCTARGET/' - -'Fuc:\pp\/units/$FPCTARGET/'

6 - within Lazarus / Enviroment / Environment options
compiler path= c:\pp\fpc.exe
FPC source directory = c:\FPC (as suits your SVN download)
Make path= c:\lazarus\fpc\?.?.?\bin\i386-win32\make.exe

7 - Do FULL clean and build of Lazarus


NOTES -
I believe these steps worked for me, but needs testing.

Are the GNU utilitys available seperately as a group/package, or a list 
of necessary files available ?

(this would change Steps 1  2  6)

Is it possible to have the fpmkcfg.exe program create the pathing within 
the cfg file (saves editing) - or did I do something wrong here ?

(this would eliminate Step 5 completely)

If somebody(s) could help / verify all of this, I will add it to the wiki.


Vincent Snijders wrote:

SteveG schreef:


If I can use FPC (svn) and compile myself, is there a method /
application which will extract the necessary files from the FPC build
and create a tree structure to suit Lazarus?

Or is there a reference describing how to edit Lazarus pathings to use
the FPC build directly ?



make install INSTALL_PREFIX=c:\directory\of\your\choice

in the environment options, set the compiler path to 
c:\directory\of\your\choice\fpc.exe


run c:\directory\of\your\choice\fpmkcfg.exe

Optional: write this down in the wiki for future reference after testing.

Vincent

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



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


RE: [lazarus] Launch Lazarus under Windows

2007-12-07 Thread Hess, Philip J
From what I understand, this is because FPC 2.2.1 is broken for now on
Windows. Perhaps you could try the 2.2.0 snapshot.

Thanks.

-Phil


-Original Message-
From: Damien Gerard [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 07, 2007 4:22 PM
To: lazarus@miraclec.com
Subject: [lazarus] Launch Lazarus under Windows


With the last snapshot or the last revision the launch of  
startlazarus.exe or lazarus.exe produces nothing.
Is it normal (I guess) or I miss something ?



--
Damien Gerard
[EMAIL PROTECTED]

People who used magic without knowing what they were doing usually  
came to a sticky end. All over the entire room, sometimes.
 -- (Terry Pratchett, Moving Pictures)



_
 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] Printing a unit from Lazarus

2007-12-07 Thread Antonio Sanguigni

 I have that menu. It is provided by the printers4lazaruside package.


Thanks Vincent, sorry for silly questions but I'm trying to leave
proprietary development environment to stay with fpc / lazarus and sometimes
I get lost !

Antonio
-- 
Antonio Sanguigni alias slapshot
--
GioveLUG (Linux User Group) - http://www.giovelug.org
Edupup (Educational distro) - http://www.edupup.org


[lazarus] Communication between main thread and worker thread

2007-12-07 Thread Antonio Sanguigni
Hi all,

usually under windows my worker thread send a message to main thread with
postmessage function to communicate simple data, such as integer to update
progress percentage of worker thread status.

With Lazarus and with cross-platform windows/Linux development, how is the
way to go ?

Thanks
Antonio

-- 
Antonio Sanguigni alias slapshot
--
GioveLUG (Linux User Group) - http://www.giovelug.org
Edupup (Educational distro) - http://www.edupup.org


Re: [lazarus] wincontrol align bug

2007-12-07 Thread Giuliano Colla

Giuliano Colla ha scritto:
I resumed after some time our core application which I'm trying to 
migrate to Lazarus, and to my dismay I discovered that align doesn't 
work anymore as it should and used to.
I have a panel with a number of widget. Two are top aligned, the others 
are bottom aligned. But setting alTop to one of them, instead of being 
stacked below the two already there, it goes on top of them.
I tried to trace back in revision, and I found that the last that works 
properly is r 12699.


The offending code is in wincontrol.inc, procedure 
TWinControl.CreateControlList


Sorry a typo. It's TWinControl.CreateControlAlignList, function InsertBefore

 where the implementation of r 12699
provides the correct alignement, while the implementation of r 12700 
does not.


Just replacing the expressions in case AAlign with the previous ones 
the behavior becomes correct again.


I don't submit a patch, because I'm unsure of other implications.

Regards,

Giuliano





--
Giuliano Colla

Whenever people agree with me, I always feel I must be wrong (O. Wilde)

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


Re: [lazarus] New bitmap :-)

2007-12-07 Thread Damien Gerard


On Dec 7, 2007, at 5:57 PM, wile64 wrote:


more...


Honestly, your bitmaps roxxs.




--  
Laurent.




--
Damien Gerard
[EMAIL PROTECTED]

People who used magic without knowing what they were doing usually  
came to a sticky end. All over the entire room, sometimes.

-- (Terry Pratchett, Moving Pictures)



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


Re: [lazarus] Wrongly option ... contains a not existing directory warning

2007-12-07 Thread Andrey Gusev
* Mattias Gaertner [EMAIL PROTECTED] [Fri, 7 Dec 2007 16:53:59 
+0100]:

On Fri, 07 Dec 2007 18:33:52 +0300
Andrey Gusev [EMAIL PROTECTED] wrote:

It does work with relative paths.
But relative paths are context sensitive.
Normally the IDE works internally only with absolute paths. The only
exceptions are paths from unsaved project/package/files.
So, either you didn't save the project/package yet and then a relative
path makes no sense.
Or a function in the IDE forgot to make the path absolute before
passing it to the function.

 Whereas OK button, pressed on itself compiler options dialog (not
 paths editor !), give clean result.
 It is two different existence checking mechanics ?

Yes.
The first (leaving the path editor) is a simple heuristic.
The second (leaving the compiler dialog) can really resolve all macros
and relationships.


OK, i will examine all that,
but you insist, that it Windows-specific problem ?

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


Re: [lazarus] New bitmap :-)

2007-12-07 Thread wile64
more...
-- 
Laurent.

My Components: http://wiki.lazarus.freepascal.org/Wile64
French Forum : http://lazforum-fr.tuxfamily.org/index.php
attachment: tidedialoglayoutstorage.pngattachment: tinipropstorage.pngattachment: txmlconfig.pngattachment: txmlpropstorage.png

Re: [lazarus] Using TProcess on Linux

2007-12-07 Thread Andrew Haines
el stamatakos wrote:
 
 Hi All,
  Not sure if I sent this already.
 
 I am trying to run a command using the TProcess class. I have included it in 
 the uses process.
 
 I have the code below
 
 procedure TmainForm.StartCDS();
 cmd:string;
 AProcess:Tprocess;
 begin
 Aprocess:=TProcess.Create(nil);
 
 cmd:='cd '+Dir+'/des/'+'v'+Rev+' ;startCDS.csh';
 AProcess.CommandLine:=cmd;
 Aprocess.Options:=Aprocess.Options+[poWaitOnExit];
 AProcess.Execute;
 AProcess.Free;
 end;
 
 I keep getting an error Project raised Exception class 'EProcess' with 
 message Executable not found 
 
 Not sure what I am doing wrong.
 

I see a couple of problems.

First: TProcess is not a shell/terminal. So using things like |, ,
, ; etc mean nothing.

Second: As a result of the first reason, trying to execute a script (I
assume that startCDS.csh is a script) will not work since it's not
truly executable. You need to execute the interpreter with the script as
it's argument.

Something like this should work:

procedure TmainForm.StartCDS();
var
  cmd:string;
  AProcess:Tprocess;
begin
  AProcess:=TProcess.Create(nil);

  SetCurrentDir(Dir + 'des/v' + Rev);

  cmd:='/bin/sh startCDS.csh'; // is it a csh script or will sh work?
  AProcess.CommandLine:=cmd;
  Aprocess.Options:=Aprocess.Options+[poWaitOnExit];
  AProcess.Execute;
  AProcess.Free;
end;


Happy coding,

Andrew

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


Re: [lazarus] Class to store pointer values indexed by pointers

2007-12-07 Thread Luiz Americo Pereira Camara

Mattias Gaertner wrote:

On Fri, 07 Dec 2007 22:52:29 -0300
Luiz Americo Pereira Camara [EMAIL PROTECTED] wrote:

  
I need a class that stores a pointer value indexed by a pointer. It 
should provide a way to retrieve the value using the indexed value.

I know TMap from Maps unit.

There's another class that comes with fpc/lazarus?



unit avglvltree TPointerToPointerTree

  


Many thanks.

Luiz

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


[lazarus] Printing a unit from Lazarus

2007-12-07 Thread Antonio Sanguigni
Hi all,

is there a way to print a unit from Lazarus ? I was not able to find a File
| Print option.

Thanks.
Antonio

-- 
Antonio Sanguigni alias slapshot
--
GioveLUG (Linux User Group) - http://www.giovelug.org
Edupup (Educational distro) - http://www.edupup.org


[lazarus] setting file permission at run time for Linux

2007-12-07 Thread el stamatakos

Hi All,
 I changed the subject of the e-mail. I would like to create a file at run time 
that has 
 
Owner(Read,write,Execute)
Group(Read,Execute)
Others(Read,Execute)
 
How do I accomplish this. I created the file using
Assign
Rewrite
CloseFile
 
 
Thanks
Best,
Lefti

Re: [lazarus] Launch Lazarus under Windows

2007-12-07 Thread Vincent Snijders

Damien Gerard schreef:


With the last snapshot or the last revision the launch of 
startlazarus.exe or lazarus.exe produces nothing.

Is it normal (I guess) or I miss something ?



This is 'normal' if you are using fpc 2.2.1:
http://svn.freepascal.org/mantis/view.php?id=10347

If you use another compiler version, use the Lazarus (debug) shortcut 
and send the debug.log in the lazarus directory.


Vincent

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


Re: [lazarus] wincontrol align bug

2007-12-07 Thread Andrew Haines
Giuliano Colla wrote:
 I resumed after some time our core application which I'm trying to
 migrate to Lazarus, and to my dismay I discovered that align doesn't
 work anymore as it should and used to.
 I have a panel with a number of widget. Two are top aligned, the others
 are bottom aligned. But setting alTop to one of them, instead of being
 stacked below the two already there, it goes on top of them.
 I tried to trace back in revision, and I found that the last that works
 properly is r 12699.
 
 The offending code is in wincontrol.inc, procedure
 TWinControl.CreateControlList where the implementation of r 12699
 provides the correct alignement, while the implementation of r 12700
 does not.
 
 Just replacing the expressions in case AAlign with the previous ones
 the behavior becomes correct again.
 
 I don't submit a patch, because I'm unsure of other implications.


A workaround I've found is to set the first component's .Top property to
0 and then then next component down to 10 and so on. Using this in
combination of alTop works for me.

Andrew

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


Re: [lazarus] A Thread in DLL

2007-12-07 Thread Al Boldi
melchiorre caruso wrote:
 !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN

Can you post text only messages?

 ttI try to use CheckSyncronize() in the application loop but without
 result;br
 The function synchronize appears to be broken and, br
 the event on-terninate not be called. I do not know the reason.br

Can you post example-code?


Thanks!

--
Al

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


Re: [lazarus] A Thread in DLL

2007-12-07 Thread melchiorre caruso





Graeme Geldenhuys wrote:
On 06/12/2007, melchiorre caruso
[EMAIL PROTECTED] wrote:
  
  Hi everybody,
I have a question about to Thread and DLL library.
Is it possible to create a function that has as result
a thread, and insert it into a dll?


The issue is probably cause by the same problem I had with threads in
console or fpGUI based apps. CheckSynchronize() must be called
somewhere in the application loop, but then again I don't use
application DLL's so I wouldn't really know.
  
I try to use CheckSyncronize() in the application loop but without
result;
The function synchronize appears to be broken and, 
the event on-terninate not be called. I do not know the reason.

Thanks,

Melchiorre Caruso





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


[lazarus] Launch Lazarus under Windows

2007-12-07 Thread Damien Gerard


With the last snapshot or the last revision the launch of  
startlazarus.exe or lazarus.exe produces nothing.

Is it normal (I guess) or I miss something ?



--
Damien Gerard
[EMAIL PROTECTED]

People who used magic without knowing what they were doing usually  
came to a sticky end. All over the entire room, sometimes.

-- (Terry Pratchett, Moving Pictures)



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


Re: [lazarus] Printing a unit from Lazarus

2007-12-07 Thread Vincent Snijders

Antonio Sanguigni schreef:

Hi all,

is there a way to print a unit from Lazarus ? I was not able to find a 
File | Print option.




I have that menu. It is provided by the printers4lazaruside package.

Vincent

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


[lazarus] wincontrol align bug

2007-12-07 Thread Giuliano Colla
I resumed after some time our core application which I'm trying to 
migrate to Lazarus, and to my dismay I discovered that align doesn't 
work anymore as it should and used to.
I have a panel with a number of widget. Two are top aligned, the others 
are bottom aligned. But setting alTop to one of them, instead of being 
stacked below the two already there, it goes on top of them.
I tried to trace back in revision, and I found that the last that works 
properly is r 12699.


The offending code is in wincontrol.inc, procedure 
TWinControl.CreateControlList where the implementation of r 12699 
provides the correct alignement, while the implementation of r 12700 
does not.


Just replacing the expressions in case AAlign with the previous ones 
the behavior becomes correct again.


I don't submit a patch, because I'm unsure of other implications.

Regards,

Giuliano


--
Giuliano Colla

Whenever people agree with me, I always feel I must be wrong (O. Wilde)

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