Re: [lazarus] going legal, time for a name change....

2007-08-13 Thread Tom Verhoeff
On Wed, Aug 08, 2007 at 09:09:05AM +0200, Michael Van Canneyt wrote:
> 
> Also, a name change is not debatable: it will not be done. This is a done
> discussion, held a long time ago.

Still, one needs to make some distinctions, because different names
are used for companies, foundations, and products.  There is nothing
wrong with a Lazexy foundation working on a Lazarus product, and
possibly other products as well.

Which names do we want to register for what reason?

Lazarus (the product) has been around and in the open for a fairly
long while already.

Just my 2 cents,

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


Re: [lazarus] Lazarus foundation news

2007-08-04 Thread Tom Verhoeff
On Thu, Aug 02, 2007 at 12:11:27AM +1000, David Lyon wrote:
> 
> As in most countries, the registration cost itself is not expensive. It 
> is all the support paperwork that needs to be done to comply with all 
> the requirements. This takes time, and lawyers normally already have it 
> all done (by a legal secretary at a low wage) and then resell it when 
> they can.  When it comes to Law, Lawyers usually have you over a barrel. 
> And if you ever want to fight them, guess what, you need to hire another 
> lawyer. Being friends with them and paying them a reasonable fee is 
> always what I recomend. Cheapest option in the long term.
> 
> The costs that I am hearing are roughly 2500 euro for legal costs for 
> Germany.

In the Netherlands, creating a not-for-profit Foundation (as a legel
entitity, with a board that is not personally liable, and which can
have possessions) will cost roughly EUR 500.  I did this 2 years ago.

The main thing to do is decide on Statutes, that express the purpose
of the Foundation and restrictions on how it is run (and how it can
be dissolved).  The Statutes also define the name and location (city
where it is registered).  I would think that the Statutes must be
writtin in Dutch, but don't know for sure.

Such a Foundation must have a Board (details to be described in its
Statutes), including a Chair and Treasurer (typically also a Secretary),
and possibly other board members (but one cannot be a member of the
Foundation itself; in contrast to a "club" (in German: Verein).  It is
required by law to keep a decent administration, in particular a financial
administration.

The founders and initial board members (minimum two persons, I think)
must appear in person before a notary.

The Foundation can then open bank accounts and participate in contracts,
etc.

Best regards,

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


[lazarus] Doing the Delphi 6 Text Editor Tutorial in Lazarus?

2007-04-04 Thread Tom Verhoeff
I have some students who are trying to complete the Delphi 6
Text Editor tutorial using Lazarus.  See e.g. Chapter 4 of



They run into some problems.  E.g. Lazarus apparently does not
(yet) have ActionManagers.  Hence, also the configuration of
standard actions like Cut/Copy/Paste is not a matter of a few clicks.

How hard is it to do this "yourself" (i.e. not using an ActionManager,
write the necessary code)?  Note that TAction and a number of related
facilities are available in Lazarus.

I suggested to them to drop the toolbar and code the actions directly into
the (menu) event handlers.  But this still requires that they discover
a few extra things (e.g. concerning Cut/Copy/Paste), and do more work.

Also, the RichEdit component seems to need a workaround (e.g. TMemo,
TSynMemo, TSynEdit).

Does anyone have some (additional) advice?

Thanks,

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Dept. of Math. & Comp. Science
PHONE:  +31 40 247 41 25| Technische Universiteit Eindhoven
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


Re: [lazarus] Looking for experience using Lazarus in programming education

2007-01-27 Thread Tom Verhoeff
On Fri, Jan 26, 2007 at 08:43:11PM +0100, Bogusław Brandys wrote:
> Tom Verhoeff wrote:
> >We have been using FreePascal for many years in our programming
> >education (see signature for location).  Students mostly developed their
> >(typically small, console apps) with Delphi, and submitted it to
> >our PEACH.win.tue.nl system for grading.
> >
> 
> Let them fix Lazarus bugs for grading ;-)

Sure, but you will have to bootstrap the process.  Before students can
contribute, you'll have to teach them the basics.  And before that can
happen, there needs to be a convincing case for actually using the tools.
I would like to give it a try, but I cannot decide by myself.  Others
in our department need to be convinced.

If people have some success stories (even better: with web presence),
then I can use that to prime the cycle.

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


[lazarus] Looking for experience using Lazarus in programming education

2007-01-26 Thread Tom Verhoeff
We have been using FreePascal for many years in our programming
education (see signature for location).  Students mostly developed their
(typically small, console apps) with Delphi, and submitted it to
our PEACH.win.tue.nl system for grading.

We are not so happy with the direction that Delphi is going, especially
after Delphi 7.  Possibly TurboDelphi is viable (your opinion on this
is welcome as well).

Some people (incl. students) in our department who have tried Lazarus
in the past have reported in a negative way, and this is now making it
difficult to move to Lazarus.

In my opinion, the multi-platform support of Lazarus is a big pro.
And also its open-source character.

I am interested in collecting experiences with using Lazarus in
education, in particular as a tool of primary choice for programming.

