[lazarus] icons for lpr and lpi

2006-09-14 Thread Vincent Snijders

Hi,

In issue 1998 ( http://www.freepascal.org/mantis/view.php?id=1998 ) it 
is suggested to have different icons for different file types in the 
windows explorer.


I think this is a good idea, but I am not a good icon designer. Is there 
 somebody on this list who wants to give it a try?


Vincent

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


Re: [lazarus] VersionInfo - Question on saving the main source file

2006-09-14 Thread Michael Van Canneyt



On Wed, 13 Sep 2006, Mattias Gaertner wrote:


On Wed, 13 Sep 2006 20:54:05 +0200
Jouke Rensma [EMAIL PROTECTED] wrote:


Mattias,

When you use the VersionInfo for the first time, the main source is
not updated with a $R projectname.res} line. The code as it is now,
updates this using the codetools. However, this happens after all
files have been saved for compilation. This results in that main
source is updated, but the compiler uses the file from disk without
the updated line.

Saving the file can be easily done using TCodeBuffer.SaveToFile.
However this does not reset the modified flag. Result will be that
lazarus asks to save the file, while the file on disk is already up
to date.

I searched trough the codetools, but could not find out how to solve
this problem. What should I use???


The $R should be added, when the project is created or the version info
is enabled (when clicking the ok button of the project options). Not on
build and not on saving project.

BTW,
How do you make sure, that the $R is only used under windows?
If you create a project under windows with version info and compile it
under linux, the same source must compile without changing the source.
With {$IFDEF MSWindows}{$R projectname.res}{$ENDIF} ?


Isn't it better to do:

{$IFDEF LazarusVersionInfo}{$R projectname.res}{$ENDIF}

The IDE can define this whenever it is necessary.

Michael.

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


Re: [lazarus] icons for lpr and lpi

2006-09-14 Thread Tiziano_mk

Vincent Snijders ha scritto:

Hi,

In issue 1998 ( http://www.freepascal.org/mantis/view.php?id=1998 ) it 
is suggested to have different icons for different file types in the 
windows explorer.


I think this is a good idea, but I am not a good icon designer. Is there 
 somebody on this list who wants to give it a try?


Vincent

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



some silly comments:

from issue 1998:
quote
I want to open my project. I hit file and open and change to the correct 
directory. It's difficult to tell which file is the project file because 
the *.LPI and *.LPR files have the same icon. Could you please change this?

quote

But if I wish to open my project, I hit Project -- Open Project (or 
better ctrl-F11) not File -- Open. With the former I only see the *.lpr 
files and all is ok.


One other observation is that the icon association to .lpi file is 
redundant and could be removed.


Anyway, it's true that lazarus icons are not very visible and a 
re-styling could be promoted, maybe with a contest.


What about the format? .ICO or .XPM?
What about the color depth? 8BPP or 24BPP?

bye
tiziano

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


[lazarus] Code completion features missing or not ?

2006-09-14 Thread Michael Van Canneyt


Hi,

2 feature requests:

First:
The following has been bugging me since day 1 of Lazarus:

Code completion for methods works from interface - implementation.

However, in Delphi, the following also works:

Given the form declaration:

  TForm1 = class(TForm)
  private
{ private declarations }
  public
{ public declarations }
  end;

I can type the following in the implementation section:

Procedure TForm1.DoSomething;

begin
end;

I can place the cursor anywhere in the DoSomething method, and press 
Ctrl-Shift-C.
The IDE then places
  Procedure DoSomething;
In the form declaration (in the private section).

This does not work in Lazarus. Could this be added ?

In practice in Delphi, I use this method infinitely more often than the 
Interface - implementation way; I really miss this.


Second:

if you add the 'Gexperts' to the Delphi IDE (highly recommended) then
  'ALT Gr'-Arrow Up 
or
  'ALT Gr'-Arrow Down 
('Alt Gr' is the right Alt key) moves to the previous/next occurrence of

the word/identifier you are standing on.

This is also something which I would like to see in the Lazarus IDE, as 
I also use this quite a lot.




Michael.

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


Re: [lazarus] icons for lpr and lpi

2006-09-14 Thread Mattias Gaertner
On Thu, 14 Sep 2006 11:32:19 +0200
Tiziano_mk [EMAIL PROTECTED] wrote:

 Vincent Snijders ha scritto:
  Hi,
  
  In issue 1998 ( http://www.freepascal.org/mantis/view.php?id=1998 )
  it is suggested to have different icons for different file types in
  the windows explorer.
  
  I think this is a good idea, but I am not a good icon designer. Is
  there somebody on this list who wants to give it a try?
  
  Vincent
  
  _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
  
 
 some silly comments:
 
 from issue 1998:
 quote
 I want to open my project. I hit file and open and change to the
 correct directory. It's difficult to tell which file is the project
 file because the *.LPI and *.LPR files have the same icon. Could you
 please change this? quote
 
 But if I wish to open my project, I hit Project -- Open Project (or 
 better ctrl-F11) not File -- Open. With the former I only see the
 *.lpr files and all is ok.
 
 One other observation is that the icon association to .lpi file is 
 redundant and could be removed.
 
 Anyway, it's true that lazarus icons are not very visible and a 
 re-styling could be promoted, maybe with a contest.
 
 What about the format? .ICO or .XPM?

All and more. Every platform has its own icon format.


 What about the color depth? 8BPP or 24BPP?

I leave this question for the .ico producers, since .xpm does not care.

Mattias

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


Re: [lazarus] The spirit lost of Borland

2006-09-14 Thread m2

Bisma Jayadi a écrit :

Is it you who sent a post yesterday, saying the Turbo Delphi IDE
is better than the Lazarus one?


I didn't mean to say that Delphi IDE is better than Lazarus in ALL 
aspects. I'm just trying to be fair... each has its own good and bad. I 
think both need to learn from each other. For example... Delphi's editor 
and debugger, IMO is better than Lazarus,


Yes but most of the problems come from the fact that (besides Lazarus
and FPC peoples work for free during their free time) Lazarus/FPC is
multi-processors and multi-OS's whereas Delphi is only multi-Microsoft.

 but Lazarus' include file
handling is better than Delphi, etc. etc. I know this because I use both 
of them and I like both of them as well.



First, on my system (Win XP Pro SP2) it was impossible to install
Turbo Delphi whithout installing first all the .net stuff.


http://delphi.about.com/od/delphifornet/a/delphi2005win32.htm


You should have given this link with your first post ;-)

mm

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


[lazarus] Debug Output again...

2006-09-14 Thread Tiziano_mk


some days ago I noted about the debug window output on windows.

after triyng on Linux Ubuntu I saw that a writeln(stderr,'Hello debug!') 
really sends the string to the debug window, as the wiki says. The same 
happend for assertions messages (even if it seems there is a mess on 
lineendings).


I'd like to know if it is possible to have this behaviour working on 
windows or if this is a platform limitation?


bye
tiziano

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


Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Graeme Geldenhuys

On 14/09/06, Michael Van Canneyt [EMAIL PROTECTED] wrote:

Second:

if you add the 'Gexperts' to the Delphi IDE (highly recommended) then
   'ALT Gr'-Arrow Up
or
   'ALT Gr'-Arrow Down
('Alt Gr' is the right Alt key) moves to the previous/next occurrence of
the word/identifier you are standing on.

This is also something which I would like to see in the Lazarus IDE, as
I also use this quite a lot.



Now this I really miss in Lazarus!!  When I created the Procedure
List add-on (also from GExperts), I tried the Identifier Jumping,
but my knowledge of CodeTools was to limited to get it working.  This
will be a awesome feature in Lazarus.

Regards,
 - Graeme -


--
There's no place like 127.0.0.1

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


Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Michael Van Canneyt



On Thu, 14 Sep 2006, Mattias Gaertner wrote:


On Thu, 14 Sep 2006 11:30:52 +0200 (Romance Daylight Time)
Michael Van Canneyt [EMAIL PROTECTED] wrote:


[cut]


Aswering the subject: Both are missing.


And who should I bribe to add these features ? ;-)

