Re: [Lazarus] 0.9.26 (FPC 2.2.2) on Slackware and Debian

2008-10-29 Thread Andrew Haines
Mark Morgan Lloyd wrote:
> I presume that this works on Slackware because the symlinks already 
> exist, and can confirm:
>
> libgdk_pixbuf-2.0.so -> libgdk_pixbuf-2.0.so.0.1200.9
>
> and so on.
>
> In both cases Lazarus runs, although not fast.
>
> Now this is a completely virgin Debian system, it's never had 
> Debian-served FPC or Lazarus packages installed and I've got a fairly 
> good record of what's been put onto it and what changes there were in 
> /usr/lib.
>
> So would somebody please tell me what I'm doing stupid.
>
>   

You have to install the -dev packages like gtk2-dev etc. the dev 
packages make the symlinks for you.

regards,

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


Re: [Lazarus] Cannot install Lazarus-0.9.26/fpc-2.2.2 on Suse 10.0, help needed

2008-10-29 Thread Lord Satan
On Wed, 29 Oct 2008 18:04:07 +0100
Bart <[EMAIL PROTECTED]> wrote:

> > Then I recommend you to stick with the releases.
> 
> But I cannot {:-(
I think you can at least try.

> As I described in  my first posting, the RPM for fpc 2.2.2 will not
> install, because it wants glibc version 2.4, which is not available
> for my Suse 10.0

Use fpc-2.2.2.i386-linux.tar from your preferred fpc download location.

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


Re: [Lazarus] Commercial components for Lazarus

2008-10-29 Thread Lukas Gradl
> I would buy such components, no problem. As long as they come with source
> included. This is a prerequisite, even when I buy delphi components.
> 
> Michael.

Full ACK on that.

Lukas

-- 

--
software security networks
Lukas Gradl 
Eduard-Bodem-Gasse 9
A - 6020 Innsbruck
Tel: +43-512-214040-0
Fax: +43-512-214040-21
--
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Unit InterfaceBase

2008-10-29 Thread Leandro Foly
Hi, everyone.
I`m  getting the error "Can't find unit InterfaceBase used by Interfaces"
when I try to compile a simple project with Lazarus 0.9.26 under Windows XP
Home on an eeepc 901, 1024 of RAM.

I just installed by the exe-file downloaded from sourceforge, and tried to
compile, by pressing the green "play" button.

Some more details:
Lazarus Directory:   C:\InstLazarus\
Compiler path:c:\InstLazarus\fpc\2.2.2\bin\i386-win32\fpc.exe
FPC Source Directory:   c:\InstLazarus\fpc\2.2.2\source\
Make Path:C:\InstLazarus\fpc\2.2.2\bin\i386-win32\make.exe

Section Paths in Compiler Options is all blank.
Only LCL Widget Type (various) is assigned to "default (win32/win64)"

Thanks for the help.
Leandro Foly
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] 0.9.26 (FPC 2.2.2) on Slackware and Debian

2008-10-29 Thread Mark Morgan Lloyd
I've set up a rather elderly Compaq here specifically for a number of 
jobs where I expect to have to wipe it and re-install if necessary. On 
it I have Slackware 12.1 and Debian "Lenny", largely so that I've got 
gtk2 etc.

If I install the binary of FPC 2.2.2 on Slackware I can compile Lazarus 
(both all and bigide) from source without problems.

If I do exactly the same on Debian I have to add libgdk-pixbuf-dev (no 
big deal) but then to get Lazarus to compile have to add a handful of 
symlinks:

libatk-1.0.so -> libatk-1.0.so.0
libpango-1.0.so -> libpango-1.0.so.0
libgmodule-2.0.so -> libgmodule-2.0.so.0
libgthread-2.0.so -> libgthread-2.0.so.0
libglib-2.0.so -> libglib-2.0.so.0
libgobject-2.0.so -> libgobject-2.0.so.0
libgdk-x11-2.0.so -> libgdk-x11-2.0.so.0
libgtk-x11-2.0.so -> libgtk-x11-2.0.so.0
libgdk_pixbuf-2.0.so -> libgdk_pixbuf-2.0.so.0

where

libgdk_pixbuf-2.0.so.0 -> libgdk_pixbuf-2.0.so.0.1200.11

etc.

I presume that this works on Slackware because the symlinks already 
exist, and can confirm:

libgdk_pixbuf-2.0.so -> libgdk_pixbuf-2.0.so.0.1200.9

and so on.

In both cases Lazarus runs, although not fast.

Now this is a completely virgin Debian system, it's never had 
Debian-served FPC or Lazarus packages installed and I've got a fairly 
good record of what's been put onto it and what changes there were in 
/usr/lib.

So would somebody please tell me what I'm doing stupid.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Carbon: 10.4.11 tab key hangs on 10.5.4

2008-10-29 Thread EarMaster - Bent Olsen
> Yes, this would help. I will fix it tomorrow. I want you to be listed
> in Lazarus contributors list - what is your full name?
> 
> Tom Gregorovic

Good, I'm glad I could help, and I hope can assist more often when I get
deeper and deeper into Lazarus ;-)

My full name is "Bent Normann Olsen".

Thanks, and best regards,
Normann

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


Re: [Lazarus] Initializing my App

2008-10-29 Thread Jalal
>> > // when form appears
>> > procedure TfrMain.FormShow(Sender: TObject);
>> > const
>> >   SHOWED_FIRST_TIME: Boolean=False;
>>
>> Does this work? If this was a variable this surely wouldn't work,
>> because it's scope would be local to the procedure.
>
>scope <> lifetime
>
>afaik const are never on the stack. It should work.
>
>Mattias

Indeed, since it was declared 'const' it will work *if* only one instance of 
this form is created.

I maintain that this should be a class member (variable). I believe those are 
all initialized to zeroes too, so you'll only have the set it to True to turn 
on your indicator.

Of course, do whatever you want in your code.  ;-)
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Carbon: 10.4.11 tab key hangs on 10.5.4

2008-10-29 Thread Tom Gregorovic
On Wed, Oct 29, 2008 at 3:53 PM, EarMaster - Bent Olsen
<[EMAIL PROTECTED]> wrote:
>> I think it is simillar to
>> http://mantis.freepascal.org/view.php?id=10054 . I don't have 10.5
>> version, but I think there is same option under Keyboard settings. I
>> have not found how to detect this settings so far. But it should not
>> certainly hang.
>>
>> Tom Gregorovic
>
>
> Hi Tom,
>
> I managed to detect this specific keyboard setting by:
>
> var
>  FResult: CFIndex;
>  FValid: Boolean;
>
>  FResult := CFPreferencesGetAppIntegerValue(CFSTR('AppleKeyboardUIMode'),
> kCFPreferencesCurrentApplication, FValid);
>
>
> FResult turn out to be bit flags:
>  Bit 0 is set if feature is on
>  Bit 1 is set if full keyboard access works for any control, not just text
> boxes and lists
>
> And these are of course flipped by:
>  ^F1 flips bit 0
>  ^F7 flips bit 1
>
> Hope you can use this to detect the "Full Keyboard Access".
>

Yes, this would help. I will fix it tomorrow. I want you to be listed
in Lazarus contributors list - what is your full name?

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


Re: [Lazarus] Cannot install Lazarus-0.9.26/fpc-2.2.2 on Suse 10.0, help needed

2008-10-29 Thread Bart
> Then I recommend you to stick with the releases.

But I cannot {:-(
As I described in  my first posting, the RPM for fpc 2.2.2 will not
install, because it wants glibc version 2.4, which is not available
for my Suse 10.0
That is why I wantend to work around it by building fpc from source...

>  A simpler approach was
>  tested before the buildfaq, but it failed since people always got in to
>  trouble because of little changes and variantions and didn't have enough
>  background info to solve them. This is described in the introduction of the
>  FAQ btw, so you apparently didn't get far :-)

Well, I read the build-faq (from march 17, 2007) entirely at least
once (as you suggest in it). Maybe I'm just not up to it.
Mind you, I don't mind trying, and even failing, as long as I don't
screw up my current stable Laz/Fpc configuration.

(I can hardly expect the person who builds the rpms to downgrade his
Linux so he/she can do the buildprocess against glibc-2.3 now, can I?)

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


[Lazarus] Default caption in MessageDlg()

2008-10-29 Thread Bart
I just noticed that if I do a

  MessageDlg('Some ErrorMessage', mtError, [mbOk], 0) ;

(so I do not specify a custom caption for the dialog) then the caption
of the dialog is the Application.Title, whereas in Delphi (at least in
D1 to D3) it depends on the DialogType, so in Delphi the caption of
the dialog in my example would be  "Error"

I just tested an existing executable, compiled with a previous version
of Lazarus, and this code:

MessageDlg(Format(msgSourceDirNotFound,
   [ExcludeTrailingPathDelimiter(SourceEdit.Text)]),
   mtError, [mbOk], 0);

will bring up a Dialog with "Error" as the caption.

I'm using Lazarus from SVN revision 16824.

Is this new behaviour by design (which would force me to rewrite
almost all my projects to use the MessageDlg(aMsg, aTitle, DlgType,
Buttons, HelpCtx) format instead), or is it a bug?

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


Re: [Lazarus] Commercial components for Lazarus

2008-10-29 Thread Norman Schwirz
I want to port some Programs written in Delphi to Lazarus/ Free-Pascal,
because there is no other way for further developing. The only other way
would be to completely rewrite it in another programming language.
:-(Thanks to Borland!)

So, I agree with Graeme and Michael too.

But I have an Idea: what do you think about a little (but continual)
contest of high-quality- programming?


Greetings from South-Tyrol.


Graeme Geldenhuys schrieb:
> On Wed, Oct 29, 2008 at 3:34 PM, Michael Van Canneyt
> <[EMAIL PROTECTED]> wrote:
>> I would buy such components, no problem. As long as they come with source
>> included. This is a prerequisite, even when I buy delphi components.
> 
> Definitely with source, otherwise there is no way I can port it to
> fpGUI. ;-)  On a more serious note, I do agree with Michael. Back in
> the day when we used Delphi, we got burnt when upgrading Delphi and
> didn't have the source for components. Never to repeat that mistake
> again. :)
> 
> 
> Regards,
>   - Graeme -
> 
> 
> ___
> fpGUI - a cross-platform Free Pascal GUI toolkit
> http://opensoft.homeip.net/fpgui/
> ___
> Lazarus mailing list
> Lazarus@lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

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


Re: [Lazarus] Building Lazarus for win32

2008-10-29 Thread Bogusław Brandys
Vincent Snijders pisze:
> Raistware schreef:
>> I had same problem and solved adding this line to 
>> C:\lazarus\fpc\2.2.2\bin\i386-win32\fpc.cfg :
>> -Fuc:\lazarus\ideintf
>>
> 
> This is asking for more trouble. Generally, don't add the path to lazarus 
> sources in 
> a -Fu option, instead use the appropriate directory with compiled units, in 
> this 
> case c:\lazarus\ideintf\units\i386-win32. Otherwise you may have two sets 
> compiled 
> units for the ideintf package and you get errors like checksum changed, etc.
> 
> Better yet, is to add a requirement of the IDEIntf package to the package or 
> project 
> you are trying to compile.
> 
> Vincent
> ___
> Lazarus mailing list
> Lazarus@lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
> 

If you are using fpc SVN then try fpc 2.2.2

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


Re: [Lazarus] Carbon: 10.4.11 tab key hangs on 10.5.4

2008-10-29 Thread EarMaster - Bent Olsen
> I think it is simillar to
> http://mantis.freepascal.org/view.php?id=10054 . I don't have 10.5
> version, but I think there is same option under Keyboard settings. I
> have not found how to detect this settings so far. But it should not
> certainly hang.
> 
> Tom Gregorovic


Hi Tom,

I managed to detect this specific keyboard setting by:

var
  FResult: CFIndex;
  FValid: Boolean;

  FResult := CFPreferencesGetAppIntegerValue(CFSTR('AppleKeyboardUIMode'),
kCFPreferencesCurrentApplication, FValid);


FResult turn out to be bit flags:
  Bit 0 is set if feature is on
  Bit 1 is set if full keyboard access works for any control, not just text
boxes and lists

And these are of course flipped by:
  ^F1 flips bit 0
  ^F7 flips bit 1

Hope you can use this to detect the "Full Keyboard Access".

Best regards,
Normann

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


Re: [Lazarus] Cannot install Lazarus-0.9.26/fpc-2.2.2 on Suse 10.0, help needed

2008-10-29 Thread Marco van de Voort
On Wed, Oct 29, 2008 at 03:02:17PM +0100, Bart wrote:
> Does this sound like a good plan?
> I read Marco's build-faq, but it's way to complicted for simple me {:-)

Then I recommend you to stick with the releases. A simpler approach was
tested before the buildfaq, but it failed since people always got in to
trouble because of little changes and variantions and didn't have enough
background info to solve them. This is described in the introduction of the
FAQ btw, so you apparently didn't get far :-)
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Commercial components for Lazarus

2008-10-29 Thread Marco van de Voort
On Wed, Oct 29, 2008 at 03:58:46PM +0200, Graeme Geldenhuys wrote:
> On Wed, Oct 29, 2008 at 3:34 PM, Michael Van Canneyt
> <[EMAIL PROTECTED]> wrote:
> >
> > I would buy such components, no problem. As long as they come with source
> > included. This is a prerequisite, even when I buy delphi components.
> 
> Definitely with source, otherwise there is no way I can port it to
> fpGUI. ;-)  On a more serious note, I do agree with Michael. Back in
> the day when we used Delphi, we got burnt when upgrading Delphi and
> didn't have the source for components. Never to repeat that mistake
> again. :)

Same here, but our reasons were more being able to debug them in case of
problems.

Nowadays I hardly buy components. I use cport, indy9, VST and one routine
from dmath/fpmath and that is about it.

The main reason for that is that most components are not suitable for
systems where 10ms is a long time. (indy runs in a separate thread, since it
can also block longer, cport is async via windows msgs queues)

One of the components I had problems with was TeeChart. It was simply too slow
for us for everything except the slowest systems. (ate more than 300-400ms to 
draw
a simple chart, D7 version)
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Cannot install Lazarus-0.9.26/fpc-2.2.2 on Suse 10.0, help needed

2008-10-29 Thread Bart
On 10/28/08, Florian Klaempfl <[EMAIL PROTECTED]> wrote:
> Building everything from source should work, even more for FPC itself
>  you can use the tar archive to install.

Ok, I'll try that then, but I haven some questions about how to proceed.
Some time ago I tried to build fpc from source on Windows. I did a
make cycle, and then a make install. This worked in the sense that I
now had a working compiler and fp IDE. However I never was able to use
this version with Lazarus, since the source-tree (from the tar
archive) did not remotely resemble the source-tree
\Lazarus\fpc\2.2.2\source, and I could not jump into the fpc source
(ctrl-click in the Lazarus IDE) anymore.

Firts the task of setting up a working fpc 2.2.2 from source.
We'll see about setting up Lazarus from SVN later (I've done that on
Windows, so I guess I'll be able to do that on Linux too).

I downloaded fpcbuild-2.2.2.tar.gz
I'll unpack it somewhere.

Since I do have a current working fpc 2.2.0, I guess it would not be a
good idea to "install" the new one in the same directory (if something
goes wrong, I might be left behind with no fpc at all)? My current fpc
source is in /usr/share/fpcsrc.

I guess I'll first have to do
make cycle PP=/path/to/current/fpc (in the fpcbuild-2.2.2 directory), then a
make clean all then a
make install INSTALL_PREFIX=/usr/local OPT='-gl'
to get a working fpc 2.2.2?

Does this sound like a good plan?
I read Marco's build-faq, but it's way to complicted for simple me {:-)

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


Re: [Lazarus] Commercial components for Lazarus

2008-10-29 Thread Graeme Geldenhuys
On Wed, Oct 29, 2008 at 3:34 PM, Michael Van Canneyt
<[EMAIL PROTECTED]> wrote:
>
> I would buy such components, no problem. As long as they come with source
> included. This is a prerequisite, even when I buy delphi components.

Definitely with source, otherwise there is no way I can port it to
fpGUI. ;-)  On a more serious note, I do agree with Michael. Back in
the day when we used Delphi, we got burnt when upgrading Delphi and
didn't have the source for components. Never to repeat that mistake
again. :)


Regards,
  - Graeme -


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


[Lazarus] experimental MDI support in IDE

2008-10-29 Thread Graeme Geldenhuys
Hi,

I read some time back there was experimental support for MDI (docking)
in Lazarus IDE.  How do I enabled and build Lazarus IDE with MDI
interface enabled?


Regards,
  - Graeme -


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


Re: [Lazarus] Commercial components for Lazarus

2008-10-29 Thread Michael Van Canneyt


On Wed, 29 Oct 2008, Graeme Geldenhuys wrote:

> On Wed, Oct 29, 2008 at 2:42 PM,  <[EMAIL PROTECTED]> wrote:
> >
> > Oh no. :) Simply: What is the attitude of  the developers, who are using
> > Lazarus as their development tool?  Would  they buy commercial 3rd party
> > components to improve thier applications?  Is the  Lazarus community a
> > financially viable target for the developers of such components?
> 
> If it saves me a lot of time, I would be more than happy to pay for
> something. That goes for any tools I use - commercial or free. The
> best tool for the job wins! Just the other day I bought Nero for Linux
> simply because it worked better that the hordes of open-source cd
> writing software out there.

Hm. 
And here I am, hoping that K3B will finally be included in the next windows... 
:)

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


Re: [Lazarus] Commercial components for Lazarus

2008-10-29 Thread Michael Van Canneyt


On Wed, 29 Oct 2008, [EMAIL PROTECTED] wrote:

> 
> > "Would the lazarus community pay commercial developers to port their 
> > components ?"
> >
> > Am I correct ?
> 
> 
> Oh no. :) Simply: What is the attitude of  the developers, who are using 
> Lazarus as their development tool?  Would  they buy commercial 3rd party 
> components to improve thier applications?  Is the  Lazarus community a 
> financially viable target for the developers of such components?

I would buy such components, no problem. As long as they come with source
included. This is a prerequisite, even when I buy delphi components.

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


Re: [Lazarus] Carbon: 10.4.11 tab key hangs on 10.5.4

2008-10-29 Thread EarMaster - Bent Olsen
> I think it is simillar to
> http://mantis.freepascal.org/view.php?id=10054 . I don't have 10.5
> version, but I think there is same option under Keyboard settings. I
> have not found how to detect this settings so far. But it should not
> certainly hang.
> 
> Tom Gregorovic

Hi Tom,

I didn't knew about this option under Keyboard settings, but that's exactly
what makes it hang - it doesn't crash, just hangs until you "use the Force"
Quit.

I applied the same settings for my Mac with 10.4.11, and this makes it hang
too - even with a small test program with nothing on it but a TButton.

I noticed in the Mantis a fix is targeted to 1.0, but could I (until then)
be able to work around this by capturing the key event for VK_TAB and make
the controls ignore this on certain forms? I could try...

Or maybe I could investigate a little bit more about this setting.

Best regards,
Normann

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


Re: [Lazarus] Carbon: Application menu

2008-10-29 Thread EarMaster - Bent Olsen
> This is not managed by Lazarus. I think, you can control it via
> Info.plist file in your app bundle, see
> http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeCon
> fig/Articles/PListKeys.html#//apple_ref/doc/uid/20001431-130430.
> 
> Tom Gregorovic

Thanks, I'll take a look at it ;-)

/Normann

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


Re: [Lazarus] Commercial components for Lazarus

2008-10-29 Thread Graeme Geldenhuys
On Wed, Oct 29, 2008 at 2:42 PM,  <[EMAIL PROTECTED]> wrote:
>
> Oh no. :) Simply: What is the attitude of  the developers, who are using
> Lazarus as their development tool?  Would  they buy commercial 3rd party
> components to improve thier applications?  Is the  Lazarus community a
> financially viable target for the developers of such components?

If it saves me a lot of time, I would be more than happy to pay for
something. That goes for any tools I use - commercial or free. The
best tool for the job wins! Just the other day I bought Nero for Linux
simply because it worked better that the hordes of open-source cd
writing software out there.


Regards,
  - Graeme -


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


Re: [Lazarus] Commercial components for Lazarus

2008-10-29 Thread cc_
>> I do not object the idea that some of key deveoppers of are being paid 
>> for their effort to make lazarus a good product

Me neither, but as you can see from my previous mail clarifying my 
intentions, the original post was about something else. :)

Regards,
Leslie 

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


Re: [Lazarus] Commercial components for Lazarus

2008-10-29 Thread cc_

> "Would the lazarus community pay commercial developers to port their 
> components ?"
>
> Am I correct ?


Oh no. :) Simply: What is the attitude of  the developers, who are using 
Lazarus as their development tool?  Would  they buy commercial 3rd party 
components to improve thier applications?  Is the  Lazarus community a 
financially viable target for the developers of such components?

Regards,
Leslie
 

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


Re: [Lazarus] Carbon: 10.4.11 tab key hangs on 10.5.4

2008-10-29 Thread Tom Gregorovic
On Wed, Oct 29, 2008 at 12:20 PM, EarMaster - Bent Olsen
<[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm not sure if this was already brought up, and I did search bug tracker -
> with no luck.
>
> I've noticed that many native Mac OS X controls no longer receives focus in
> 10.5.4, which also can be seen in applications like Safari - you simply
> can't tab through all controls on HTML pages and toolbars as you can in
> 10.4.x, and only edit boxes seem to get focus.
>
> This affects applications compiled with 10.4.11 and trying to run on 10.5.4
> - you can test this by placing a TButton on a empty form, compile it with
> Lazarus on 10.4.11, and run the application on 10.5.4 - then hit tab key. It
> simply hangs, because there is nothing on the form to receive focus anymore
> - as there would in 10.4.11.
>
> This test wouldn't crash if you placed a couple of edit boxes, which could
> receive the focus - but the button no longer get focused, which it usually
> did in 10.4.11.
>
> I have FPC 2.2.2, Lazarus 0.9.27 r16996 on i386-darwin-carbon. I have no
> FPC/Lazarus installed on 10.5.4, so I can test this the other way around.
>
> We can workaround the focus issue, but not if it hangs every time the user
> hits the tab key.
>
> Has anyone come across this problem, and found a solution for it?
>

I think it is simillar to
http://mantis.freepascal.org/view.php?id=10054 . I don't have 10.5
version, but I think there is same option under Keyboard settings. I
have not found how to detect this settings so far. But it should not
certainly hang.

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


Re: [Lazarus] Carbon: Application menu

2008-10-29 Thread Tom Gregorovic
2008/10/28 EarMaster - Bent Olsen <[EMAIL PROTECTED]>:
> Hi all,
>
>
>
> When you compile and run Carbon applications on a Mac you'll get an
> application menu up in the top left with some default menu items, but the
> items do always appear in English, and we can't change those.
>
>
>
> The application menu appear nice in applications like Safari and others, and
> in a language chosen by user. We support a number of languages, and we like
> to have the application menu to reflect a current language.
>
>
>
> What is the best approach? And are there any plans to support more languages
> for system specific menus attached to an application? Or how does the
> application menu get initialized in Carbon applications?
>
>
>

This is not managed by Lazarus. I think, you can control it via
Info.plist file in your app bundle, see
http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/PListKeys.html#//apple_ref/doc/uid/20001431-130430.

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


Re: [Lazarus] Commercial components for Lazarus

2008-10-29 Thread Michael Van Canneyt


On Wed, 29 Oct 2008, [EMAIL PROTECTED] wrote:

> Hello List,
> 
> I have written a post to the database section of the Lazarus forum about a 
> commercial database engine recently ported for Lazarus, which made me think 
> about the whole "Commercial components for Lazarus" issue. This is a part of 
> that post: (It can be found here 
> http://www.lazarus.freepascal.org/index.php?name=PNphpBB2&file=viewtopic&p=27411#27411)
> 
> 
> < get the chance to develop crossplatform in a Delphi like style. I believe it 
> is important for the future of Lazarus to attract the developers of quality 
> commercial components to port their work for Lazarus. And it is already 
> happening. The big question is if the Lazarus community is willing to realize 
> how valuable it is to have the wealth of quality commercial components for 
> Lazarus we already have for Delphi. Are they willing to pay for it? I 
> certainly hope they see that it is for the benifit of everyone. It could open 
> the way to port a lot of Widows only Delphi projects for different platforms. 
> Many times a suitable 3rd party component can save lots of time and money, so 
> it is more efficient to spend the money on buying a good 3rd party product. >>
> 
> 
> What everyone thinks about this?

What is the question exactly ?  I understand it as:

"Would the lazarus community pay commercial developers to port their components 
?"

Am I correct ?

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


Re: [Lazarus] Commercial components for Lazarus

2008-10-29 Thread wli222
[EMAIL PROTECTED] wrote:
> Hello List,
>  
> I have written a post to the database section of the Lazarus forum
> about a commercial database engine recently ported for Lazarus, which
> made me think about the whole "Commercial components for Lazarus"
> issue. This is a part of that post: (It can be found here
> http://www.lazarus.freepascal.org/index.php?name=PNphpBB2&file=viewtopic&p=27411#27411
> )
>  
>  
> < just to get the chance to develop crossplatform in a Delphi like
> style. I believe it is important for the future of Lazarus to attract
> the developers of quality commercial components to port their work for
> Lazarus. And it is already happening. The big question is if the
> Lazarus community is willing to realize how valuable it is to have the
> wealth of quality commercial components for Lazarus we already have
> for Delphi. Are they willing to pay for it? I certainly hope they see
> that it is for the benifit of everyone. It could open the way to port
> a lot of Widows only Delphi projects for different platforms. Many
> times a suitable 3rd party component can save lots of time and money,
> so it is more efficient to spend the money on buying a good 3rd party
> product. >>
>  
> What everyone thinks about this?
>
> Regards,
> Leslie
> 
> I do not object the idea that some of key deveoppers of are being paid for 
> their effort to make lazarus a good product
>   

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

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


[Lazarus] Commercial components for Lazarus

2008-10-29 Thread cc_
Hello List,

I have written a post to the database section of the Lazarus forum about a 
commercial database engine recently ported for Lazarus, which made me think 
about the whole "Commercial components for Lazarus" issue. This is a part of 
that post: (It can be found here 
http://www.lazarus.freepascal.org/index.php?name=PNphpBB2&file=viewtopic&p=27411#27411)


<>


What everyone thinks about this?

Regards, 
Leslie___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Building Lazarus for win32

2008-10-29 Thread Vincent Snijders
Raistware schreef:
> I had same problem and solved adding this line to 
> C:\lazarus\fpc\2.2.2\bin\i386-win32\fpc.cfg :
> -Fuc:\lazarus\ideintf
> 

This is asking for more trouble. Generally, don't add the path to lazarus 
sources in 
a -Fu option, instead use the appropriate directory with compiled units, in 
this 
case c:\lazarus\ideintf\units\i386-win32. Otherwise you may have two sets 
compiled 
units for the ideintf package and you get errors like checksum changed, etc.

Better yet, is to add a requirement of the IDEIntf package to the package or 
project 
you are trying to compile.

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


[Lazarus] Carbon: 10.4.11 tab key hangs on 10.5.4

2008-10-29 Thread EarMaster - Bent Olsen
Hi all,

I'm not sure if this was already brought up, and I did search bug tracker -
with no luck.

I've noticed that many native Mac OS X controls no longer receives focus in
10.5.4, which also can be seen in applications like Safari - you simply
can't tab through all controls on HTML pages and toolbars as you can in
10.4.x, and only edit boxes seem to get focus.

This affects applications compiled with 10.4.11 and trying to run on 10.5.4
- you can test this by placing a TButton on a empty form, compile it with
Lazarus on 10.4.11, and run the application on 10.5.4 - then hit tab key. It
simply hangs, because there is nothing on the form to receive focus anymore
- as there would in 10.4.11.

This test wouldn't crash if you placed a couple of edit boxes, which could
receive the focus - but the button no longer get focused, which it usually
did in 10.4.11.

I have FPC 2.2.2, Lazarus 0.9.27 r16996 on i386-darwin-carbon. I have no
FPC/Lazarus installed on 10.5.4, so I can test this the other way around.

We can workaround the focus issue, but not if it hangs every time the user
hits the tab key.

Has anyone come across this problem, and found a solution for it?

Best regards,
Normann

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


Re: [Lazarus] Building Lazarus for win32

2008-10-29 Thread Raistware

> fine. Now I get a stop when the rebuilding tries to recompile 
> interfaces, with  a message that system checksum have changed, cant find 
> the interface.pp. All searchpaths are correct in the cfg.
> I have installed the new release of lazarus0.9.26 with fpc 2.2.2 and 
> also tried the fixesbuilds with the same result.
> The fresh install of lazarus functions as it should, but as soon I do a 
> rebuild of lazarus it stops with the same message, and that even without 
> adding och removing any componets from the packages. I also tried the 
> comandline with --build-ide=
>
> What am I missing? All paths are as by default, and I have the paths set 
> in windows XP as before. lazarus.cfg contains all searchpaths to all 
> files and units that lazbuild donÂŽt find.
>   
I had same problem and solved adding this line to 
C:\lazarus\fpc\2.2.2\bin\i386-win32\fpc.cfg :
-Fuc:\lazarus\ideintf

Hope helps

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


[Lazarus] Building Lazarus for win32

2008-10-29 Thread tommy
Hello, I have a problem with rebuilding lazarus when adding components. 
The componets are lazreport and ZEOSlib. Before this upgarde all worked 
fine. Now I get a stop when the rebuilding tries to recompile 
interfaces, with  a message that system checksum have changed, cant find 
the interface.pp. All searchpaths are correct in the cfg.
I have installed the new release of lazarus0.9.26 with fpc 2.2.2 and 
also tried the fixesbuilds with the same result.
The fresh install of lazarus functions as it should, but as soon I do a 
rebuild of lazarus it stops with the same message, and that even without 
adding och removing any componets from the packages. I also tried the 
comandline with --build-ide=

What am I missing? All paths are as by default, and I have the paths set 
in windows XP as before. lazarus.cfg contains all searchpaths to all 
files and units that lazbuild don´t find.

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


Re: [Lazarus] Crash while Copy/Paste

2008-10-29 Thread Mattias Gärtner
Zitat von Sebastian Kraft <[EMAIL PROTECTED]>:

> Hello,
>
> since I upgraded to Ubuntu Intrepid last week Lazarus crashes during
> copy/paste with the following backtrace. Any Ideas?

Can you try gdb, heaptrc and valgrind to get more information?

I don't know when I will update to intrepid, so I can't say when I will be able
to debug that myself.

Mattias


>
> *** glibc detected *** /home/daseeb/devel/lazarus-svn64/lazarus: double free
> or corruption (out): 0x03196d40 ***
> === Backtrace: =
> /lib/libc.so.6[0x7f09c74e2938]
> /lib/libc.so.6(cfree+0x76)[0x7f09c74e4f86]
> /home/daseeb/devel/lazarus-svn64/lazarus[0x902c25]
> === Memory map: 
>
> Regards,
> sebastian
>
> Attached the whole backtrace:
>
> *** glibc detected *** /home/daseeb/devel/lazarus-svn64/lazarus: double free
> or corruption (out): 0x03196d40 ***
> === Backtrace: =
> /lib/libc.so.6[0x7f09c74e2938]
> /lib/libc.so.6(cfree+0x76)[0x7f09c74e4f86]
> /home/daseeb/devel/lazarus-svn64/lazarus[0x902c25]
> === Memory map: 
> 0040-00fa1000 r-xp  08:02 11485622
> /home/daseeb/devel/lazarus-svn64/lazarus
> 011a1000-017f7000 rwxp 00ba1000 08:02 11485622
> /home/daseeb/devel/lazarus-svn64/lazarus
> 017f7000-01841000 rwxp 017f7000 00:00 0
> 02e7-03498000 rwxp 02e7 00:00 0
> [heap]
> 7f09bc00-7f09bc021000 rwxp 7f09bc00 00:00 0
> 7f09bc021000-7f09c000 ---p 7f09bc021000 00:00 0
> 7f09c14c7000-7f09c14dd000 r-xp  08:01 465097
> /lib/libgcc_s.so.1
> 7f09c14dd000-7f09c16dd000 ---p 00016000 08:01 465097
> /lib/libgcc_s.so.1
> 7f09c16dd000-7f09c16de000 r-xp 00016000 08:01 465097
> /lib/libgcc_s.so.1
> 7f09c16de000-7f09c16df000 rwxp 00017000 08:01 465097
> /lib/libgcc_s.so.1
> 7f09c16f9000-7f09c1721000 rwxp 7f09c16f9000 00:00 0
> 7f09c1721000-7f09c1781000 rwxs  00:09 42369046
> /SYSV (deleted)
> 7f09c1781000-7f09c1a01000 rwxp 7f09c1781000 00:00 0
> 7f09c1a01000-7f09c1a1a000 r-xp  08:01 529441
> /usr/share/fonts/type1/gsfonts/n022004l.pfb
> 7f09c1a1a000-7f09c1a92000 rwxp 7f09c1a1a000 00:00 0
> 7f09c1a92000-7f09c1a9a000 rwxp 7f09c1a92000 00:00 0
> 7f09c1a9a000-7f09c1ab2000 r-xp  08:01 529438
> /usr/share/fonts/type1/gsfonts/n022003l.pfb
> 7f09c1ab2000-7f09c1dc2000 rwxp 7f09c1ab2000 00:00 0
> 7f09c1dc2000-7f09c1dc8000 r-xp  08:01 399724
> /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so
> 7f09c1dc8000-7f09c1fc7000 ---p 6000 08:01 399724
> /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so
> 7f09c1fc7000-7f09c1fc8000 r-xp 5000 08:01 399724
> /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so
> 7f09c1fc8000-7f09c1fc9000 rwxp 6000 08:01 399724
> /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so
> 7f09c1fc9000-7f09c210d000 rwxp 7f09c1fc9000 00:00 0
> 7f09c210d000-7f09c21a2000 r-xp  08:01 514478
> /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
> 7f09c21a2000-7f09c21a4000 r-xp  08:01 439865
> /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
> 7f09c21a4000-7f09c23a3000 ---p 2000 08:01 439865
> /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
> 7f09c23a3000-7f09c23a4000 r-xp 1000 08:01 439865
> /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
> 7f09c23a4000-7f09c23a5000 rwxp 2000 08:01 439865
> /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
> 7f09c23a5000-7f09c23ae000 r-xs  08:01 240981
> /var/cache/fontconfig/945677eb7aeaf62f1d50efc3fb3ec7d8-x86-64.cache-2
> 7f09c23ae000-7f09c23b r-xs  08:01 240980
> /var/cache/fontconfig/99e8ed0e538f840c565b6ed5dad60d56-x86-64.cache-2
> 7f09c23b-7f09c23b3000 r-xs  08:01 241878
> /var/cache/fontconfig/e383d7ea5fbe662a33d9b44caf393297-x86-64.cache-2
> 7f09c23b3000-7f09c23b4000 r-xs  08:01 241853
> /var/cache/fontconfig/fd9505950c048a77dc4b710eb6a628ed-x86-64.cache-2
> 7f09c23b4000-7f09c23b5000 r-xs  08:01 241825
> /var/cache/fontconfig/a2ab74764b07279e7c36ddb1d302cf26-x86-64.cache-2
> 7f09c23b5000-7f09c23b6000 r-xs  08:01 240979
> /var/cache/fontconfig/4c73fe0c47614734b17d736dbde7580a-x86-64.cache-2
> 7f09c23b6000-7f09c23b9000 r-xs  08:01 241818
> /var/cache/fontconfig/646addb8444faa74ee138aa00ab0b6a0-x86-64.cache-2
> 7f09c23b9000-7f09c23bd000 r-xs  08:01 241738
> /var/cache/fontconfig/a755afe4a08bf5b97852ceb7400b47bc-x86-64.cache-2
> 7f09c23bd000-7f09c23c6000 r-xs  08:01 241734
> /var/cache/fontconfig/6d41288fd70b0be22e8c3a91e032eec0-x86-64.cache-2
> 7f09c23c6000-7f09c23c9000 r-xs  08:01 241681
> /var/cache/fontconfig/de156ccd2eddbdc19d37a45b8b2aac9c-x86-64.cache-2
> 7f09c23c9000-7f09c23cb000 r-xs  08:01 241679
> /var/cache/fontconfig/da1bd5ca8443ffe22927a23ce431d198-x86-64.cache-2
> 7f09c23cb000-7f09c23d6000 r-xs  08:01 241665
> /var/cache/fontconfig/e3de0de479f42330eadf588a55fb5bf4-x86-64.cache-2
> 7f09c23d6000-7f09c23e5000 r-xs  08:01 241663
> /var/cache/fontconfig/0f34bcd4b6ee430af32735b75db7f02b-x86-64.cache-2
> 7f09c23e5000-7

Re: [Lazarus] Initializing my App

2008-10-29 Thread Mattias Gärtner
Zitat von Felipe Monteiro de Carvalho <[EMAIL PROTECTED]>:

> On Tue, Oct 28, 2008 at 4:42 PM, Valdas Jankûnas <[EMAIL PROTECTED]> wrote:
> > // when form appears
> > procedure TfrMain.FormShow(Sender: TObject);
> > const
> >   SHOWED_FIRST_TIME: Boolean=False;
>
> Does this work? If this was a variable this surely wouldn't work,
> because it's scope would be local to the procedure.

scope <> lifetime

afaik const are never on the stack. It should work.

Mattias

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


Re: [Lazarus] 0.925 editor of the Chinese characters overlap

2008-10-29 Thread peng
OK, I See, I will tell my friends in my blog.
Thank You.

2008/10/28 Martin Friebe <[EMAIL PROTECTED]>:
> Hi,
>
> For the display (Synedit) issue another workaround exists, if you are
> willing to patch your Lazarus yourself.
>
> The full issue is known under http://bugs.freepascal.org/view.php?id=11819
> While it will be unfortunately sometime until I get to do a proper fix
> for this, a patch is attached to the bug, which allows to view chinese
> chars.
> It seems stable, and worked for the examples I had. If you find more
> double-wide ranges you can add them easily.


-- 
我的'开源办公室':
http://pengtu.net/ooo

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