Let me hear those success stories, so I convince others ...

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


Re: [lazarus] Lazarus/Freepascal Propaganda

2006-06-19 Thread Tom Verhoeff
> Propaganda:
> Marketing:
> Gospel:

How about Advocacy?  = "active support; especially the act of pleading
or arguing for something"

(Or do you think people will believe it to mean "lying by lawyers"?)

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


Re: [lazarus] Installing FPCUnit under Lazarus failure (progress)

2006-06-14 Thread Tom Verhoeff
On Wed, Jun 14, 2006 at 06:48:23PM +0200, Vincent Snijders wrote:
> Tom Verhoeff wrote:
> >On Tue, Jun 13, 2006 at 10:54:55PM +0200, Tom Verhoeff wrote:
> >
> >>When I try to install the FPCUnit package under Lazarus as described in
> >>fpcunit.pdf, the recompile of Lazarus fails on step 5.  I use Mac OS X.
> >>
> >>Step 5 (install fpcunitide.lpk) fails with:
> >>svn2revisioninc.pas(187) Error: Can't create assembler file: 
> >>./svn2revisioninc.s
> >
> >
> >It turns out that the permissions of the directories are at the source of
> >this problem.  I tried it from an administrator account, but that didn't
> >work.  Then I changed the owner of the whole dirtree at
> >/usr/local/share/lazarus from root to myself.  This solved the compile
> >error above.
> >
> >Two new issues arise:
> >
> >  *  Why is the installation (on Mac OS X) done in this way?  Apparently
> > it breaks the ability to install packages.  How to solve that in
> > a user-friendly way?  Who is involved in this part of Lazarus?
> 
> I am involved (as the person who made that installer), but I am not a 
> Mac OS X user, so I rely heavily on feedback from the users.
> 
> How do you think this can be improved?

Hard to say.  As pointed out by Mattias, when installing a package,
it should not be necessary to write in the lazarus install directory
(except that it does happen on Mac OS X, but this is a confirmed bug,
still to be eliminated).

Of course, if one wants to install a new compiler from svn, the
sources must be downloaded somewhere, compiled, and then installed.
It seems easiest to download sources from svn into the install location,
because lcl sources need to be there anyway.  In that case, certain
install directories must be writable by the account used for compiling
lazarus.

I don't have a strong technical background in Mac OS X to know how
to solve this elegantly.  I am surprised that I still had the problem
when operating from an administrator account.

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


Re: [lazarus] Installing FPCUnit under Lazarus failure (progress)

2006-06-14 Thread Tom Verhoeff
On Tue, Jun 13, 2006 at 10:54:55PM +0200, Tom Verhoeff wrote:
> When I try to install the FPCUnit package under Lazarus as described in
> fpcunit.pdf, the recompile of Lazarus fails on step 5.  I use Mac OS X.
> 
> Step 5 (install fpcunitide.lpk) fails with:
> svn2revisioninc.pas(187) Error: Can't create assembler file: 
> ./svn2revisioninc.s

It turns out that the permissions of the directories are at the source of
this problem.  I tried it from an administrator account, but that didn't
work.  Then I changed the owner of the whole dirtree at
/usr/local/share/lazarus from root to myself.  This solved the compile
error above.

Two new issues arise:

  *  Why is the installation (on Mac OS X) done in this way?  Apparently
 it breaks the ability to install packages.  How to solve that in
 a user-friendly way?  Who is involved in this part of Lazarus?

 This concerns the recent 0.9.16 release of Lazarus for Mac OS X,
 installed through the accompanying installer.

  *  The compile still fails, but now for a completely different reason:

Compiling /usr/local/share/lazarus/converter/DelphiProject2Laz.pas
DelphiProject2Laz.pas(188,13) Error: Identifier not found 
"ExtractOptionsFromDelphiSource"
DelphiProject2Laz.pas(434,15) Error: Identifier not found 
"ExtractOptionsFromDPK"
DelphiProject2Laz.pas(668,72) Error: Wrong number of parameters specified
DelphiProject2Laz.pas(701,71) Error: Wrong number of parameters specified
DelphiProject2Laz.pas(789,65) Error: Incompatible type for arg no. 2: Got 
"AnsiString", expected "Boolean"
DelphiProject2Laz.pas(830,16) Error: Identifier not found "FindDelphiDOF"
DelphiProject2Laz.pas(832,13) Error: Identifier not found 
"ExtractOptionsFromDOF"
DelphiProject2Laz.pas(837,16) Error: Identifier not found "FindDelphiCFG"
DelphiProject2Laz.pas(839,13) Error: Identifier not found 
"ExtractOptionsFromCFG"
DelphiProject2Laz.pas(919,16) Error: Identifier not found "FindDelphiDOF"
DelphiProject2Laz.pas(921,13) Error: Identifier not found 
"ExtractOptionsFromDOF"
DelphiProject2Laz.pas(926,16) Error: Identifier not found "FindDelphiCFG"
DelphiProject2Laz.pas(928,13) Error: Identifier not found 
"ExtractOptionsFromCFG"