Alternatively, whose arm should I twist ?  ;)

Michael.

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


Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Mattias Gaertner
On Thu, 14 Sep 2006 11:43:35 +0200
Graeme Geldenhuys [EMAIL PROTECTED] wrote:

 On 14/09/06, Michael Van Canneyt [EMAIL PROTECTED] wrote:
  Second:
 
  if you add the 'Gexperts' to the Delphi IDE (highly recommended)
  then 'ALT Gr'-Arrow Up
  or
 'ALT Gr'-Arrow Down
  ('Alt Gr' is the right Alt key) moves to the previous/next
  occurrence of the word/identifier you are standing on.
 
  This is also something which I would like to see in the Lazarus
  IDE, as I also use this quite a lot.
 
 
 Now this I really miss in Lazarus!!  When I created the Procedure
 List add-on (also from GExperts), I tried the Identifier Jumping,
 but my knowledge of CodeTools was to limited to get it working.  This
 will be a awesome feature in Lazarus.

Next word or next identifier?


Mattias

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


Re: [lazarus] Debug Output again...

2006-09-14 Thread Graeme Geldenhuys

It will work on Windows as long as you disable the GUI App checkbox in
Compiler Options AND run the windows app from a console window.

Regards,
 - Graeme -


On 14/09/06, Tiziano_mk [EMAIL PROTECTED] wrote:


some days ago I noted about the debug window output on windows.

after triyng on Linux Ubuntu I saw that a writeln(stderr,'Hello debug!')
really sends the string to the debug window, as the wiki says. The same
happend for assertions messages (even if it seems there is a mess on
lineendings).

I'd like to know if it is possible to have this behaviour working on
windows or if this is a platform limitation?

bye
tiziano

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




--
There's no place like 127.0.0.1

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


Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Mattias Gaertner
On Thu, 14 Sep 2006 11:52:40 +0200 (Romance Daylight Time)
Michael Van Canneyt [EMAIL PROTECTED] wrote:

 
 
 On Thu, 14 Sep 2006, Mattias Gaertner wrote:
 
  On Thu, 14 Sep 2006 11:30:52 +0200 (Romance Daylight Time)
  Michael Van Canneyt [EMAIL PROTECTED] wrote:
 
 [cut]
 
  Aswering the subject: Both are missing.
 
 And who should I bribe to add these features ? ;-)

We could trade. Maybe an fpdoc feature.

 
 Alternatively, whose arm should I twist ?  ;)

I need my arms untwisted for programming.

Mattias

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


Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Graeme Geldenhuys

On 14/09/06, Mattias Gaertner [EMAIL PROTECTED] wrote:


Next word or next identifier?


It works by pressing Ctrl-Alt-UpArrow or Ctrl-Alt-DownArrow and
takes the identifier under the cursor and jump to the Next or Prev
occurrence of that identifier.  Hence why I call it Identifier
Jumping.

- From the Editor Experts Help --

Next identifier reference:-  This expert detects the identifier under
the cursor and allow you to quickly jump to the next occurrence of
that identifier in the same file

Previous identifier Reference :-   This expert detects the identifier
under the cursor and allow you to quickly jump to the previous
occurrence of that identifier in the same file
---  END  


Regards,
 - Graeme -


--
There's no place like 127.0.0.1

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


Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Luk Vandelaer

Mattias Gaertner wrote:


On Thu, 14 Sep 2006 11:43:35 +0200
Graeme Geldenhuys [EMAIL PROTECTED] wrote:

 


On 14/09/06, Michael Van Canneyt [EMAIL PROTECTED] wrote:
   


Second:

if you add the 'Gexperts' to the Delphi IDE (highly recommended)
then 'ALT Gr'-Arrow Up
or
  'ALT Gr'-Arrow Down
('Alt Gr' is the right Alt key) moves to the previous/next
occurrence of the word/identifier you are standing on.

This is also something which I would like to see in the Lazarus
IDE, as I also use this quite a lot.
 


Now this I really miss in Lazarus!!  When I created the Procedure
List add-on (also from GExperts), I tried the Identifier Jumping,
but my knowledge of CodeTools was to limited to get it working.  This
will be a awesome feature in Lazarus.
   



Next word or next identifier?

 


In Delphi/GExperts it is next word.


Luk

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


Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Graeme Geldenhuys

On 14/09/06, Mattias Gaertner [EMAIL PROTECTED] wrote:

 Alternatively, whose arm should I twist ?  ;)

I need my arms untwisted for programming.

Mattias


:-)
Maybe after the arm twisting, I can sell you a add-on for Lazarus we
created.  A VoiceType Dictation add-on for Lazarus.  Just excuse the
strange looks when used in a offfice environment. ;-)

Regards,
 Graeme.

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


Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Mattias Gaertner
On Thu, 14 Sep 2006 12:17:42 +0200
Luk Vandelaer [EMAIL PROTECTED] wrote:

 Mattias Gaertner wrote:
 
 On Thu, 14 Sep 2006 11:43:35 +0200
 Graeme Geldenhuys [EMAIL PROTECTED] wrote:
 
   
 
 On 14/09/06, Michael Van Canneyt [EMAIL PROTECTED] wrote:
 
 
 Second:
 
 if you add the 'Gexperts' to the Delphi IDE (highly recommended)
 then 'ALT Gr'-Arrow Up
 or
'ALT Gr'-Arrow Down
 ('Alt Gr' is the right Alt key) moves to the previous/next
 occurrence of the word/identifier you are standing on.
 
 This is also something which I would like to see in the Lazarus
 IDE, as I also use this quite a lot.
   
 
 Now this I really miss in Lazarus!!  When I created the Procedure
 List add-on (also from GExperts), I tried the Identifier Jumping,
 but my knowledge of CodeTools was to limited to get it working.
 This will be a awesome feature in Lazarus.
 
 
 
 Next word or next identifier?
 
   
 
 In Delphi/GExperts it is next word.

Ok. Maybe it was the wrong question.
What would be more useful: Next word or next identifier?

Next word will find the identifier in string constants and all
kinds of comments too. And it will find another identifier with the same
name.

Next identifier will parse the code (including jumping to a syntax
error). Then find the next identifier with the same declaration. This
works also for some kinds of comments. And it will work with include
files.
If the current file is not a pascal file, the above word search would
be used.


Mattias

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


Re: [lazarus] The spirit lost of Borland

2006-09-14 Thread Bisma Jayadi

Yes but most of the problems come from the fact that (besides Lazarus
and FPC peoples work for free during their free time) Lazarus/FPC is
multi-processors and multi-OS's whereas Delphi is only multi-Microsoft.


No matter what are the reasons behind the lack of features, it still lacks of 
features. Most people/users don't really care about this, whether Lazarus/FPC 
people work on it during free time or busy time. They just want some features 
to be exist, period.


If Lazarus/FPC can't provide those features then simply admit it and be fair. 
You could ask them to help or contribute to FPC/Lazarus instead of (blindly) 
defend it with non-logical reasons or proferring other features as excuses. If 
you said there are problems with Delphi, then Lazarus is full with problems as 
well. For some people, Lazarus' problems could prevent them of using it and 
stick with Delphi. None of both is perfect.


