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

2006-05-21 Thread Vincent Snijders

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.


Vincent.

_
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-21 Thread Duncan
I had a (possibly) similar problem. I think it is the output 
directory - in other words, where the compiled files are sent.
Out of interest, try creating an output directory on the drive level 
with a short directory path like "cu" for compiled units.


I'm not sure it is anything to do with spaces in the directory path.

I might be wrong, but I work within a deeply nested directory tree. I 
send my output to a "Compiled Units" directory normally, and the 
error reported a path ending in "Com" so I shortened my output 
directory to "CU" and it works.


Duncan

At 21:49 21/05/2006, you 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?

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


_
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] THTMLBrowserHelpViewer.FindDefaultBrowser under Win32

2006-05-21 Thread Micha Nelissen
On Sun, 21 May 2006 10:26:16 +0200
Mattias Gaertner <[EMAIL PROTECTED]> wrote:

> Wow. I added that yesterday and didn't announce it yet. And now there is
> already a request for improvement. Are you sure, you are a bloody newbie? ;)

Maybe a long overdue feature ? ;-)

Micha

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


Re: [lazarus] Win32 Lazarus programmer wanted

2006-05-21 Thread Lepidosteus

On 5/21/06, A.J. Venter <[EMAIL PROTECTED]> wrote:

Hi guys,
I will keep this short so it doesn't become spam but I was hoping somebody
here feels like helping a seriously cool lazarus project out a little.
I have done about 80% of a port of tappytux to win32 - but I honestly do not
KNOW how to do the last 20%.
And with everything on my plate I simply do not have time to learn. The
initial port will take an experienced win32 programmer maybe 2/3 hours, then
about an hour  on each release (one every 3 months or so) just to update it -
so I was wondering if somebody is willing to become the maintainer for a
win32 port.
The whole game is GPL'd with creative commons licensed artwork and as far as I
know is the only fully playable game ever done in lazarus - and it's gotten
REALLY amazing, after all I have been working on this for over 2.5 years.

Mail me offlist if you are feeling interested/generous/curious.

Ciao
A.J.


Would have jumped in, but "an experienced win32 programmer" kept me away :P

If you're looking for less experienced programmers, mail me :)

Lepidosteus

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


[lazarus] Win32 Lazarus programmer wanted

2006-05-21 Thread A.J. Venter
Hi guys,
I will keep this short so it doesn't become spam but I was hoping somebody 
here feels like helping a seriously cool lazarus project out a little.
I have done about 80% of a port of tappytux to win32 - but I honestly do not 
KNOW how to do the last 20%.
And with everything on my plate I simply do not have time to learn. The 
initial port will take an experienced win32 programmer maybe 2/3 hours, then 
about an hour  on each release (one every 3 months or so) just to update it - 
so I was wondering if somebody is willing to become the maintainer for a 
win32 port.
The whole game is GPL'd with creative commons licensed artwork and as far as I 
know is the only fully playable game ever done in lazarus - and it's gotten 
REALLY amazing, after all I have been working on this for over 2.5 years.

Mail me offlist if you are feeling interested/generous/curious.

Ciao
A.J.
-- 
"there's nothing as inspirational for a hacker as a cat obscuring a bug 
by sitting in front of the monitor" - Boudewijn Rempt
A.J. Venter
Chief Software Architect
OpenLab International
www.getopenlab.com
www.silentcoder.co.za
+27 82 726 5103

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


Re: [lazarus] Problem with gdb/IDE and GetEnvironmentVariable (Bug 1685)

2006-05-21 Thread Vincent Snijders

Christian U. wrote:

- closes and restarts the IDE, or
- sets debugger at (none), reruns the application, sets the
debugger at GNU debugger (gdb),



thats not real correct, the value is simply not saved. so if you have none
as value and set it to gdb, always none is there.
i think i have made an bugreport for this issue but nobody seems to be
interested in this.


I think this issue has been fixed, so please test again with a SVN version.

Vincent.

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


[lazarus] Anyone using SUSE

2006-05-21 Thread johnf
Hi,

I have now installed OpenSUSE 10.1 three times.  I have discovered that even 
after installing all available development libraries the links required by 
Lazarus are not setup.  In fact I think OpenSUSE 10.1 is attempting to drop 
GTK1.  I'm new to Linux (at least at this level) so I am asking others to 
confirm my findings.  BTW Fedora5 still supports gtk1 with a standard 
install.

John

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


Re: [lazarus] Problem with gdb/IDE and GetEnvironmentVariable (Bug 1685)

2006-05-21 Thread Christian U.
> - closes and restarts the IDE, or
> - sets debugger at (none), reruns the application, sets the
> debugger at GNU debugger (gdb),