This concerns the recent 0.9.16 release of Lazarus for Mac OS X, installed
through the accompanying installer.

Any suggestions?

Thanks,

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


[lazarus] Installing FPCUnit under Lazarus failure

2006-06-13 Thread Tom Verhoeff
When I try to install the FPCUnit package under Lazarus as described in
fpcunit.pdf, the recompile of Lazarus fails on step 5.  I use Mac OS X.

Step 3 (compile, but do not install fpcunittestrunner.lpk) goes fine:

Free Pascal Compiler version 2.0.2 [2005/11/15] for powerpc
Copyright (c) 1993-2005 by Florian Klaempfl
Target OS: Darwin for PowerPC
Compiling fpcunittestrunner.pas
Assembling fpcunittestrunner
14 Lines compiled, 4.2 sec
"Compiling package FPCUnitTestRunner 0.1" completed

Step 5 (install fpcunitide.lpk) fails with:
svn2revisioninc.pas(187) Error: Can't create assembler file: ./svn2revisioninc.s

Any idea what I need to do to overcome this?  I tried to run this from
an administrator account as well; same negative result.

Here is the complete output of step 5:

CreateBuildLazarusOptions LazDir readonly 
NewTargetDirectory=/Users/wstomv/.lazarus/bin
CreateBuildLazarusOptions LazDir readonly 
NewTargetDirectory=/Users/wstomv/.lazarus/bin
[TExternalToolList.Run] CmdLine="/usr/bin/make ide -w" 
WorkDir="/usr/local/share/lazarus/"
make: Entering directory `/usr/local/share/lazarus'
Makefile:3742: warning: overriding commands for target `examples'
Makefile:3704: warning: ignoring old commands for target `examples'
/usr/bin/make -C ide ide
make[1]: Entering directory `/usr/local/share/lazarus/ide'
/usr/bin/make -C ../tools svn2revisioninc OS_TARGET=darwin OPT=''
make[2]: Entering directory `/usr/local/share/lazarus/tools'
Makefile:2728: warning: overriding commands for target `.'
Makefile:2726: warning: ignoring old commands for target `.'
/usr/local/bin/ppcppc -gl -Fu. -Fu../lcl/units/powerpc-darwin 
-Fu../lcl/units/powerpc-darwin/gtk 
-Fu/usr/local/lib/fpc/2.0.2/units/powerpc-darwin/rtl 
-Fu/usr/local/lib/fpc/2.0.2/units/powerpc-darwin/paszlib 
-Fu/usr/local/lib/fpc/2.0.2/units/powerpc-darwin/netdb 
-Fu/usr/local/lib/fpc/2.0.2/units/powerpc-darwin/libasync 
-Fu/usr/local/lib/fpc/2.0.2/units/powerpc-darwin/pthreads 
-Fu/usr/local/lib/fpc/2.0.2/units/powerpc-darwin/fcl 
-Fu/usr/local/lib/fpc/2.0.2/units/powerpc-darwin/pasjpeg 
-Fu/usr/local/lib/fpc/2.0.2/units/powerpc-darwin/ibase 
-Fu/usr/local/lib/fpc/2.0.2/units/powerpc-darwin/postgres 
-Fu/usr/local/lib/fpc/2.0.2/units/powerpc-darwin/mysql 
-Fu/usr/local/lib/fpc/2.0.2/units/powerpc-darwin/odbc 
-Fu/usr/local/lib/fpc/2.0.2/units/powerpc-darwin/oracle 
-Fu/usr/local/lib/fpc/2.0.2/units/powerpc-darwin/sqlite -FE. -FU. -dpowerpc 
svn2revisioninc.pas
Free Pascal Compiler version 2.0.2 [2005/11/15] for powerpc
Copyright (c) 1993-2005 by Florian Klaempfl
Target OS: Darwin for PowerPC
Compiling svn2revisioninc.pas
svn2revisioninc.pas(187) Error: Can't create assembler file: ./svn2revisioninc.s
svn2revisioninc.pas(185,1) Fatal: There were 1 errors compiling module, stopping
TExternalToolList.Run Exception: 
/usr/local/share/lazarus/tools/svn2revisioninc.pas(185,1) Fatal: There were 1 
errors compiling module, stopping
TPascalParserTool.BuildTree B OnlyIntf=True  
/usr/local/share/lazarus/tools/svn2revisioninc.pas
TPascalParserTool.BuildTree B OnlyIntf=False  
/Users/wstomv/test/lazarus/simple_treeviewer/simple_treeviewer.lpr
TMainIDE.DoLoadLFM there is no LFM file for 
"/usr/local/share/lazarus/tools/svn2revisioninc.pas"
TMainIDE.DoBuildLazarus: Build Lazarus without linking failed.

Thanks,

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


Re: [lazarus] offline help system

2006-06-13 Thread Tom Verhoeff
On Fri, Jun 09, 2006 at 09:32:05AM +0200, Vincent Snijders wrote:
> Bisma Jayadi wrote:
> >
> >2. After download, I copy FCL, LCL, and RTL folder to local Lazarus docs 
> >folder (mine in c:\programs\lazarus\docs)
> 
> Seriously, if you want to use off line help, download the tar.bz2 from
> http://sourceforge.net/project/showfiles.php?group_id=92177&package_id=138755&release_id=330119

It appears that the tar.bz2 file mentioned above does not contain an fcl
directory.  Can that be downloaded separately, or is it simply missing?

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


Re: [lazarus] Compile fails on project with long pathname (MacOS X)

2006-05-23 Thread Tom Verhoeff
On Mon, May 22, 2006 at 08:07:30AM +0200, Vincent Snijders wrote:
> Tom Verhoeff wrote:
> >I recently upgraded to 0.9.14 and started a project, whose code
> >is in a deeply nested directory tree with fairly long directory names,
> >where one of the directory names contains a space.
> >
> >When compiling from the ide, this fails at the assembler.  It seems
> >to report a cut off path (the part with the space is included), though
> >this could only be in the message printed (and not in the argument that
> >it received).
> >
> >Does anyone have an idea what is the problem here?
> 
> There has been a similar bug report (but not the same), which I tried 
> hard to reproduce, but could not. The bug report was closed.
> 
> http://www.freepascal.org/mantis/view.php?id=900
> 
> If you are willing to help me to reproduce this error, you can submit a 
> new bug report.

I'll try, but it is not that simple.

Part of the problem may be that Lazarus supplies full (absolute) paths to
the compiler (at least in the way I am using it; though I did not change
many options from their defaults).  However, when I use fpc separately
(not with Lazarus), I typically provide relative paths (which are much
shorter).

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


[lazarus] Compile fails on project with long pathname (MacOS X)

2006-05-21 Thread Tom Verhoeff
I recently upgraded to 0.9.14 and started a project, whose code
is in a deeply nested directory tree with fairly long directory names,
where one of the directory names contains a space.

When compiling from the ide, this fails at the assembler.  It seems
to report a cut off path (the part with the space is included), though
this could only be in the message printed (and not in the argument that
it received).

Does anyone have an idea what is the problem here?

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


Re: [lazarus] Encryption library

2006-02-05 Thread Tom Verhoeff
On Mon, Jan 30, 2006 at 03:24:38AM -0500, [EMAIL PROTECTED] wrote:
> > There is an urgen need for an Encryption library ready to use on Lazarus.
> > Searching on the WEB, I found some open source libraries that could
> > probably
> > be converted to Lazarus, but, there are asm pieces of code. An example is
> > TurboPower's LockBox library.
>
> Got this list from the freepascal contributed units page, I can`t say
> which if any of them are in active developement/maintained though.
> 
>  http://daniel.slackfiles.net/crypto/
> http://www.win.tue.nl/~wstomv/software/AES-Rijndael/

