Re: [lazarus] My first GUI Application

2008-02-08 Thread Gerard N/A
Looks nice, congrats.

Gerard.


Re: [lazarus] ToDo List not working in IDE

2008-01-19 Thread Gerard N/A
Great, thanks.


Re: [lazarus] Delphi/Lazarus comparison by Codegear

2008-01-18 Thread Gerard N/A
On Jan 18, 2008 8:46 AM, Dave Coventry [EMAIL PROTECTED] wrote:

 Well, it was licensing issues that brought me away from Delphi.

 I have Delphi 3 Standard and I still code with it, I never upgraded to
 4 because it had a bad re tion, when 5 came out they had changed
 the license so that you were no longer free to distribute your
 applications unless you shelled out for the Enterprise edition which
 was out of my price bracket.


Uh? This would mean that I've been distributing apps illegally made with pro
versions for years. Are you sure?


Re: [lazarus] ToDo List not working in IDE

2008-01-18 Thread Gerard N/A
I added two reports with patches in the bug tracker, both for the parsing
issue (10650) and the comment (10651).


Re: [lazarus] Delphi/Lazarus comparison by Codegear

2008-01-18 Thread Gerard N/A
I just read Dephi 7 Pro (I don't have earlier versions installed anymore)
license.txt and deploy.txt and it says I can freely distribute my compiled
apps, along with some Borland binary files (runtime packages, BDE, Active X
Controls)
The only restrictions are for some of the runtime packages (Mainly Datasnap
and Websnap ) and the BDE SQL links for wich Enterprise is required.
Since I never used any of these, I'm Ok.
BTW, even the Personal edition has a list (shorter) of redistributable
packages.


Re: [lazarus] Delphi/Lazarus comparison by Codegear

2008-01-18 Thread Gerard N/A
On Jan 18, 2008 10:21 AM, Dave Coventry [EMAIL PROTECTED] wrote:

 Is that the Standard Edition?


No, it's the Professional edition.


 I have the Delphi 3 Standard Edition which allows me to distribute apps.


 I believe that subsequent Upgrades split into 'Standard Edition' and
 'Enterprise Edition'.


No, there was Personal, Professional and Enterprise. All three allowed
distribution.


Re: [lazarus] ToDo List not working in IDE

2008-01-16 Thread Gerard N/A
Hi Graeme,

I think I was the last to work on the TODO list.
And even if it may sound as a typical programmer excuse, last time I checked
it used to work. ;-)
You are right, it was working not so long ago, and I checked with 13776
under windows and it doesn't process the TODO entries you submitted.

I'll have a look to see what changed.

Regards,

Gerard.


Re: [lazarus] ToDo List not working in IDE

2008-01-16 Thread Gerard N/A
It seems it doens't even reach that method as it should in the loop from
line 570 to 586.


Re: [lazarus] ToDo List not working in IDE

2008-01-16 Thread Gerard N/A
It seems that the function BasicCodeTools.FindNextComment used to get the
comments ignores any comment that starts with '{' not immediatly followed by
a '$' ?


Re: [lazarus] New Docked IDE

2008-01-16 Thread Gerard N/A
Amazing! Is there a chance that we can see this as an option for the IDE?

Regards,

Gerard.


Re: [lazarus] French translation (suite)

2008-01-16 Thread Gerard N/A

 For the word Identifier, it seems Identifiant would be more
 appropriated, rather than Identificateur. Other colleagues of mine
 conform it. In fact Identificateur is not the good word, like
 Programmateur instead of Programmeur for a programer.