thats not real correct, the value is simply not saved. so if you have none
as value and set it to gdb, always none is there.
i think i have made an bugreport for this issue but nobody seems to be
interested in this.

Christian Ulrich

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


Re: [lazarus] Speedbutton property transparant default value should be false.

2006-05-21 Thread darekm

Pleas test this patch

problem was when speedbutton.transparent=true

there is problem with tGroupBox on GTK2, MouseEnter is not triggered and 
then Flat not work







Marien van Westen wrote:




On 5/20/06, *DarekM* <[EMAIL PROTECTED] > 
wrote:


Marien van Westen napisał(a):




On 5/20/06, *DarekM* <[EMAIL PROTECTED]
> wrote:

Micha Nelissen napisał(a):

On Sat, 20 May 2006 10:37:01 +0200
DarekM <[EMAIL PROTECTED]>  wrote:

 


Transparency work both,
with flat=true button  has border only when mouse is over
with transparency=true don't fill inner area
   


That contradicts Marien's picture
'speedbuttons-panel-delphi-runtime.png' (the first one).
 



This is slide from my application write in Delphi
all buttons are transparent=true and flat=true
only button under mouse has border

different is when we work on IDE,
then button has always border


In my app I have a signal generater and the speedbuttons only
have a Caption to select frequency range.
In Delphi I can see the different buttons, but not in Lazarus.


Have You property Flat=true ?