I do not intend to update the bottom one (AES-Rijndael).
I made it available to be used as is (it is a port from other languages).

Furthermore, it only provides the basic (ECB = Electronic Code Book)
mode of operation (that is what I needed at the time).  For practical
(true security) appilications you would need to put more secure modes
on top of ECB, e.g. to encrypt files consisting of multiple blocks.
See www.nist.gov for some good pointers (through their cryptographic
toolkit).

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


[lazarus] YahtzeeTrainer now is open source software based on Lazarus/FPC

2005-08-15 Thread Tom Verhoeff
I have (finally) ported my YahtzeeTrainer software to Lazarus/FreePascal
and made it available as open source:



I would appreciate some feedback from people who use the Linux or
Windows platform.  I have only compiled it under Mac OS X (powerpc,
darwin; where I don't get to see the progress bars when creating
the tables).

By the way, it is not a good idea to use the tables generated under
Mac OS X on Linux or Windows (different byte order in reals).  And
I don't know whether the Windows tables generated under Delphi
(with YahtzeeTrainer 1.2.1) work with Lazarus.  So it is safest
to recreate the tables (takes some time :-).

Best regards,

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


Re: Eclipse lazarus and marketing

2005-08-15 Thread Tom Verhoeff
On Mon, Aug 15, 2005 at 02:00:56PM +0700, Yoppy Sundawa wrote:
> 
> I have known fpc for quite long time now, 
> but I just found lazarus about a month ago  
> .. and I wonder why can "something" this big
> can perfectly hidden from me (us) for all
> this time.

I have known Lazarus for a longer time, but have started to use
it (very) recently, because

(1) It is now usable on Mac OS X (powerpc-darwin).

(2) It now actually works well enough to do realistic applications
(I hope to publish my project later today.)

But Lazarus still has serious limitations, which could easily scare people
away (in completeness, func. quality, reliability, and documentation).