I use and like both Delphi and Lazarus. So, I'm not the one you should shoot 
on the foot. I'm just comparing and hope we could learn something from it.


-Bee-

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

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


Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Michael Van Canneyt



On Thu, 14 Sep 2006, Mattias Gaertner wrote:


On Thu, 14 Sep 2006 11:43:35 +0200
Graeme Geldenhuys [EMAIL PROTECTED] wrote:


On 14/09/06, Michael Van Canneyt [EMAIL PROTECTED] wrote:

Second:

if you add the 'Gexperts' to the Delphi IDE (highly recommended)
then 'ALT Gr'-Arrow Up
or
   'ALT Gr'-Arrow Down
('Alt Gr' is the right Alt key) moves to the previous/next
occurrence of the word/identifier you are standing on.

This is also something which I would like to see in the Lazarus
IDE, as I also use this quite a lot.



Now this I really miss in Lazarus!!  When I created the Procedure
List add-on (also from GExperts), I tried the Identifier Jumping,
but my knowledge of CodeTools was to limited to get it working.  This
will be a awesome feature in Lazarus.


Next word or next identifier?


It's intelligent

Normally it is 'Next word', i.e. it works on any word.

But if you are located in MyMethod in

  MyObject.MyMethod;

Then it will look for MyMethod, and not MyObject.MyMethod.

Michael.

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


Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Michael Van Canneyt



On Thu, 14 Sep 2006, Mattias Gaertner wrote:


On Thu, 14 Sep 2006 12:17:42 +0200
Luk Vandelaer [EMAIL PROTECTED] wrote:


Mattias Gaertner wrote:


On Thu, 14 Sep 2006 11:43:35 +0200
Graeme Geldenhuys [EMAIL PROTECTED] wrote:




On 14/09/06, Michael Van Canneyt [EMAIL PROTECTED] wrote:



Second:

if you add the 'Gexperts' to the Delphi IDE (highly recommended)
then 'ALT Gr'-Arrow Up
or
  'ALT Gr'-Arrow Down
('Alt Gr' is the right Alt key) moves to the previous/next
occurrence of the word/identifier you are standing on.

This is also something which I would like to see in the Lazarus
IDE, as I also use this quite a lot.



Now this I really miss in Lazarus!!  When I created the Procedure
List add-on (also from GExperts), I tried the Identifier Jumping,
but my knowledge of CodeTools was to limited to get it working.
This will be a awesome feature in Lazarus.




Next word or next identifier?




In Delphi/GExperts it is next word.


Ok. Maybe it was the wrong question.
What would be more useful: Next word or next identifier?


Next word.



Next word will find the identifier in string constants and all
kinds of comments too. And it will find another identifier with the same
name.


This is so in Gexperts, but semi-intelligent.



Next identifier will parse the code (including jumping to a syntax
error). Then find the next identifier with the same declaration. This
works also for some kinds of comments. And it will work with include
files.
If the current file is not a pascal file, the above word search would
be used.


See my other mail...

Michael.

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


Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Michael Van Canneyt



On Thu, 14 Sep 2006, Mattias Gaertner wrote:


On Thu, 14 Sep 2006 11:52:40 +0200 (Romance Daylight Time)
Michael Van Canneyt [EMAIL PROTECTED] wrote:




On Thu, 14 Sep 2006, Mattias Gaertner wrote:


On Thu, 14 Sep 2006 11:30:52 +0200 (Romance Daylight Time)
Michael Van Canneyt [EMAIL PROTECTED] wrote:


[cut]


Aswering the subject: Both are missing.


And who should I bribe to add these features ? ;-)


We could trade. Maybe an fpdoc feature.


You're on ;-)


Alternatively, whose arm should I twist ?  ;)


I need my arms untwisted for programming.


Good point !! :-)

Michael.

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


Re: [lazarus] The spirit lost of Borland

2006-09-14 Thread Michael Van Canneyt



On Thu, 14 Sep 2006, Bisma Jayadi wrote:


Yes but most of the problems come from the fact that (besides Lazarus
and FPC peoples work for free during their free time) Lazarus/FPC is
multi-processors and multi-OS's whereas Delphi is only multi-Microsoft.


No matter what are the reasons behind the lack of features, it still lacks of 
features. Most people/users don't really care about this, whether Lazarus/FPC 
people work on it during free time or busy time. They just want some features 
to be exist, period.


If Lazarus/FPC can't provide those features then simply admit it and be fair. 
You could ask them to help or contribute to FPC/Lazarus instead of (blindly) 
defend it with non-logical reasons or proferring other features as excuses. 
If you said there are problems with Delphi, then Lazarus is full with 
problems as well. For some people, Lazarus' problems could prevent them of 
using it and stick with Delphi. None of both is perfect.


I use and like both Delphi and Lazarus. So, I'm not the one you should shoot 
on the foot. I'm just comparing and hope we could learn something from it.


Can you please identify features that you are missing ?
Alternatively, the bugtracker can be used to demand features, I think.

If we don't know what you are missing, we can't improve it for you...

Michael.

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


Re: [lazarus] The spirit lost of Borland

2006-09-14 Thread Bisma Jayadi

Can you please identify features that you are missing ?
Alternatively, the bugtracker can be used to demand features, I think.


Yes, Michael... I knew about this. :)

I'm not talking about the features itself. It's about the mentality regarding 
what we like/dislike. Sometimes we're losing our objectivity and fairness when 
it comes to something we like/dislike. I think I should quit from this 
discussion since it could goes wider and out of topic. That's all. :)


-Bee-

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

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


Re: [lazarus] The spirit lost of Borland

2006-09-14 Thread Marco Ciampa
On Thu, Sep 14, 2006 at 05:43:32PM +0700, Bisma Jayadi wrote:
 Yes but most of the problems come from the fact that (besides Lazarus
 and FPC peoples work for free during their free time) Lazarus/FPC is
 multi-processors and multi-OS's whereas Delphi is only multi-Microsoft.
 
 No matter what are the reasons behind the lack of features, it still lacks 
 of features. Most people/users don't really care about this, whether 
 Lazarus/FPC people work on it during free time or busy time. They just want 
 some features to be exist, period.
 
 If Lazarus/FPC can't provide those features then simply admit it and be 
 fair. You could ask them to help or contribute to FPC/Lazarus instead of 
 (blindly) defend it with non-logical reasons or proferring other features 
 as excuses. If you said there are problems with Delphi, then Lazarus is 
 full with problems as well. For some people, Lazarus' problems could 
 prevent them of using it and stick with Delphi. None of both is perfect.
 
 I use and like both Delphi and Lazarus. So, I'm not the one you should 
 shoot on the foot. I'm just comparing and hope we could learn something 
 from it.
Ok, lets try to face the problem instead of wining about it: why not to
create a collaborative grid (wiki pages are ideal) to spot the good points
of fpc/lazarus and the bad points that needs to be
projected/developed/debugged? This could be a simple table with all the
features that a programmer dreams of about an IDE with the rispondence of
other product like Delphi put as a comparative example.
This is useful for many reasons:

- it could be a reference for who is evaluating fpc/lazarus to judge it it 
fits his/her needs
- it is useful for developers to know where people think it is better
to concentrate the efforts
- it could useful for having an _honest_ overview on how to put ftp/lazarus
with respect to the conpetition
- it is useful to have an idea about the future of the project and its
directions based on the programmed or the work in progress