I think identificateur is right. Both the french wikipedia (
http://fr.wikipedia.org/wiki/Identificateur) and the french dictionary I
have at hand (Petit Robert) agree on it.

Regards,

Gerard.


Re: [lazarus] New Docked IDE

2008-01-16 Thread Gerard N/A
Great. There are times where having everything docked together is much more
convenient.


Re: [lazarus] ToDo List not working in IDE

2008-01-16 Thread Gerard N/A
This function (FindNextComment) is only used in
TStandardCodeTool.GetPasDocComments and TodoList. I don't think changing
it's behaviour would break anything.

The fix is as easy as removing the check for the dollar char.

at line 1137:

'{': Exit;
{  if (ResultMaxPos) and (ASource[Result+1]='$') then
exit;}


This makes the todo comments to be processed, but there is an additional
problem because the although they are added to the list, description doesn't
show up.

G.


Re: [lazarus] ToDo List not working in IDE

2008-01-16 Thread Gerard N/A
None of the todo items you submitted follows in the syntax expected by the
parser as it is now.
It's either:
{TODO: x  } or {DONE: x  }
or
{#todo: xxx xx  xx} or  {#done: xxx xx  xx} or
Optionally, you can add -oX for the owner and -cX for the category.

Regards,

Gerard.


Re: [lazarus] ToDo List not working in IDE

2008-01-16 Thread Gerard N/A
On Jan 16, 2008 6:30 PM, Graeme Geldenhuys [EMAIL PROTECTED] wrote:

 I normally do the above (Delphi style), but I saw the entries in the
 todo list dialog, so thought maybe the todo comments format has
 changed. I saw the other formats in the todolist.pas unit's header.  I
 tried those formats in my code and still nothing.


You are right, the  comments in the unit header are wrong. The parser
expects a semicolon anyway (#todo: or TODO:), then it works.


 PS:
 Maybe we should remove the old comment style from the todo list dialog
 header comment, to stop confusion?


Yes.


[lazarus] Cannot reach lazarus.freepascal.org

2008-01-16 Thread Gerard N/A
Is anybody able to reach http://lazarus.freepascal.org?
I get a timeout after the address is resolved.

Thanks,

Gerard.


Re: [lazarus] How to get transparent images from TImageList?

2007-12-21 Thread Gerard N/A
If I run project1, the images are displayed Ok, even if I add the ones that
I used in my own project.


Re: [lazarus] How to get transparent images from TImageList?

2007-12-20 Thread Gerard N/A
Sorry, I forgot to add:
- Win Xp Pro.
- NVidia GForce 5200
- 1024 X 768,  32 bits


[lazarus] How to get transparent images from TImageList?

2007-12-19 Thread Gerard N/A
Hi all,

I am writing a little app with Lazarus (SVN 13389) wich has two toolbars
with several buttons each.
There is an action list with some actions assinged to toolbar buttons, some
to main menu items, and some to both.
I droped a TImageList, added some 16X16 pixels bitmaps with a fuchsia
background , and assigned the image list to the toolbar and menus, and each
image index to the buttons and menu items.
At design-time, when I first open the  Imagelist dialog, the bitmaps
disappear from buttons and menu items.
Closing Lazarus and starting it again, and the bitmaps show up again.
That's anoying, but I can live with that.
The problem is that the images show up with the fuchsia background.
I think I have tried all the possible combinations of bkColor, BlendColor,
DrawingStyle, etc.. for the imagelist, but there is no way to have
transparency.
I loaded one more bitmap with a white background, and with bkColor and
BlendColor set to clWhite, it works.
Any hints?

Regards,

Gerard.


Re: A Lazarus IDE challenge

2007-12-13 Thread Gerard N/A
Hi Graeme,

are you aware of the licensing issues?
See:

http://blogs.msdn.com/jensenh/archive/2006/11/21/licensing-the-2007-microsoft-office-user-interface.aspx
and
http://msdn2.microsoft.com/en-us/office/aa973809.aspx

It seems that they changed their mind and now it's royalty free but you
still have to sign the license, wich can change at any moment at Microsoft
will.
I wouldn't loose a minute implementing this thing, and if everybody does the
same maybe they'll get the message and start behaving ;-)


Re: [lazarus] vote for bdd related component icon

2007-12-11 Thread Gerard N/A
I like the first, but I the third is more Delphi-like and it would probably
be easier to sport for people coming from Delphi.


Re: [lazarus] GUID generator in Lazarus

2007-12-06 Thread Gerard N/A
On Dec 6, 2007 8:13 AM, Graeme Geldenhuys [EMAIL PROTECTED] wrote:


 The Edit menu is already over populated and is very long,


Indeed.
My proposal:
In the main menu:
  Edit | Insert | GUID
In the editor window popup menu:
  Make a 'Insert' submenu, move 'Todo Item' under this submenu, and add
'GUID' also.
+1 vote for your shortcut proposal.
BTW, Insert ToDo Item should have a shortcut to.



Regards,

Gerard.


Re: [lazarus] New bitmap :-)

2007-12-04 Thread Gerard N/A
Excellent work, Laurent!


Re: [lazarus] TTodoItem : Not found

2007-11-25 Thread Gerard N/A
You had me looking at it, thou.g

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


Re: [lazarus] 0.9.24 released

2007-11-21 Thread Gerard N/A
Congratulations, it's major step forward.

Regards,

Gerard.

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


[lazarus] Status of visual form inheritance

2007-11-18 Thread Gerard N/A
Hi all,

Can you tell me what is the current status of visual form inheritance?
Is there somebody working on it?
Is there any bounty for it? (I can't see any in
http://wiki.lazarus.freepascal.org/Bounties)

Best regards,

Gerard.

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


Re: [lazarus] Status of visual form inheritance

2007-11-18 Thread Gerard N/A
Hi Mattias,

 It's basically working.
Cool.

 Missing features:
 - When descendant and ancestor forms are designed at the same time in
 the IDE and ancestor is changed: apply changes to descendants

Would be nice, but for the moment I can live without that. If closing
the descendants and reopening them later works, it's Ok.

 - Creating a new unit template of a form. At the moment you have to
 create a new form, close the designer form and change the ancestor in
 source.

It seems to be working without touching the .lfm, right?
The descendant lfm is automagically changed by setting the ancestor
in the source code declaration, wich is way cooler than
Delphi.


Regards,

Gerard.

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


Re: [lazarus] Enhanced TODO list patch

2007-11-07 Thread Gerard N/A
Hi Graeme,

 OK, so here is my wish list which should make it useful for me.

 * Search the current open projects source, including .inc files
for ToDo, TODO, #todo tags. It must support multiple tag formats
and maybe have a developer pick their preferred format (see later why)

Works in my patch with #todo and TODO. Adding ToDo is trivial, but
then maybe it should be todo in any case combination?.
My patch also supports #done and DONE

 * Support a category tag. Can't remember how Delphi specified this.
It was something like the following:
 { TODO:  Fix year-end calculation.  -c Accounting }

It was -cAccounting. Done in my patch.
I also added Delphi's -oOwner tag

 * Support a priority tag (1-9): eg:   { #todo This must be fixed urgently.  
 -1 }

Done.

 * Show them in a list.

Already works

 * List must be sortable by: Unit name, Description, Category and Priority

This would be great. It's quite doable, but I don't have a clue about
how to paint the sort arrows in the column headers in a way that works
on any platform.
The list could have a filtering option, also.

 * Double clicking a item must close the Todo list window and take you to
the location in the source unit.

Works.

 * ToDo items must be editable from the todo list screen. A simple little
edit dialog for entering a optional category, optional priority and
description

Would be nice, also to switch from Todo to Done. This is a little bit
more tricky. I guess I'd have to load the source in an editor and
change the Todo item?

 * A nice to have (though not urgent and not even sure if needed) would
be to have some editor keyboard shortcut to bring up a todo list edit
item dialog.  So while you are coding and want to insert a item
press the shortcut; fill in the details and press enter to close. The
source code would then have the item inserted in the correct format,
using the developers preferred todo tag format.

Amen. The only trick with Enter is that when the memo has focus, it
naturally eats Enter keys, but I agree that there should be a quick
way to validate the entry (Very annoying under D7, you have to grab
your mouse or tab until you get to the ok button).

I would add:
- Printing (If this is available from the IDE) or at least exporting
the list to text or HTML.

Regards,

Gerard.

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


Re: [lazarus] Enhanced TODO list patch

2007-11-07 Thread Gerard N/A
Hi Mattias,

 So forget for a moment the existing implementation and write what a good
 ToDo List dialog should do.

See my replies to Graeme wish list, I think it covers pretty much what
a Todo List should do.
I'm not sure what the scope of the list should be, but  I think there
should be an option to exclude the LCL sources.

Regards,

Gerard.

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


Re: [lazarus] Enhanced TODO list patch

2007-11-07 Thread Gerard N/A
Mattias,

Is there a way to discriminate between used units on a package basis?
If so, one UI solution could be to put a small treeview on the left of
the list form, with a source code structure like:

+- MyProject.lpi
|
   +- MyUnit1.pas
   +- MyUnit2.pas
+- LCL
+- FCL

With the current project only selected as a default, it would faster
to load, and switching to the rest of the source could be faster than
using a dialog.

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


Re: [lazarus] Enhanced TODO list patch

2007-11-07 Thread Gerard N/A
See attached image for and idea of what I mean
attachment: todolist.PNG

Re: [lazarus] Enhanced TODO list patch

2007-11-06 Thread Gerard N/A
Do you mean the actual SVN or my Patch?
I tested my patch against a small test project (Prj + 2 units + 1 include file).
The only TODO's that don't make it in the list are the ones in the .inc file.

Regards,

Gerard.

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


Re: [lazarus] Enhanced TODO list patch

2007-11-06 Thread Gerard N/A
I think it doesn't load the includes because it parses the include
file name, but passes it as it is without path to the loading routine,
so the file cannot be loaded.
Any idea where I can get the current project path?

Regards,

Gerard.

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


Re: [lazarus] Enhanced TODO list patch

2007-11-06 Thread Gerard N/A
Hi,

 1. Can you create a patch? See
 http://wiki.lazarus.freepascal.org/Creating_A_Patch

Sure.

 2. Don't use implementation uses sections in the IDE.

Ok.

 3. Don't load source files from disk. Always use

 CodeToolBoss.LoadFile(CleanAndExpandFilename(Filename),true,false).

Ok, I'll correct this. (I didn't touch this).

 4. Why only for the project directory?

Sheer ignorance of any alternative method.

 5. Why not use the existing functions to get all units and
 include files of projects/packages?

See above.
Do you mean to parse all the units used by a project including the LCL?

 6. Why not use the existing comment parsing code? It is faster and not
 limited to single line comments.

Any hint on how to do this?
More in general, can you point me to a some high level description of
the IDE structure and services?

 Maybe you can describe, what todos the ToDo dialog should maintain?

Any Todo displayed by the list? I'm sorry but I think I don't
understand the question.
BTW, I'm not the original author of the Todo list/Add Todo Item
dialog, I just added some functionality, so it's hard for me to answer
questions about the design of these.

Regards,

Gerard.

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


Re: [lazarus] Revision 12704

2007-11-03 Thread Gerard N/A
Confirmed on Win32 (XP) with SVN 12712.

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


Re: [lazarus] Revision 12704

2007-11-03 Thread Gerard N/A
BTW, reported in the bug tracker as #10104

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


Re: [lazarus] Revision 12704

2007-11-03 Thread Gerard N/A
Wow, that was fast. ;-)

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


Re: [lazarus] crash on compiler-options

2007-10-05 Thread Gerard N/A
On 10/5/07, John vd Waeter [EMAIL PROTECTED] wrote:

 Hi all,

 Beginner in Lazarus, experience in Delphi since 1.0

 Installed snapshot 20071005 on winXP.

 Open Compiler Options, click on tab Messages
 A lot of jittering on the tab and then:
 Unknow RT Error 202  OK to ignore, Cancel to kill.

 It's a reported bug.
See reports:
http://www.freepascal.org/mantis/view.php?id=9494
http://www.freepascal.org/mantis/view.php?id=9631
http://www.freepascal.org/mantis/view.php?id=9583


Regards,

Gerard.