I have decided against using Lazarus in my teaching at this moment
(though I will mention it; instead, we'll use Delphi/bare FPC).  But I
do use the FreePascal compiler (for many years already) in my teaching.
FPC is also used heavily by the informatics olympiad community (where
the lack of a good (Linux) Pascal IDE is still considered problematic).

(Will respond later to marketing mails etc.  Good work!)

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


Re: [lazarus] Further questions when porting a Delphi project

2005-08-14 Thread Tom Verhoeff
On Mon, Aug 15, 2005 at 12:09:37AM +0200, Marc Weustink wrote:
> Mattias Gaertner wrote:
> >On Sat, 13 Aug 2005 23:20:05 +0200
> >
> >You create the two forms with Owner Self (=MainForm).
> >This is not allowed. The components of a form must have unique names or
> >none.
> >
> >Create with Owner 'Application'. This will auto rename the forms.
> 
> This is not the same as in delphi.
> There names are fixed in TReader.ReadRootComponent which uses 
> FindGlobalComponent (which looks in Screen.Forms). This is independent 
> of the owner of the form

I can confirm that my original Delphi application, where the owner was
NOT Application, works with multiple instances of the same form.

The workaround provided by the current (rev. 7497) Lazarus implementation
is fine with me.  But future improvement would certainly be helpful.

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


Re: [lazarus] Further questions when porting a Delphi project

2005-08-14 Thread Tom Verhoeff
On Sun, Aug 14, 2005 at 07:44:14PM +0200, Mattias Gaertner wrote:
> 
> You create the two forms with Owner Self (=MainForm).
> This is not allowed. The components of a form must have unique names or
> none.
> 
> Create with Owner 'Application'. This will auto rename the forms.

Thanks.  It now works (also in the application being ported)!

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


[lazarus] Fonts and TLabel, TEdit, TButton, TMemo

2005-08-12 Thread Tom Verhoeff
Can someone enlighten me on the current state of font usage
in the LCL and the Lazarus IDE?

As explained earlier, I would like to use a fixed width font to
present some tables in a TMemo component.  However, I have been
unscuccessful so far.

I found out the following, using the Lazarus IDE (recent version from SVN;
fpc 2.1.1 on powerpc-darwin with gtk):

  *  When setting TLabel.Font.Pitch to fpFixed in the Object Inspector (OI),
 you immediately see that a Courier-like font is selected to render
 the label on the form's design window in the IDE.

 This font is also used when the application is run.

  *  When doing the same for TButton or TMemo, the debug output
 of the IDE says

TGtkWSWinControl.SetFont: implement me!

 and indeed nothing happens on the form's design window in the IDE,
 and also not when the application is run.

  *  TEdit does not have a Font property in the OI.

Setting the TButton or TMemo.Font (Name, Pitch) in the application itself
also does not work.

The Lazarus IDE itself, as I use it on my system, does however
present source code in the Lazarus Source Editor window using a
fixed width (courier) font.  I can even find this in the
editoroptions.pp source file for the IDE, where I see things like

  fEditorFont:='courier';
  ...
  ASynEdit.Font.Name:=fEditorFont;


Why can't my application do the same thing?

It surely must be something simple that I overlooked (or is font support
indeed still missing for TButton, TMemo, ...).
This is the last thing that my port needs to be usable :-).

Thanks for any suggestions,

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


[lazarus] Font property of TEdit appears to work; make it published?

2005-08-11 Thread Tom Verhoeff
Earlier, I complained about the lack of the Font property in the
Object Inspector for TEdit components.

It turned out that it had been withdrawn from published, because
of some (unspecified) problems.

I have now tried to manipulate the TEdit.Font property directly in the
application (rather than from the .lfm).  This seems to work well enough
(just the same way as it does right now for TLabel, TMemo, TButton etc.).

Would it be reasonable to make the TEdit.Font property published (again)?
Or should I submit this request in Mantis?

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


Re: [lazarus] Further questions when porting a Delphi project

2005-08-11 Thread Tom Verhoeff
On Thu, Aug 11, 2005 at 11:01:17AM +0200, Marc Weustink wrote:
> Alexander Todorov wrote:
> >>2.  Why can't multiple forms of the "same name" be created?
> >>Delphi has no problems with this.  
> >
> >
> >In delphi the two forms are not with the exact same name. At work we
> >have an application with many forms that can be opened many times.
> >When TfMyForm is opened for the firms time its name is fMyForm
> >(suppose you named it this way in OI). The second time its opened
> >(e.g. obj := TfMyForm.Create) it has name something like fMyForm_1,
> >the third fMyForm_2 and so on.
> >I think when creating form dynamically Delphi automatically adds
> >numbers after the name to prevent errors. This is at least what i have
> >seen.
> 
> DUH I've never noticed this. I tried it with Delphi 6 and indeed, 
> the name is postfixed with _i
> 
> Think we need to implement that.

That would be quite helpful (for my application), and useful for others
(if not now, then in the future).

Thanks,

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


Re: [lazarus] Further questions when porting a Delphi project

2005-08-11 Thread Tom Verhoeff
On Thu, Aug 11, 2005 at 10:58:48AM +0300, Alexander Todorov wrote:
> > So, how can I accomplish renaming (automatic or manual) under Lazarus?
> > Or is that not (yet) possible?
> 
> Are you doing something like:
> 
> Form := TMyForm.Create(Owner);
> Form.Name := 'Form1';
> 
> that gets called every time when the form is created 
> Try not assigning names and it should work. 
> 
> NOTE: I have not tested this with Lazarus but in Delphi its possible
> to Create a control without assigning any name to it. In this
> particular case "auto naming" comes in the game, I think.