What do you think about it?

-- 

Marco Ciampa

++
| Linux User  #78271 |
| FSFE fellow   #364 |
++

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


Re: [lazarus] The spirit lost of Borland

2006-09-14 Thread Graeme Geldenhuys

On 14/09/06, Bisma Jayadi [EMAIL PROTECTED] wrote:

No matter what are the reasons behind the lack of features, it still lacks of
features. Most people/users don't really care about this, whether Lazarus/FPC
people work on it during free time or busy time. They just want some features
to be exist, period.


That is such a typical Windows (read as non-free software) mentality.
Lazarus and FPC don't have 200+ developers working full time on the
projects like Microsoft or Borland do.

I have only been part of open source projects for 3 odd years now.
Something I noticed very quickly, is that open source projects work on
a give-and-take system.  Giving something back to the project as a
small token of appreciation for everything you get (for free) from the
project. You also don't have to give huge code samples - any help is
always welcome, even if it is just documentation updates.

Yes Lazarus is missing some features, but in the last year (since I
started using Lazarus) it has greatly improved. The core developers
are doing an excellent job at that - not to mention support being
given for new developers using Lazarus!  I don't know much about the
internal workings of Lazarus, but with a bit of coaching, I even
managed to fix a few things that bugged me or implemented something I
felt missing and that could benefit others.

Every bit helps!

It's simple really - it you aren't happy with Lazarus/FPC and you are
not willing to help, then go spend your $2000 on a copy of Delphi 2006
and stop bitching here.

Regards,
 - Graeme -

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


Re: [lazarus] The spirit lost of Borland

2006-09-14 Thread Bisma Jayadi

Ok, lets try to face the problem instead of wining about it: why not to
create a collaborative grid (wiki pages are ideal) to spot the good points
of fpc/lazarus and the bad points that needs to be
projected/developed/debugged? This could be a simple table with all the
features that a programmer dreams of about an IDE with the rispondence of
other product like Delphi put as a comparative example.


This is the best reply I ever got in this thread. And this is what we should 
say to people who is critizing Lazarus instead of accusing him/her bitching or 
dislike or not apreciating or don't want to contribute or whatever bad thinks 
you ever think. We just need to open our mind, critize  hate. Thank you. :)


-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] Regression in .lfm saving

2006-09-14 Thread Alexandre Leclerc

Hi all,

There was a successful patch when saving WideStrings in .lfm files by
adding '' for empty properties, but using the latest 9874 revision the
editor is not adding the '' anymore and this is corrupting the loading
of the .lfm files as before. (Previous working version I was using is
9773; so this must be somewhere between.)

Can someone confirm the patch has been lost?

--
Alexandre Leclerc

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


[lazarus] Patch for Graphics

2006-09-14 Thread Tom Gregorovic

Hi,
this patch moves InvertColor function from SourceEditorProcs to Graphics 
and adds RGBToColor function, which composes TColor from red, green and 
blue component like Windows.RGB.


  Tombo
Index: ide/sourceeditprocs.pas
===
--- ide/sourceeditprocs.pas (revision 9891)
+++ ide/sourceeditprocs.pas (working copy)
@@ -98,24 +98,6 @@
   BGBlue: Integer;
   TokenStart: Integer;
 
-  function InvertColor(AColor: TColor): TColor;
-  var Red, Green, Blue: integer;
-  begin
-Red:=(AColor shr 16) and $ff;
-Green:=(AColor shr 8) and $ff;
-Blue:=AColor and $ff;
-if Abs($80-Red)+Abs($80-Green)+Abs($80-Blue)$140 then begin
-  Red:=Red+$a0;
-  Green:=Green+$a0;
-  Blue:=Blue+$a0;
-end else begin
-  Red:=$ff-Red;
-  Green:=$ff-Green;
-  Blue:=$ff-Blue;
-end;
-Result:=((Red and $ff) shl 16)+((Green and $ff) shl 8)+(Blue and $ff);
-  end;
-
   procedure SetFontColor(NewColor: TColor);
   var
 FGRed: Integer;
Index: lcl/graphics.pp
===
--- lcl/graphics.pp (revision 9891)
+++ lcl/graphics.pp (working copy)
@@ -1302,10 +1302,12 @@
 function ColorToString(Color: TColor): AnsiString;
 function StringToColor(const S: shortstring): TColor;
 procedure GetColorValues(Proc: TGetColorStringProc);
+function InvertColor(AColor: TColor): TColor;
 
 Function Blue(rgb: TColor): BYTE;
 Function Green(rgb: TColor): BYTE;
 Function Red(rgb: TColor): BYTE;
+function RGBToColor(R, G, B: Byte): TColor;
 procedure RedGreenBlue(rgb: TColor; out Red, Green, Blue: Byte);
 function FPColorToTColor(const FPColor: TFPColor): TColor;
 function TColorToFPColor(const c: TColor): TFPColor;
@@ -1639,6 +1641,30 @@
   for I := Low(Colors) to High(Colors) do Proc(Colors[I].Name);
 end;
 
+function InvertColor(AColor: TColor): TColor;
+var
+  R, G, B: Integer;
+begin
+  R := AColor and $ff;
+  G := (AColor shr 8) and $ff;
+  B := (AColor shr 16) and $ff;
+
+  if Abs($80 - R) + Abs($80 - G) + Abs($80 - B)  $140 then
+  begin
+Inc(R, $a0);
+Inc(G, $a0);
+Inc(B, $a0);
+  end
+  else
+  begin
+R := $ff - R;
+G := $ff - G;
+B := $ff - B;
+  end;
+  
+  Result := ((B and $ff) shl 16) or ((G and $ff) shl 8) or (R and $ff);
+end;
+
 Function Blue(rgb: TColor): BYTE;
 begin
   Result := (rgb shr 16) and $00ff;
@@ -1654,6 +1680,11 @@
   Result := rgb and $00ff;
 end;
 
+function RGBToColor(R, G, B: Byte): TColor;
+begin
+  Result := (B shl 16) or (G shl 8) or R;
+end;
+
 procedure RedGreenBlue(rgb: TColor; out Red, Green, Blue: Byte);
 begin
   Red := rgb and $00ff;


[lazarus] Extrange make problem

2006-09-14 Thread Mariano Cano








Hi! I have installed kubuntu 6.06 with all GTK Packages(I
Guess), but I have the following extrange problem:



If I run the $make
clean all in the console, or if I run the make lazarus option without installing any packages, the lazarus ide
its compiled and linked without problems

But if I try to install any
package, for example, imagesforlazarus.lpk, when the
compiler is trying to link the ide, I have this
error: ld can't find -lgds



Why? 



Any help will be usefull



Mariano

21 aos

Argentina








Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Marc Weustink

Mattias Gaertner wrote:

On Thu, 14 Sep 2006 11:30:52 +0200 (Romance Daylight Time)
Michael Van Canneyt [EMAIL PROTECTED] wrote:


Hi,

2 feature requests:

First:
The following has been bugging me since day 1 of Lazarus:

Code completion for methods works from interface - implementation.

However, in Delphi, the following also works:

Given the form declaration:

   TForm1 = class(TForm)
   private
 { private declarations }
   public
 { public declarations }
   end;

I can type the following in the implementation section:

Procedure TForm1.DoSomething;

begin
end;

I can place the cursor anywhere in the DoSomething method, and press
Ctrl-Shift-C. The IDE then places
   Procedure DoSomething;
In the form declaration (in the private section).

This does not work in Lazarus. Could this be added ?