I attach two pictures to show the difference.
N.B. I tried to improve things bij placing the buttons in a
groupbox in the Lazarus version, hence the line above the buttons
(as you can see that's not an improvement).


I`m not sure if You have problem with line above, but to disable it 
uncheck ToolBar2.edgeBorder.top


Darek

Index: include/speedbutton.inc
===
--- include/speedbutton.inc (wersja 9299)
+++ include/speedbutton.inc (kopia robocza)
@@ -279,6 +279,8 @@
   if FFlat and not FMouseInControl and not (FState in [bsDown, bsExclusive]) 
then
   begin
 Result := DFCS_FLAT;
+if not Enabled then
+  inc(Result,DFCS_INACTIVE)
   end else begin
 Result:=DFCS_BUTTONPUSH;
 if FState in [bsDown, bsExclusive] then 
@@ -413,13 +415,9 @@
   // do not draw anything if flat and mouse not in control (simplified)
   if Transparent then begin
 if (FLastDrawFlags and DFCS_FLAT) = 0 then begin
-  if MouseInControl then begin
if (FLastDrawFlags and DFCS_PUSHED) <>0 then xBevel := bvLowered
else xBevel := bvRaised;
 Canvas.Frame3D(PaintRect,1,xBevel);
-  end else if (FLastDrawFlags and DFCS_PUSHED) <>0 then begin
-Canvas.Frame3D(PaintRect,1,bvLowered);
-  end;
   InflateRect(PaintRect, -1, -1);
 end;
   end else begin
@@ -745,7 +743,6 @@
 begin
   inherited MouseEnter;
   if csDesigning in ComponentState then exit;
-
   if not FMouseInControl
   and Enabled and (GetCapture = 0)
   then begin



[lazarus] Problem with gdb/IDE and GetEnvironmentVariable (Bug 1685)

2006-05-21 Thread Borut Maricic
> http://www.freepascal.org/mantis/view.php?id=1685

Vincent, thank you for bringing that existing bug-report to my
attention. I have now added the following note there:

The problem appears only while running in IDE and only when
gdb is defined as a debugger and only from the second
application run onwards. If one:

- closes and restarts the IDE, or
- sets debugger at (none), reruns the application, sets the
debugger at GNU debugger (gdb),

the first run that follows will produce normal results. The
second run will have empty values of environment variables
returned, as previously described. No breakpoints
defined/set/reset, in order to repeat this behavior.

Borut

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


Re: [lazarus] THTMLBrowserHelpViewer.FindDefaultBrowser under Win32

2006-05-21 Thread Vincent Snijders

Borut Maricic wrote:

On 2006-05-21 at 10:32,
Mattias Gaertner ([EMAIL PROTECTED]) wrote:


procedure GetDefaultBrowser(var Browser, Params: string);
begin
  Browser:= SearchFileInPath('rundll32.exe','',
   SysUtils.GetEnvironmentVariable('PATH'),';',
   [sffDontSearchInBasePath]);
  Params:='url.dll,FileProtocolHandler %s';
end;




This is called by the IDE via OnFindDefaultBrowser. This is not part of the
viewer component itself.
I added that.



Thank you. It was really a fast change! Yup, I can confirm
that it is working now under WinXP.

Regarding my own comments:


BTW, it also seems that a call to
SysUtils.GetEnvironmentVariable('any sysvar name here') is
always returning an empty string. Can that be or am I making
a fool of myself here?


Oooops, this seems to work now (I have made a SVN update in
the meantime). Strange.



This seems to be introduced through a debugger itself.
While debugging, the environment variables are sometimes
accessed ok and sometimes no. Out of the IDE and apparently
in the IDE, but w/o debugging, it works every time. Maybe it
has to do with the debugger I have installed - I used the
link http://prdownloads.sourceforge.net/mingw/gdb-6.0-20031011.exe
since I could not find any link to a newer Win32-ready gdb
exe. Any suggestions, perhaps?



http://www.freepascal.org/mantis/view.php?id=1685

Vincent

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


Re: [lazarus] THTMLBrowserHelpViewer.FindDefaultBrowser under Win32

2006-05-21 Thread Borut Maricic
On 2006-05-21 at 10:32,
Mattias Gaertner ([EMAIL PROTECTED]) wrote:
>> procedure GetDefaultBrowser(var Browser, Params: string);
>> begin
>>Browser:= SearchFileInPath('rundll32.exe','',
>> SysUtils.GetEnvironmentVariable('PATH'),';',
>> [sffDontSearchInBasePath]);
>>Params:='url.dll,FileProtocolHandler %s';
>> end;

> This is called by the IDE via OnFindDefaultBrowser. This is not part of the
> viewer component itself.
> I added that.

Thank you. It was really a fast change! Yup, I can confirm
that it is working now under WinXP.

Regarding my own comments:
>> BTW, it also seems that a call to
>> SysUtils.GetEnvironmentVariable('any sysvar name here') is
>> always returning an empty string. Can that be or am I making
>> a fool of myself here?
> 
> Oooops, this seems to work now (I have made a SVN update in
> the meantime). Strange.

This seems to be introduced through a debugger itself.
While debugging, the environment variables are sometimes
accessed ok and sometimes no. Out of the IDE and apparently
in the IDE, but w/o debugging, it works every time. Maybe it
has to do with the debugger I have installed - I used the
link http://prdownloads.sourceforge.net/mingw/gdb-6.0-20031011.exe
since I could not find any link to a newer Win32-ready gdb
exe. Any suggestions, perhaps?

Regards,
Borut
P.S.
> Wow. I added that yesterday and didn't announce it yet. And now there is
> already a request for improvement. Are you sure, you are a bloody newbie? ;)

Oh, yes, unfortunately I am quite sure!

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


Re: [lazarus] THTMLBrowserHelpViewer.FindDefaultBrowser under Win32

2006-05-21 Thread Mattias Gaertner
On Sun, 21 May 2006 10:17:39 +0200
Vincent Snijders <[EMAIL PROTECTED]> wrote:

> Borut Maricic wrote:
> > I am still a bloody newbie in Lazarus, but am trying to go
> > forward step by step. I am using it on WinXP. My HTML
> > browser is Opera.
> > 
> > While experimenting with the example HTMLHelp1, I was
> > receiving a message "Unable to find a HTML browser". This
> > forced me to install gdb :) (had to do it sooner or later)
> > and search for the devil in the details.
> > 
> > If HTMLBrowserHelpViewer.BrowserPath is not defined and
> > OnFindDefaultBrowser not Assigned then
> > LazHelpHTML.THTMLBrowserHelpViewer.FindDefaultBrowser
> > searches the PATH environment variable, in order to find the
> > browser path. As far as I am aware, this is meaningless for
> > the Win platform.
> > 
> > In my Delphi (Win) projects, when I want to show some
> > document (be it html, doc, txt, ...) I usually just start
> > the external process specifying the document name (does not
> > have the exact code for that API call at hand at the moment)
> > and Win itself then starts the appropriate application
> > (according to the document extension, opening the specified
> > document).
> > 
> > I feel that (for win) this would probably be the best and
> > most stable way, but am not sure if, where and how such a
> > patch is to be made in a multiplatform Lazarus code.
> > 
> 
> I guess some specific win32 code has been lost, when the help was moved 
> from the ide to the lcl. In the IDE GetDefaultBrowser from 
> lazarus\ide\include\win32\lazconf.inc.
> 
> procedure GetDefaultBrowser(var Browser, Params: string);
> begin
>Browser:= SearchFileInPath('rundll32.exe','',
> SysUtils.GetEnvironmentVariable('PATH'),';',
> [sffDontSearchInBasePath]);
>Params:='url.dll,FileProtocolHandler %s';
> end;

This is called by the IDE via OnFindDefaultBrowser. This is not part of the
viewer component itself.
I added that.

Mattias

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


Re: [lazarus] THTMLBrowserHelpViewer.FindDefaultBrowser under Win32

2006-05-21 Thread Mattias Gaertner
On Sun, 21 May 2006 09:54:15 +0200
Borut Maricic <[EMAIL PROTECTED]> wrote:

> I am still a bloody newbie in Lazarus, but am trying to go
> forward step by step. I am using it on WinXP. My HTML
> browser is Opera.
> 
> While experimenting with the example HTMLHelp1, I was
> receiving a message "Unable to find a HTML browser". This
> forced me to install gdb :) (had to do it sooner or later)
> and search for the devil in the details.

Wow. I added that yesterday and didn't announce it yet. And now there is
already a request for improvement. Are you sure, you are a bloody newbie? ;)

 
> If HTMLBrowserHelpViewer.BrowserPath is not defined and
> OnFindDefaultBrowser not Assigned then
> LazHelpHTML.THTMLBrowserHelpViewer.FindDefaultBrowser
> searches the PATH environment variable, in order to find the
> browser path. As far as I am aware, this is meaningless for
> the Win platform.

On the other platforms there are better ways to find the default browser as
well.
Maybe we should create a unit for that. It could be useful to other programs
as well.

 
> In my Delphi (Win) projects, when I want to show some
> document (be it html, doc, txt, ...) I usually just start
> the external process specifying the document name (does not
> have the exact code for that API call at hand at the moment)
> and Win itself then starts the appropriate application
> (according to the document extension, opening the specified
> document).
> 
> I feel that (for win) this would probably be the best and
> most stable way, but am not sure if, where and how such a
> patch is to be made in a multiplatform Lazarus code.
> 
> BTW, it also seems that a call to
> SysUtils.GetEnvironmentVariable('any sysvar name here') is
> always returning an empty string. Can that be or am I making
> a fool of myself here?

Windows has environment variables as well. But I didn't test that, so maybe
it is broken at the moment?

Mattias

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


Re: [lazarus] TrayIcon patch

2006-05-21 Thread Mattias Gaertner
On Fri, 19 May 2006 19:56:07 +0200
"A.J. Venter" <[EMAIL PROTECTED]> wrote:

> Attached patch fixes compilation of trayicon for GTK2 projects.

Thanks. Fixed.

Mattias

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


Re: [lazarus] THTMLBrowserHelpViewer.FindDefaultBrowser under Win32

2006-05-21 Thread Vincent Snijders

Borut Maricic wrote:

I am still a bloody newbie in Lazarus, but am trying to go
forward step by step. I am using it on WinXP. My HTML
browser is Opera.

While experimenting with the example HTMLHelp1, I was
receiving a message "Unable to find a HTML browser". This
forced me to install gdb :) (had to do it sooner or later)
and search for the devil in the details.

If HTMLBrowserHelpViewer.BrowserPath is not defined and
OnFindDefaultBrowser not Assigned then
LazHelpHTML.THTMLBrowserHelpViewer.FindDefaultBrowser
searches the PATH environment variable, in order to find the
browser path. As far as I am aware, this is meaningless for
the Win platform.

In my Delphi (Win) projects, when I want to show some
document (be it html, doc, txt, ...) I usually just start
the external process specifying the document name (does not
have the exact code for that API call at hand at the moment)
and Win itself then starts the appropriate application
(according to the document extension, opening the specified
document).

I feel that (for win) this would probably be the best and
most stable way, but am not sure if, where and how such a
patch is to be made in a multiplatform Lazarus code.



I guess some specific win32 code has been lost, when the help was moved 
from the ide to the lcl. In the IDE GetDefaultBrowser from 
lazarus\ide\include\win32\lazconf.inc.


procedure GetDefaultBrowser(var Browser, Params: string);
begin
  Browser:= SearchFileInPath('rundll32.exe','',
   SysUtils.GetEnvironmentVariable('PATH'),';',
   [sffDontSearchInBasePath]);
  Params:='url.dll,FileProtocolHandler %s';
end;


Vincent

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


Re: [lazarus] THTMLBrowserHelpViewer.FindDefaultBrowser under Win32

2006-05-21 Thread Borut Maricic
> BTW, it also seems that a call to
> SysUtils.GetEnvironmentVariable('any sysvar name here') is
> always returning an empty string. Can that be or am I making
> a fool of myself here?

Oooops, this seems to work now (I have made a SVN update in
the meantime). Strange. Anyhow, the main issue remains -
under Win the THTMLBrowserHelpViewer.FindDefaultBrowser does
not seem to be able to find browser and hence show a HTML
document.

Borut

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


Re: [lazarus] Speedbutton property transparant default value should be false.

2006-05-21 Thread Marien van Westen
DarekM,I got a message my zip-file was blocked. I saw recent posts were the blocked message was received. Did you get my zip-file?Marien