The second invocation of

VMyForm := TMyForm.Create(...);

causes the exception.  The program does not even get the opportunity to
set a name.  My program currently in fact does NOT set the name after
creation.  It has been set manually in the Object Inspector, and this is
the base name for the type/variable in the form's unit.  Changing that
name in the OI, changes the type/variable names throughout the source.

The form must have a name.  But I would think it is only needed at
design time (the Lazarus IDE uses it), not at runtime.

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


Re: [lazarus] Further questions when porting a Delphi project

2005-08-11 Thread Tom Verhoeff
On Thu, Aug 11, 2005 at 02:02:36AM +0300, Alexander Todorov wrote:
> >  2.  Why can't multiple forms of the "same name" be created?
> >  Delphi has no problems with this.  
> 
> In delphi the two forms are not with the exact same name. At work we
> have an application with many forms that can be opened many times.
> When TfMyForm is opened for the firms time its name is fMyForm
> (suppose you named it this way in OI). The second time its opened
> (e.g. obj := TfMyForm.Create) it has name something like fMyForm_1,
> the third fMyForm_2 and so on.
> I think when creating form dynamically Delphi automatically adds
> numbers after the name to prevent errors. This is at least what i have
> seen.

So, how can I accomplish renaming (automatic or manual) under Lazarus?
Or is that not (yet) possible?

The name is embedded in the .lrs file, where it is hard to change.
Changing it in the constructor would be too late, I fear.

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


Re: [lazarus] Further questions when porting a Delphi project

2005-08-11 Thread Tom Verhoeff
On Wed, Aug 10, 2005 at 11:19:58PM +0200, Tom Verhoeff wrote:
> 
> There remain some "cosmetic" issues (and, no doubt, others will appear
> under further testing).  The most important ones at this moment:
> 
>   1.  How can one use a fixed width font in a TMemo?  (Note: I develop this
>   under Darwin, not Windows.)  I haven't got a clue what to do.
>   I have tried things like setting Font.Pitch to fpFixed.  But that does
>   not help.

The reason for wanting this (monospaced font in TMemo) is that I use
the TMemo to present some tables in a compact textual form.  The fixed width
is needed to keep the columns aligned.

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


[lazarus] Further questions when porting a Delphi project

2005-08-10 Thread Tom Verhoeff
I can report that my Delphi project has now been ported successfully
to Lazarus under MacOSX/Darwin.  Thanks for all the help!

There remain some "cosmetic" issues (and, no doubt, others will appear
under further testing).  The most important ones at this moment:

  1.  How can one use a fixed width font in a TMemo?  (Note: I develop this
  under Darwin, not Windows.)  I haven't got a clue what to do.
  I have tried things like setting Font.Pitch to fpFixed.  But that does
  not help.

  2.  Why can't multiple forms of the "same name" be created?
  Delphi has no problems with this.  My Lazarus compiled project
  complains:

Duplicate name: A component named "..." already exists.

  I would like to fill an array with similar forms.

Thanks,

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


Re: [lazarus] OnCreate of MainForm not called after Application.CreateForm

2005-08-09 Thread Tom Verhoeff
On Tue, Aug 09, 2005 at 07:39:45PM -0400, Andrew Haines wrote:
> Tom Verhoeff wrote:
> 
> >Next question: where is the code that loads the .lfm file and assigns
> >FOnCreate upon reading 'OnCreate =' from .lfm ?  Where/when is that code
> >activated?  How could that go wrong?
> 
> As far I know the lfm is not actually a valid freepascal file, but is 
> converted into a file with the same name but with the .lrs extension 
> which is included with the {$I myunit.lrs} directive.
> 
> at the bottom of your unit is there a section that looks like this:
> 
> initialization
>  {$I unit1.lrs}
> 
> where unit1 = the name of the unit
> 
> if this is not there then that could cause what you've stated, and more 
> bad things

This was indeed not the case, and adding it resolved the problem. Thanks!

I converted my unit through Tool->Convert Delphi unit to Lazarus unit.
Is insertion of that initialization code something that can go wrong?

The code now runs "somewhat" :-).  Windows are shown ... but the next
issue has already popped up.  Will get back later.

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


Re: [lazarus] OnCreate of MainForm not called after Application.CreateForm

2005-08-09 Thread Tom Verhoeff
On Tue, Aug 09, 2005 at 10:44:32AM +0200, Micha Nelissen wrote:
> 
> FOnCreate is called in TCustomForm.DoCreate. DoCreate is called in
> TCustomForm.Create (the constructor). Try setting a breakpoint in the
> constructor and walking through. 