In practice in Delphi, I use this method infinitely more often than
the Interface - implementation way; I really miss this.

Second:

if you add the 'Gexperts' to the Delphi IDE (highly recommended) then
   'ALT Gr'-Arrow Up 
or
   'ALT Gr'-Arrow Down 
('Alt Gr' is the right Alt key) moves to the previous/next occurrence

of the word/identifier you are standing on.

This is also something which I would like to see in the Lazarus IDE,
as I also use this quite a lot.


Aswering the subject: Both are missing.


ehm I would't define the first as missing, since we both agreed that 
 it was not wanted in some cases, and that the delphi behaviour was 
anoying on this.


Marc

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


[lazarus] Patch - slackware package build script

2006-09-14 Thread A.J. Venter
Hiya,
The attached patch adds a script for building a valid and fully compliant 
slackware package from a lazarus source tree. 
It was HEAVILLY  plagiarised from the rpm building script and parts of 
the .spec file as well, but with all the adaptations needed to successfully 
build a proper slackware package for lazarus.

I have tested the script and the resulting packages.

NOTES:
1) Because of how slackware packages work - it is probably impossible to 
create a version that does NOT require root privileges
2) This is the first version - no doubt i can be improved with time
3) The script APPEARS to create some broken symlinks - do not be concerned, 
this is a standard trick for slackware packages, which forces the installpkg 
command to create them correctly later on.