(Breakpoints don't seem to work under Darwin yet.)

I added/activated some DebugLn statements in the appropriate LCL files.

To my surprise, TCustomForm.DoCreate acts as if FOnCreate is not assigned.
Of course, this explains the behavior I see.  (It turns out to be assigned
in my simple Hello World.)

The facts: in my misbehaving Main.lfm there is

object MainForm: TMainForm
  ...
  OnCreate = FormCreate

and TMainForm.FormCreate(Sender: TObject) is defined in my Main.pas.
The ObjectInspector shows that the OnCreate event is set to FormCreate
and it finds the appropriate code (when clicking ...).

Next question: where is the code that loads the .lfm file and assigns
FOnCreate upon reading 'OnCreate =' from .lfm ?  Where/when is that code
activated?  How could that go wrong?

Thanks for all the help so far.

By the way, I have no override on the Create method in TMainForm (so
inherited was not forgotten).

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


Re: [lazarus] Font property of TEdit objects not recognized in .LFM files

2005-08-09 Thread Tom Verhoeff
On Mon, Aug 08, 2005 at 01:03:55PM +0200, Vincent Snijders wrote:
> Tom Verhoeff wrote:
> >I am in the process of converting a fairly large Delphi (6) project
> >to Lazarus.  I use FPC 2.0.0 with the most recent Lazarus from SVN
> >(revision 7490, which compiled fine; though the Lazarus IDE keeps giving
> >me Access violations, which I simply ignore) on Mac OS X (Darwin).
> 
> It would be interesting to know, what causes the access violations.

It consistently occurred when the mouse entered a tab of the Lazarus
Source Editor window (and some other areas of that window).

However, I recompiled Lazarus with FPC 2.1.1 and the problem has now
disappeared.

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


Re: [lazarus] OnCreate of MainForm not called after Application.CreateForm

2005-08-08 Thread Tom Verhoeff
On Mon, Aug 08, 2005 at 10:08:13PM -0700, George Lober wrote:
> Tom Verhoeff wrote:
> 
> >On Mon, Aug 08, 2005 at 11:22:44PM +0200, Micha Nelissen wrote:
> >
> >>Is the FormCreate procedure in the published section of the Form class 
> >>definition ? That's all I can think of right now...
> >
> >In both the problematic large Delphi project and my working Hello World
> >example, the FormCreate is right below TMainForm = class(TForm), without
> >preceding modifier (neither private, published, public, protected, ...).
> >
> >I use GTK(1).  It is a nightmare to trace the handling of events through
> >the code.  I cannot even find where the OnCreate event is supposed to be
> >generated as a consequence of (form) creation.
> 
> What version of Lazarus are you running ? Earlier versions had a problem 
> executing code during OnCreate event.

I use a very recent SVN version (rev 7490; reporting itself as 0.9.9 beta).
Together with FPC 2.0.0 (release version) on Mac OS X (darwin).

I have stayed away from using a more recent FPC, because I need to have
a reliable compiler (for other purposes), and don't want to get stuck
with a broken environment.

Is there a good&easy way to keep two FPC versions next to each other?

Tom

-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


Re: [lazarus] OnCreate of MainForm not called after Application.CreateForm

2005-08-08 Thread Tom Verhoeff
On Mon, Aug 08, 2005 at 11:22:44PM +0200, Micha Nelissen wrote:
> On Mon, 8 Aug 2005 23:02:26 +0200
> Tom Verhoeff <[EMAIL PROTECTED]> wrote:
> 
> > The various units report that they get initialized properly.  However,
> > in .lpr after
> > 
> >   Application.CreateForm(TMainForm, MainForm);
> >   Application.Run;
> > 
> > the OnCreate of this MainForm does not get called.  OnCreate is defined in
> > the Main.lfm file: OnCreate = FormCreate.  FormCreate never gets called.
> > 
> > If I try the same thing in a small Hello World project, it works fine.
> > 
> > Have I overlooked something obvious.  How can an event get lost, or
> > can it be that the main event loop is affected?
> 
> Is the FormCreate procedure in the published section of the Form class 
> definition ? That's all I can think of right now...

In both the problematic large Delphi project and my working Hello World
example, the FormCreate is right below TMainForm = class(TForm), without
preceding modifier (neither private, published, public, protected, ...).

I use GTK(1).  It is a nightmare to trace the handling of events through
the code.  I cannot even find where the OnCreate event is supposed to be
generated as a consequence of (form) creation.

Thanks,

Tom

-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


[lazarus] OnCreate of MainForm not called after Application.CreateForm

2005-08-08 Thread Tom Verhoeff
I am still struggling with the port of my largish (35000+ LOC) Delphi 6
project to Lazarus.  All the code now compiles and I have stripped font
info from the .lfm files (especially for TEdit objects).

The various units report that they get initialized properly.  However,
in .lpr after

  Application.CreateForm(TMainForm, MainForm);
  Application.Run;

the OnCreate of this MainForm does not get called.  OnCreate is defined in
the Main.lfm file: OnCreate = FormCreate.  FormCreate never gets called.

If I try the same thing in a small Hello World project, it works fine.

Have I overlooked something obvious.  How can an event get lost, or
can it be that the main event loop is affected?

I have checked various project and compiler options, units in use clauses ...

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


[lazarus] Lines.Strings not read from .lfm for TMemo object?

2005-08-08 Thread Tom Verhoeff
It appears that strings assigned to the Lines property of a TMemo object
are written to the .lfm file, but are not read back when the project is
reopened.

Is this a bug that I should report, or am I doing something wrong?

I initialize the Lines property of a TMemo object by clicking the ... button
in the Object Inspector.  When saving the form, the strings do show up in
the .lfm file:

  object MemoTest: TMemo
...
Lines.Strings = (
  'One'
  'Two'
  'Three'
  'Four'
  'Five'
   )
   ...
   end

When the project is reopened after quitting Lazarus, the TMemo object
shows up empty, as if nothing was written in the .lfm file.

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


Re: [lazarus] Font property of TEdit objects not recognized in .LFM files

2005-08-08 Thread Tom Verhoeff
On Mon, Aug 08, 2005 at 02:53:47PM +0200, Marc Weustink wrote:
> Tom Verhoeff wrote:
> >On Mon, Aug 08, 2005 at 01:03:55PM +0200, Vincent Snijders wrote:
> >
> >>Only published properties are shown in the object inspector and the 
> >>TFont property is public, not published.
> 
> >Or maybe Font should be a published property?
> 
> It should, however, we have/had problems in setting font info in the 
> different widgetsets. On GTK fonts are merely defind by themes. To avoid 
> problems we have unpublished the font property until it works OK.

I am starting to understand the situation.  However, I still don't
understand why the Lazarus Object Inspector does NOT show the Font property
for TEdit objects, but it does show the Font property for TLabel and
TButton objects.  All three eventually inherit the Font property from
TControl.

It also appears that Font information for TLabel and TButton objects
in .lfm files gets handled correctly, but Font information for TEdit
objects raises a warning (after which you can either abort or ignore).

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


Re: [lazarus] Font property of TEdit objects not recognized in .LFM files

2005-08-08 Thread Tom Verhoeff
On Mon, Aug 08, 2005 at 01:03:55PM +0200, Vincent Snijders wrote:
> Tom Verhoeff wrote:
> >I am in the process of converting a fairly large Delphi (6) project
> >to Lazarus.  I use FPC 2.0.0 with the most recent Lazarus from SVN
> >(revision 7490, which compiled fine; though the Lazarus IDE keeps giving
> >me Access violations, which I simply ignore) on Mac OS X (Darwin).
> 
> It would be interesting to know, what causes the access violations.

All I can report is the following output in the terminal from which
lazarus was started:

TApplication.HandleException Access violation
  Stack trace:
  $00120B40
  $00314340
  $0012138C
  $0011FCDC
  $F150
  $00122048
  $00116A28
  $001208BC
  $0002FCA4
  $00030138
  $001C0684
  $001C05A4
  $001EBF6C
  $03573198
  $03571F40
  $0357262C
  $044A4C6C
TApplication.HideAllFormsWithStayOnTop :THintWindow
TApplication.HideAllFormsWithStayOnTop :THintWindow

> >When converting some forms, I run into the problem that for some reason
> >TEdit objects cannot have Font properties.  I also tried it in a simple
> >Hello World project, and indeed, the Object Inspector shows no Font
> >property for a TEdit component on the form.
>
> Only published properties are shown in the object inspector and the 
> TFont property is public, not published.

Well, the obvious next question is:

  *  Why are public properties not handled the same way in Lazarus
 as they seem to be handeled in Delphi?

Or maybe Font should be a published property?

Anyway, my Delphi form files have Font properties defined for TEdit objects,
and Delphi generates/reads such .dfm files.  Why does Lazarus treat
the Font property differently?

Does this mean that I need to manipulate font information for such objects
dynamically (i.e. in the .pas code, rather than in .lfm)?

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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


[lazarus] Font property of TEdit objects not recognized in .LFM files

2005-08-08 Thread Tom Verhoeff
I am in the process of converting a fairly large Delphi (6) project
to Lazarus.  I use FPC 2.0.0 with the most recent Lazarus from SVN
(revision 7490, which compiled fine; though the Lazarus IDE keeps giving
me Access violations, which I simply ignore) on Mac OS X (Darwin).

When converting some forms, I run into the problem that for some reason
TEdit objects cannot have Font properties.  I also tried it in a simple
Hello World project, and indeed, the Object Inspector shows no Font
property for a TEdit component on the form.

On the other hand, if I read the LCL source, then I find in stdctrls.pp

  TEdit = class(TCustomEdit)

preceded by

  TCustomEdit = class(TWinControl)

and in controls.pp

  TWinControl = class(TControl)

preceded by

  TControl = class(TLCLComponent)
  ...
  public
  ...
property Font: TFont read FFont write SetFont stored IsFontStored;

What am I missing?

A related question: What font settings can I use for platform independent
operation?  I would like to use a simple sans serif font, and also on some
other occasions a simple monospaced font (like Courier).

Thanks,

Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25| Eindhoven University of Technology
FAX:+31 40 247 54 04| PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

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