Ciao
A.J.
-- 
80% Of a hardware engineer's job is application of the uncertainty principle.
80% of a software engineer's job is pretending this isn't so.
A.J. Venter
Chief Software Architect
OpenLab International   | +27 83 455 99 78 (South Africa) 
http://www.getopenlab.com   | 086 654 2898 (Fax)
http://www.silentcoder.co.za| +55 118 162 2079 (Brazil)
GPG Key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x27CFFE5A
Index: tools/install/create_lazarus_slacktgz.sh
===
--- tools/install/create_lazarus_slacktgz.sh	(revision 0)
+++ tools/install/create_lazarus_slacktgz.sh	(revision 0)
@@ -0,0 +1,81 @@
+#!/bin/bash
+
+set -x
+set -e
+
+# get date of day
+Year=$(date +%y)
+Month=$(date +%m)
+Day=$(date +%d)
+
+# get installed fpc version
+echo getting installed fpc version ...
+if ! which ppc386  ; then
+	echo ERROR: fpc not installed
+	exit
+fi
+FPCVER=`ppc386 -l | head -n 1 | awk '{print $5}'`
+echo installed fpc version: $FPCVER
+
+Date=$Year$Month$Day
+LazVersion=$(./get_lazarus_version.sh)
+LazRelease='0' # $(echo $FPCRPM | sed -e 's/-/_/g')
+Src=/tmp/lazarus-$LazVersion-$LazRelease.tar.gz
+TmpDir=/tmp/lazarus$LazVersion
+DescFile=slacktgz/slack-desc
+DepFile=slacktgz/slack-required
+BuildRoot=/tmp/lazaruspackage/
+SrcDir=$TmpDir/lazarus
+Where=`pwd`
+
+# download lazarus svn if needed
+echo creating lazarus tgz ...
+  ./create_lazarus_export_tgz.sh $Src
+  mkdir -p $TmpDir
+  cd $TmpDir
+  tar zxvf $Src
+  cd $Where
+
+# create a slack-desc  file
+echo creating lazarus slack metadata files ...
+echo fpc = $FPCVER  $DepFile
+echo fpcsrc = $FPCVER  $DepFile
+
+# build slacktgz
+echo building slackware tgz package ...
+if [ -d $BuildRoot ] ; then
+	rm -fr $BuildRoot
+fi
+mkdir $BuildRoot
+mkdir -p $BuildRoot/install
+cp $DepFile $BuildRoot/install/
+cp $DescFile $BuildRoot/install/
+
+./slacktgz/build.sh $SrcDir
+
+
+cd $BuildRoot
+mkdir -p $BuildRoot/usr/lib/lazarus
+mkdir -p $BuildRoot/usr/bin
+mkdir -p $BuildRoot/usr/share/pixmaps
+mkdir -p $BuildRoot/usr/share/applications
+mkdir -p $BuildRoot/usr/man/man1
+cp -arf $SrcDir/* $BuildRoot/usr/lib/lazarus/
+
+  cp  $SrcDir/images/ide_icon48x48.png $BuildRoot/usr/share/pixmaps/lazarus.png
+  cp  $SrcDir/install/lazarus.desktop $BuildRoot/usr/share/applications/lazarus.desktop
+ln -sf /usr/lib/lazarus/lazarus usr/bin/lazarus
+ln -sf /usr/lib/lazarus/startlazarus usr/bin/startlazarus
+ln -sf /usr/lib/lazarus/lazbuild usr/bin/lazbuild
+cat $SrcDir/docs/lazbuild.1 | gzip  $BuildRoot/usr/man/man1/lazbuild.1.gz
+
+/sbin/makepkg -l y -c y /tmp/lazarus-$LazVersion-i486-$LazRelease.tgz
+cd
+
+#Clean up
+rm -fr $BuildRoot  $TmpDir
+
+echo The new slackware tgz can be found at: /tmp/lazarus-$LazVersion-i486-$LazRelease.tgz
+echo A source package is has been created at: $Src
+# end.
+

Property changes on: tools/install/create_lazarus_slacktgz.sh
___
Name: svn:executable
   + *

Index: tools/install/slacktgz/build.sh
===
--- tools/install/slacktgz/build.sh	(revision 0)
+++ tools/install/slacktgz/build.sh	(revision 0)
@@ -0,0 +1,17 @@
+#!/bin/sh
+cd $1
+if [ -n $FPCCfg ]; then
+	  MAKEOPTS= -n @$FPCCfg
+  fi
+  make
+  make bigide OPT=$MAKEOPTS USESVN2REVISIONINC=0
+  make tools OPT=$MAKEOPTS
+  make lazbuilder OPT=$MAKEOPTS
+  # build gtk2 .ppu
+  export LCL_PLATFORM=gtk2
+  make lcl ideintf packager/registration bigidecomponents OPT=$MAKEOPTS
+  export LCL_PLATFORM=
+strip lazarus
+strip startlazarus
+strip lazbuild
+  

Property changes on: tools/install/slacktgz/build.sh
___
Name: svn:executable
   + *

Index: tools/install/slacktgz/slack-desc
===
--- tools/install/slacktgz/slack-desc	(revision 0)
+++ tools/install/slacktgz/slack-desc	(revision 0)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The handy ruler below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|' on
+# 

Re: [lazarus] Patch - slackware package build script

2006-09-14 Thread Vincent Snijders

A.J. Venter wrote:

Hiya,

I have tested the script and the resulting packages.

NOTES:
1) Because of how slackware packages work - it is probably impossible to 
create a version that does NOT require root privileges


But you don't need to be root to create the package, do you?

Do you have similar scripts for fpc?

Vincent

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


Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Michael Van Canneyt



On Thu, 14 Sep 2006, Marc Weustink wrote:


Mattias Gaertner wrote:

On Thu, 14 Sep 2006 11:30:52 +0200 (Romance Daylight Time)
Michael Van Canneyt [EMAIL PROTECTED] wrote:


Hi,

2 feature requests:

First:
The following has been bugging me since day 1 of Lazarus:

Code completion for methods works from interface - implementation.

However, in Delphi, the following also works:

Given the form declaration:

   TForm1 = class(TForm)
   private
 { private declarations }
   public
 { public declarations }
   end;

I can type the following in the implementation section:

Procedure TForm1.DoSomething;

begin
end;

I can place the cursor anywhere in the DoSomething method, and press
Ctrl-Shift-C. The IDE then places
   Procedure DoSomething;
In the form declaration (in the private section).

This does not work in Lazarus. Could this be added ?

In practice in Delphi, I use this method infinitely more often than
the Interface - implementation way; I really miss this.

Second:

if you add the 'Gexperts' to the Delphi IDE (highly recommended) then
   'ALT Gr'-Arrow Up or
   'ALT Gr'-Arrow Down ('Alt Gr' is the right Alt key) moves to the 
previous/next occurrence

of the word/identifier you are standing on.

This is also something which I would like to see in the Lazarus IDE,
as I also use this quite a lot.


Aswering the subject: Both are missing.


ehm I would't define the first as missing, since we both agreed that  it 
was not wanted in some cases, and that the delphi behaviour was anoying on 
this.


??

On the contrary, it's very much wanted, I don't see how it can be annoying??

At best, make it an option, if you really think it's annoying :-)

Michael.

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


Re: [lazarus] Patch - slackware package build script

2006-09-14 Thread A.J. Venter
 But you don't need to be root to create the package, do you?
Actually you do. Slackware packages require that you set all the files as 
root-owned before creating the tarball - and THAT cannot be done by a normal 
user (permissions are specified at build-time, not install time).
It would be possible to bypass this with fakeroot -but of couse that would add 
a new, stupid, dependency.

 Do you have similar scripts for fpc?
Not yet no, but I will :)

A.J.
-- 
80% Of a hardware engineer's job is application of the uncertainty principle.
80% of a software engineer's job is pretending this isn't so.
A.J. Venter
Chief Software Architect
OpenLab International   | +27 83 455 99 78 (South Africa) 
http://www.getopenlab.com   | 086 654 2898 (Fax)
http://www.silentcoder.co.za| +55 118 162 2079 (Brazil)
GPG Key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x27CFFE5A


pgpeJ7CnPSZsF.pgp
Description: PGP signature


Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Marc Weustink

Michael Van Canneyt wrote:



On Thu, 14 Sep 2006, Marc Weustink wrote:


Mattias Gaertner wrote:

On Thu, 14 Sep 2006 11:30:52 +0200 (Romance Daylight Time)
Michael Van Canneyt [EMAIL PROTECTED] wrote:


Hi,

2 feature requests:

First:
The following has been bugging me since day 1 of Lazarus:

Code completion for methods works from interface - implementation.

However, in Delphi, the following also works:

Given the form declaration:

   TForm1 = class(TForm)
   private
 { private declarations }
   public
 { public declarations }
   end;

I can type the following in the implementation section:

Procedure TForm1.DoSomething;

begin
end;

I can place the cursor anywhere in the DoSomething method, and press
Ctrl-Shift-C. The IDE then places
   Procedure DoSomething;
In the form declaration (in the private section).

This does not work in Lazarus. Could this be added ?

In practice in Delphi, I use this method infinitely more often than
the Interface - implementation way; I really miss this.

Second:

if you add the 'Gexperts' to the Delphi IDE (highly recommended) then
   'ALT Gr'-Arrow Up or
   'ALT Gr'-Arrow Down ('Alt Gr' is the right Alt key) moves to the 
previous/next occurrence

of the word/identifier you are standing on.

This is also something which I would like to see in the Lazarus IDE,
as I also use this quite a lot.


Aswering the subject: Both are missing.


ehm I would't define the first as missing, since we both agreed 
that  it was not wanted in some cases, and that the delphi behaviour 
was anoying on this.


??

On the contrary, it's very much wanted, I don't see how it can be 
annoying??


Annoying when you are adding and removing methods in the class 
definition. You have just removed some and want to complete the new 
ones.
...poof, there are the removed ones again (and you won't notice since 
the editor jumps to the implementation section, so you can go up again, 
remove etc...)



At best, make it an option, if you really think it's annoying :-)


I think completion when you're in the implementation section is OK in 
this case.



Marc

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


Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Michael Van Canneyt



On Thu, 14 Sep 2006, Marc Weustink wrote:


Michael Van Canneyt wrote:



On Thu, 14 Sep 2006, Marc Weustink wrote:


Mattias Gaertner wrote:

On Thu, 14 Sep 2006 11:30:52 +0200 (Romance Daylight Time)
Michael Van Canneyt [EMAIL PROTECTED] wrote:


Hi,

2 feature requests:

First:
The following has been bugging me since day 1 of Lazarus:

Code completion for methods works from interface - implementation.

However, in Delphi, the following also works:

Given the form declaration:

   TForm1 = class(TForm)
   private
 { private declarations }
   public
 { public declarations }
   end;

I can type the following in the implementation section:

Procedure TForm1.DoSomething;

begin
end;

I can place the cursor anywhere in the DoSomething method, and press
Ctrl-Shift-C. The IDE then places
   Procedure DoSomething;
In the form declaration (in the private section).

This does not work in Lazarus. Could this be added ?

In practice in Delphi, I use this method infinitely more often than
the Interface - implementation way; I really miss this.

Second:

if you add the 'Gexperts' to the Delphi IDE (highly recommended) then
   'ALT Gr'-Arrow Up or
   'ALT Gr'-Arrow Down ('Alt Gr' is the right Alt key) moves to the 
previous/next occurrence

of the word/identifier you are standing on.

This is also something which I would like to see in the Lazarus IDE,
as I also use this quite a lot.


Aswering the subject: Both are missing.


ehm I would't define the first as missing, since we both agreed that 
it was not wanted in some cases, and that the delphi behaviour was anoying 
on this.


??

On the contrary, it's very much wanted, I don't see how it can be 
annoying??


Annoying when you are adding and removing methods in the class definition. 
You have just removed some and want to complete the new ones.
...poof, there are the removed ones again (and you won't notice since the 
editor jumps to the implementation section, so you can go up again, remove 
etc...)


Ah, this one, yes I know this problem :-)




At best, make it an option, if you really think it's annoying :-)


I think completion when you're in the implementation section is OK in this 
case.


I think this behaviour lends itself to configuration:

Method code completion:
(*) Only add current method to class declaration
( ) Add all undeclared methods when cursor in implementation section.
( ) Always add all missing declarations

But that is if you want it really fancy... I'd already be happy if the first 
one is implemented...


Michael.

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


Re: [lazarus] The spirit lost of Borland

2006-09-14 Thread m2

Bisma Jayadi a écrit :
 Yes but most of the problems come from the fact that (besides Lazarus
 and FPC peoples work for free during their free time) Lazarus/FPC is
 multi-processors and multi-OS's whereas Delphi is only multi-Microsoft.

 No matter what are the reasons behind the lack of features, it still
 lacks of features. Most people/users don't really care about this,
 whether Lazarus/FPC people work on it during free time or busy time.
 They just want some features to be exist, period.

I really wonder which features are in Delphi that I would like to
see in Laz/FPC. On the contrary, I know which useful features are in
Laz/FPC and not in Delphi: all the asm stuff including the .s files.
Just for that, considering the kind of applications I write, Laz/FPC
is incomparably better.

 If Lazarus/FPC can't provide those features then simply admit it and be
 fair. You could ask them to help or contribute to FPC/Lazarus instead of
 (blindly) defend it with non-logical reasons or proferring other
 features as excuses. If you said there are problems with Delphi, then
 Lazarus is full with problems as well. For some people, Lazarus'
 problems could prevent them of using it and stick with Delphi. None of
 both is perfect.

 I use and like both Delphi and Lazarus. So, I'm not the one you should
 shoot on the foot. I'm just comparing and hope we could learn something
 from it.

But Delphi and Laz/FPC are not comparable. On one hand, you have 
Delphi-Micro$oft-or-die and, on the other hand, the almost-all-OS's

Laz/FPC. How do you write a Linux program with the fantastic Delphi
IDE? You cannot. End of the comparison. Period.

And I was not attacking you personally. You wrote the Delphi IDE is
better than Lazarus one, I answered you the IDE is one thing but what
is behind is still more important. Where is the problem?

mm

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


Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Mattias Gaertner
On Thu, 14 Sep 2006 12:42:24 +0200 (Romance Daylight Time)
Michael Van Canneyt [EMAIL PROTECTED] wrote:

 
 
 On Thu, 14 Sep 2006, Mattias Gaertner wrote:
 
  On Thu, 14 Sep 2006 11:43:35 +0200
  Graeme Geldenhuys [EMAIL PROTECTED] wrote:
 
  On 14/09/06, Michael Van Canneyt [EMAIL PROTECTED] wrote:
  Second:
 
  if you add the 'Gexperts' to the Delphi IDE (highly recommended)
  then 'ALT Gr'-Arrow Up
  or
 'ALT Gr'-Arrow Down
  ('Alt Gr' is the right Alt key) moves to the previous/next
  occurrence of the word/identifier you are standing on.
 
  This is also something which I would like to see in the Lazarus
  IDE, as I also use this quite a lot.
 
 
  Now this I really miss in Lazarus!!  When I created the Procedure
  List add-on (also from GExperts), I tried the Identifier
  Jumping, but my knowledge of CodeTools was to limited to get it
  working.  This will be a awesome feature in Lazarus.
 
  Next word or next identifier?
 
 It's intelligent
 
 Normally it is 'Next word', i.e. it works on any word.
 
 But if you are located in MyMethod in
 
MyObject.MyMethod;
 
 Then it will look for MyMethod, and not MyObject.MyMethod.

Ok. So GEXpert has a simple word search and not an identifier search.
And this is wanted.
Then the new functions will be called 'Find next word', 'Find previous
word'. Ok?


Mattias

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


Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Mattias Gaertner
On Thu, 14 Sep 2006 17:41:34 +0200 (Romance Daylight Time)
Michael Van Canneyt [EMAIL PROTECTED] wrote:

 
 
 On Thu, 14 Sep 2006, Marc Weustink wrote:
 
  Michael Van Canneyt wrote:
  
  
  On Thu, 14 Sep 2006, Marc Weustink wrote:
  
  Mattias Gaertner wrote:
  On Thu, 14 Sep 2006 11:30:52 +0200 (Romance Daylight Time)
  Michael Van Canneyt [EMAIL PROTECTED] wrote:
  
  Hi,
  
  2 feature requests:
  
  First:
  The following has been bugging me since day 1 of Lazarus:
  
  Code completion for methods works from interface -
  implementation.
  
  However, in Delphi, the following also works:
  
  Given the form declaration:
 
 TForm1 = class(TForm)
 private
   { private declarations }
 public
   { public declarations }
 end;
  
  I can type the following in the implementation section:
  
  Procedure TForm1.DoSomething;
  
  begin
  end;
  
  I can place the cursor anywhere in the DoSomething method, and
  press Ctrl-Shift-C. The IDE then places
 Procedure DoSomething;
  In the form declaration (in the private section).
  
  This does not work in Lazarus. Could this be added ?
  
  In practice in Delphi, I use this method infinitely more often
  than the Interface - implementation way; I really miss this.
  
  Second:
  
  if you add the 'Gexperts' to the Delphi IDE (highly
  recommended) then 'ALT Gr'-Arrow Up or
 'ALT Gr'-Arrow Down ('Alt Gr' is the right Alt key) moves to
  the previous/next occurrence
  of the word/identifier you are standing on.
  
  This is also something which I would like to see in the Lazarus
  IDE, as I also use this quite a lot.
  
  Aswering the subject: Both are missing.
  
  ehm I would't define the first as missing, since we both
  agreed that it was not wanted in some cases, and that the delphi
  behaviour was anoying on this.

Yes. We said, when the feature is implemented eventually, then with an
option to disable it. And we both would do that.


  
  ??
  
  On the contrary, it's very much wanted, I don't see how it can be 
  annoying??
 
  Annoying when you are adding and removing methods in the class
  definition. You have just removed some and want to complete the new
  ones. ...poof, there are the removed ones again (and you won't
  notice since the editor jumps to the implementation section, so you
  can go up again, remove etc...)
 
 Ah, this one, yes I know this problem :-)

There are more problems, because Lazarus' code completion is more than
Delphi's class completion.

 
 
  At best, make it an option, if you really think it's annoying :-)
 
  I think completion when you're in the implementation section is OK
  in this case.
 
 I think this behaviour lends itself to configuration:
 
 Method code completion:
 (*) Only add current method to class declaration
 ( ) Add all undeclared methods when cursor in implementation section.
 ( ) Always add all missing declarations

Maybe better:

When cursor is in an undeclared method implementation:
(*) Add current method to class declaration
( ) Add all undeclared methods to class declaration.
( ) Give an error

It should never add methods cross over for the above reason. It happens
very seldom that you need both and in this rare case you can do:
Ctrl+Shift+C, Ctrl+Shift+Up, Ctrl+Shift+C

 
 But that is if you want it really fancy... I'd already be happy if
 the first one is implemented...

And I'm looking forward to the new fpdoc features. :)


Mattias

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


Re: [lazarus] Extrange make problem

2006-09-14 Thread Mattias Gaertner
On Thu, 14 Sep 2006 10:08:50 -0300
Mariano Cano [EMAIL PROTECTED] wrote:

 Hi! I have installed kubuntu 6.06 with all GTK Packages(I Guess), but
 I have the following extrange problem:
  
 If I run the “$make clean all” in the console, or if I run the “make
 lazarus” option without installing any packages, the lazarus ide it’s
 compiled and linked without problems…
 But if I try to install any package, for example,
 imagesforlazarus.lpk, when the compiler is trying to link the ide, I
 have this error: “ld can't find -lgds”
  
 Why? 

Uninstall the interbaselaz package.

Mattias

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


Re: [lazarus] Patch for Graphics

2006-09-14 Thread Mattias Gaertner
On Thu, 14 Sep 2006 14:58:03 +0200
Tom Gregorovic [EMAIL PROTECTED] wrote:

 Hi,
 this patch moves InvertColor function from SourceEditorProcs to
 Graphics and adds RGBToColor function, which composes TColor from
 red, green and blue component like Windows.RGB.

Thanks. Applied.

Mattias

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


Re: [lazarus] The spirit lost of Borland

2006-09-14 Thread Eduardo

At 18:50 14/09/2006, you wrote:

Bisma Jayadi a écrit :
 Yes but most of the problems come from the fact that (besides Lazarus
 and FPC peoples work for free during their free time) Lazarus/FPC is
 multi-processors and multi-OS's whereas Delphi is only multi-Microsoft.

 No matter what are the reasons behind the lack of features, it still
 lacks of features. Most people/users don't really care about this,
 whether Lazarus/FPC people work on it during free time or busy time.
 They just want some features to be exist, period.

I really wonder which features are in Delphi that I would like to
see in Laz/FPC. On the contrary, I know which useful features are in
Laz/FPC and not in Delphi: all the asm stuff including the .s files.
Just for that, considering the kind of applications I write, Laz/FPC
is incomparably better.


The only feature Delphi has that i miss under 
FPC/Laz is C++ linking. I must do a c glue and 
the an oo-pas glue from c glue for c++ original 
code, and a lot of times, it's too much work.



 If Lazarus/FPC can't provide those features then simply admit it and be
 fair. You could ask them to help or contribute to FPC/Lazarus instead of
 (blindly) defend it with non-logical reasons or proferring other
.
 shoot on the foot. I'm just comparing and hope we could learn something
 from it.

But Delphi and Laz/FPC are not comparable. On 
one hand, you have Delphi-Micro$oft-or-die and, 
on the other hand, the almost-all-OS's

Laz/FPC. How do you write a Linux program with the fantastic Delphi
IDE? You cannot. End of the comparison. Period.


Yes, Delphi and Laz/FPC are comparable, and 
Laz/FPC wins. Perhaps Laz/FPC don't have 24/7 
hundreds of programmers, but, and that's for me a 
good point, has no bad design decissions based on 
time to market or market share.



And I was not attacking you personally. You wrote the Delphi IDE is
better than Lazarus one, I answered you the IDE is one thing but what
is behind is still more important. Where is the problem?

mm


Well IDE is Integrated Development Editor, no? 
Delphi has the best E (Editor) on windows, but 
not the best D (Development). FPC is better (for 
me) than borland pascal compiler. As the E 
doesn't work under other systems, the E is better (for me) in Lazarus.




**
This document represent my ideas. They are 
original from me. It's forbidden think the same 
than me, without previous payment.
If you agree me, 
PAYME. 
LOOKOUT: Lawyer BITES. 


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


Re: [lazarus] The spirit lost of Borland

2006-09-14 Thread Micha Nelissen
Eduardo wrote:
 Well IDE is Integrated Development Editor, no? Delphi has the best E

Environment, usually. Integrated debugger, editor, designer, etc.

Micha

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


Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Micha Nelissen
Mattias Gaertner wrote:
 Ok. So GEXpert has a simple word search and not an identifier search.
 And this is wanted.
 Then the new functions will be called 'Find next word', 'Find previous
 word'. Ok?

From a complete outsider who has never used this function yet: wouldn't
an identifier search be more useful ? Usually you want to find where a
variable is written or something like that. At least, that's what I
often need. (But use 'regular' Find for).

Micha

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


Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Graeme Geldenhuys

On 14/09/06, Micha Nelissen [EMAIL PROTECTED] wrote:

Mattias Gaertner wrote:
 Ok. So GEXpert has a simple word search and not an identifier search.
 And this is wanted.
 Then the new functions will be called 'Find next word', 'Find previous
 word'. Ok?

From a complete outsider who has never used this function yet: wouldn't
an identifier search be more useful ? Usually you want to find where a
variable is written or something like that. At least, that's what I
often need. (But use 'regular' Find for).

Micha


That's the same way I used it in Delphi. Jumping through the code
looking where a certain variable has been used.

Graeme.

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


Re: [lazarus] Code completion features missing or not ?

2006-09-14 Thread Micha Nelissen
Graeme Geldenhuys wrote:
 From a complete outsider who has never used this function yet: wouldn't
 an identifier search be more useful ? Usually you want to find where a
 variable is written or something like that. At least, that's what I
 often need. (But use 'regular' Find for).
 
 That's the same way I used it in Delphi. Jumping through the code
 looking where a certain variable has been used.

Yes, so if it would skip occurances in comments etc. it would save some
time for me :)

Micha

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


[lazarus] Roadmap Qt update

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

Hello,

Green light for roadmap:
TListBox
TFileListBox
http://wiki.lazarus.freepascal.org/Roadmap

There is some page where is known who is working with x component?
--
http://luisdigital.com


QtListbox.png
Description: PNG image


Re: [lazarus] Patch - slackware package build script

2006-09-14 Thread Andrew Haines
A.J. Venter wrote:
 But you don't need to be root to create the package, do you?
 Actually you do. Slackware packages require that you set all the files as 
 root-owned before creating the tarball - and THAT cannot be done by a normal 
 user (permissions are specified at build-time, not install time).
 It would be possible to bypass this with fakeroot -but of couse that would 
 add 
 a new, stupid, dependency.
 Do you have similar scripts for fpc?
 Not yet no, but I will :)
 
 A.J.

Since slackware packages are just tar.gz files can't you just
do:INSTALL_PREFIX=~/my/install/path/usr make install
and then mkdir ~/my/install/path/install copy slack-desc to this folder
and then tar and gzip it?

Ok. before I sent this email I gave what I said a testrun.


here's what I did:


mkdir /tmp/slackware

wget lazarus-source.tar.gz // not the real filename I know...
tar -zxf ./lazarus-source.tar.gz

I changed the Makefile.fpc in lazarus/ to use the INSTALL_PREFIX (a
patch has been submitted for this) and used fpcmake to rebuild the Makefile

mkdir /tmp/slackware/usr
mkdir /tmp/slackware/install  //  slack-desc goes in here
echo (ln -sf /usr/share/lazarus/lazarus /usr/bin/lazarus) 
/tmp/slackware/install/doinst.sh
chmod +x /tmp/slackware/install/doinst.sh

cd ./lazarus

make

INSTALL_PREFIX=/tmp/slackware/usr/ make install

cd ../   (/tmp/slackware)

tar -cf lazarus-version-arch.tar
gzip ./lazarus-version-arch.tar
mv ./lazarus-version-arch.tar.gz mv ./lazarus-version-arck.tgz

that's it  :)

Works ok.

Andrew

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


Re: Regression in .lfm saving

2006-09-14 Thread Alexandre Leclerc

Ok, where is the code that fixed this problem? I'll check for myself
in svn for any changes. This is corrupting my files as it was before.
I need a patch on this.

Regards.

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

Hi all,

There was a successful patch when saving WideStrings in .lfm files by
adding '' for empty properties, but using the latest 9874 revision the
editor is not adding the '' anymore and this is corrupting the loading
of the .lfm files as before. (Previous working version I was using is
9773; so this must be somewhere between.)

Can someone confirm the patch has been lost?

--
Alexandre Leclerc




--
Alexandre Leclerc

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


Re: [lazarus] Patch - slackware package build script

2006-09-14 Thread Andrew Haines
Andrew Haines wrote:

 
 here's what I did:
 



 cd ../   (/tmp/slackware)
 
 tar -cf lazarus-version-arch.tar

should be
tar -cf lazarus-version-arch.tar ./usr ./install

Andrew

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


Re: [lazarus] Roadmap Qt update

2006-09-14 Thread Den Jean
On Thursday 14 September 2006 21:55, Luis R. Hilario B. wrote:
 Hello,

 Green light for roadmap:
 TListBox
 TFileListBox
nice, thx
 http://wiki.lazarus.freepascal.org/Roadmap

 There is some page where is known who is working with x component?

Why don't you just add your names to 
  http://wiki.lazarus.freepascal.org/index.php/Qt_Interface#Qt_4_Bindings
   components scheduled to be implemented

I saw in the svn logs that there were type redefinition problems,
should I conditionally define the type definitions ?

IFDEF WINDOWS
IFNDEF MESSAGESUNIT
...defines types like tagMSG ...
ENDIF
ENDIF

the one wo designed the include wizardry and knows 
the rationale, please advise

kind regards,

Den Jean

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