[Lazarus] Setting bold on a Tabsheet

2012-09-04 Thread kaller
  

How can I set a pagecontrol's tabsheet caption font style to bold
for a single tab only?  
  --
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] building lazarus 1.0 with make OPT="-n" and fpc.cfg in different location

2012-09-04 Thread Mattias Gaertner
On Tue, 4 Sep 2012 11:02:57 -0600
Seth Grover  wrote:

> Greetings. First off, congratulations on the 1.0 release. Lazarus is a
> terrific IDE and a great development platform.
> 
> I've got a script that I use to build FPC/Lazarus from source and roll
> it into my own custom package. During the build of Lazarus,
> /etc/fpc.cfg doesn't exist yet. This isn't a problem for the most
> part, because I used samplecfg to generate an fpc.cfg file in a
> temporary location. Then, when building Lazarus, I do it like this:
> 
> make bigide PP=/path/to/wherever/ppcx64 OPT="-n @/path/to/tmp/fpc.cfg"
> 
> The -n tells it to not use the regular cfg paths, and what follows
> tells it where to find the cfg file to use.
> 
> This works fine for most of the build: lazarus builds and links, as
> does startlazarus and some of the other binaries. However, when it
> gets to building the "lhelp" binary under chmhelp, I can see my OPTs
> aren't being passed down, and it fails with an error that /etc/fpc.cfg
> doesn't exist.

Fixed.

Mattias

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


Re: [Lazarus] building lazarus 1.0 with make OPT="-n" and fpc.cfg in different location

2012-09-04 Thread waldo kitty

On 9/4/2012 13:02, Seth Grover wrote:


make bigide PP=/path/to/wherever/ppcx64 OPT="-n @/path/to/tmp/fpc.cfg"

The -n tells it to not use the regular cfg paths, and what follows
tells it where to find the cfg file to use.


i don't know if this ties in or not but your make line appears to be missing a 
space between the closing double-quote and the '-n'... was this simply a typo in 
the message or is it really like that when your tool generates that call? if it 
is not a typo, then it is possible that the passing on of the param doesn't 
succeed because of the missing space and so the '-n' is not detected and 
available to pass on...



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


Re: [Lazarus] TPanel.ComponentCount

2012-09-04 Thread ik
On Tue, Sep 4, 2012 at 11:06 PM, Flávio Etrusco
 wrote:
> On Tue, Sep 4, 2012 at 4:58 PM, patspiper  wrote:
>> On 04/09/12 22:51, ik wrote:
>>>
>>> Hello,
>>>
>>> I'm trying to do the following code:
>>>
>>> for i := 0 to vispan.ComponentCount -1 do
>>>  begin
>>>if vispan.Components[i] is TSpeedButton then
>>>  begin
>>>if Assigned(TSpeedButton(vispan.Components[i]).Action) then
>>>  TAction(TSpeedButton(vispan.Components[i]).Action).Enabled :=
>>> True
>>>else
>>>  TSpeedButton(vispan.Components[i]).Enabled := True;
>>>  end;
>>>  end;
>>>
>>> where vispan is a TPanel that get the current visible panel.
>>> However, it seems that ComponentCount is 0, even though it has 7
>>> components inside.
>>> The components does see the TPanel as it's parent, and so does the
>>> navigator.
>>>
>>> Is it a bug, or am I missing something here ?
>>>
>>> Lazarus 1.1 r38512M FPC 2.6.0 x86_64-linux-gtk 2
>>
>> Probably the form is the owner and not the panel.
>>
>> Stephano
>
> Definetely.
> What you're missing is that Component* properties refer to
> owner(ship). You should use ControlCount and Controls properties
> instead.

Thank you, that works

>
> -Flávio
>
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

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


Re: [Lazarus] TPanel.ComponentCount

2012-09-04 Thread Flávio Etrusco
On Tue, Sep 4, 2012 at 4:58 PM, patspiper  wrote:
> On 04/09/12 22:51, ik wrote:
>>
>> Hello,
>>
>> I'm trying to do the following code:
>>
>> for i := 0 to vispan.ComponentCount -1 do
>>  begin
>>if vispan.Components[i] is TSpeedButton then
>>  begin
>>if Assigned(TSpeedButton(vispan.Components[i]).Action) then
>>  TAction(TSpeedButton(vispan.Components[i]).Action).Enabled :=
>> True
>>else
>>  TSpeedButton(vispan.Components[i]).Enabled := True;
>>  end;
>>  end;
>>
>> where vispan is a TPanel that get the current visible panel.
>> However, it seems that ComponentCount is 0, even though it has 7
>> components inside.
>> The components does see the TPanel as it's parent, and so does the
>> navigator.
>>
>> Is it a bug, or am I missing something here ?
>>
>> Lazarus 1.1 r38512M FPC 2.6.0 x86_64-linux-gtk 2
>
> Probably the form is the owner and not the panel.
>
> Stephano

Definetely.
What you're missing is that Component* properties refer to
owner(ship). You should use ControlCount and Controls properties
instead.

-Flávio

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


Re: [Lazarus] TPanel.ComponentCount

2012-09-04 Thread ik
On Tue, Sep 4, 2012 at 10:58 PM, patspiper  wrote:
> On 04/09/12 22:51, ik wrote:
>>
>> Hello,
>>
>> I'm trying to do the following code:
>>
>> for i := 0 to vispan.ComponentCount -1 do
>>  begin
>>if vispan.Components[i] is TSpeedButton then
>>  begin
>>if Assigned(TSpeedButton(vispan.Components[i]).Action) then
>>  TAction(TSpeedButton(vispan.Components[i]).Action).Enabled :=
>> True
>>else
>>  TSpeedButton(vispan.Components[i]).Enabled := True;
>>  end;
>>  end;
>>
>> where vispan is a TPanel that get the current visible panel.
>> However, it seems that ComponentCount is 0, even though it has 7
>> components inside.
>> The components does see the TPanel as it's parent, and so does the
>> navigator.
>>
>> Is it a bug, or am I missing something here ?
>>
>> Lazarus 1.1 r38512M FPC 2.6.0 x86_64-linux-gtk 2
>
> Probably the form is the owner and not the panel.
The panel is the parent. I wrote the following code:
  ShowMessage('btnReloadQuotes.parent: ' + btnReloadQuotes.Parent.Name);

it does claim that the parent is the panel.

>
> Stephano
>
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

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


Re: [Lazarus] TPanel.ComponentCount

2012-09-04 Thread patspiper

On 04/09/12 22:51, ik wrote:

Hello,

I'm trying to do the following code:

for i := 0 to vispan.ComponentCount -1 do
 begin
   if vispan.Components[i] is TSpeedButton then
 begin
   if Assigned(TSpeedButton(vispan.Components[i]).Action) then
 TAction(TSpeedButton(vispan.Components[i]).Action).Enabled := True
   else
 TSpeedButton(vispan.Components[i]).Enabled := True;
 end;
 end;

where vispan is a TPanel that get the current visible panel.
However, it seems that ComponentCount is 0, even though it has 7
components inside.
The components does see the TPanel as it's parent, and so does the navigator.

Is it a bug, or am I missing something here ?

Lazarus 1.1 r38512M FPC 2.6.0 x86_64-linux-gtk 2

Probably the form is the owner and not the panel.

Stephano

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


[Lazarus] TPanel.ComponentCount

2012-09-04 Thread ik
Hello,

I'm trying to do the following code:

for i := 0 to vispan.ComponentCount -1 do
begin
  if vispan.Components[i] is TSpeedButton then
begin
  if Assigned(TSpeedButton(vispan.Components[i]).Action) then
TAction(TSpeedButton(vispan.Components[i]).Action).Enabled := True
  else
TSpeedButton(vispan.Components[i]).Enabled := True;
end;
end;

where vispan is a TPanel that get the current visible panel.
However, it seems that ComponentCount is 0, even though it has 7
components inside.
The components does see the TPanel as it's parent, and so does the navigator.

Is it a bug, or am I missing something here ?

Lazarus 1.1 r38512M FPC 2.6.0 x86_64-linux-gtk 2

Thanks,
Ido

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


Re: [Lazarus] TAChart tutorials not visible on Category:Tutorials page

2012-09-04 Thread Vincent Snijders
2012/9/4 Alexander Klenin :
> As reported on forum:
> http://forum.lazarus.freepascal.org/index.php/topic,18068.0/topicseen.html
> tutorials do not appear on this page unless the user is logged in.
>
> Perhaps some caching issue?

I think I succesfully disabled caching for the category page. Please,
test and let me know your experiences.

Vincent

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


Re: [Lazarus] issues with Lazarus Qt

2012-09-04 Thread zeljko
On Tuesday 04 of September 2012 20:04:55 Martin wrote:
> On 04/09/2012 18:59, zeljko wrote:
> > On Tuesday 04 of September 2012 18:43:20 ik wrote:
> >> Hello,
> >> 
> >> I'ved recently tried to use Lazarus 1.1 with Qt version.
> >> While it looks native and really cool in my KDE, I had few issues with
> >> it: 1. Font rendering with TSynEdit - It had a lot of issues to display
> >> the end of a char at the end of a "word" that after it there was space,
> >> dot etc ...
> > 
> > Example ? I didn't test latest trunk with changes in SynEdit ...
> 
> Use any propartional font.

Yes, that's shows exact problem  that's because dx isn't implemented in 
qtlcl ExtTextOut() yet .. so pls. open an issue about it.

zeljko

> 
> Then SynEdit adds the charwidth data to force it into the grid.
> 
> The issue does not happen with a monospaced font.
> So most people will not noticed. (Proportional fonts look real ugly in
> SynEdit, due to extreme x-spacing between all chars)
> 
> >> 2. The selecting of text in SynEdit, changes the length of the font.
> >> So the text moving.
> > 
> > Never seen such problem
> 
> Same
> 
> >> 4. The menus are flickering, and even changing the focus of other
> >> windows
> > 
> > Not all menus, but Window-> menu and that's qt bug (I guess because of
> > checkboxes in it).
> 
> Was that always the case? I never noted before..
> Ok I very seldom use it. But I test every now and then, and since I
> build via the toos menu, I do use the menu whenever I test.
> 
> And now it is so extreme, there is no way I would not have noticed.

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


Re: [Lazarus] issues with Lazarus Qt

2012-09-04 Thread zeljko
On Tuesday 04 of September 2012 20:16:41 Martin wrote:
> On 04/09/2012 18:59, zeljko wrote:
> >> 4. The menus are flickering, and even changing the focus of other
> >> windows
> > 
> > Not all menus, but Window-> menu and that's qt bug (I guess because of
> > checkboxes in it).
> 
> r 28793 (just an old exe, I still had a copy off)
> 
> same QT install (that is testing that rev today on the same box)
> same qtintf.dll, as I run from same folder
> 
> menu does not flicker.
> 
> there are checkboxes (though there are no submenus + checkboxes in the
> same menu)

There is some problem with some combinations, probably submenus + checboxes.
I'll create pure C++ app to see if it's really Qt problem, or something else 
in qtlcl (but I doubt about it) - flickering probably happens because 
QCheckBox sends some activation events or similar.

zeljko

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


Re: [Lazarus] issues with Lazarus Qt

2012-09-04 Thread zeljko
On Tuesday 04 of September 2012 20:13:25 Martin wrote:
> On 04/09/2012 19:11, zeljko wrote:
> > Further more, on windows I suddenly see it hanging (does not react)
> > frequently
> > Try to update Qt to at least 4.7.3 (but 4.8.2 is definitelly better
> > option). Hanging is fixed somewhere between 4.7.0 and 4.7.3
> 
> Why has (using the same QT) my Lazarus never hang before? Not that I
> remember anyway)

That's something that I don't know. First: I must understand what's exact 
problem and then look at it. I don't see any hanging under windows 7 here.

zeljko

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


Re: [Lazarus] issues with Lazarus Qt

2012-09-04 Thread Martin

On 04/09/2012 18:59, zeljko wrote:

4. The menus are flickering, and even changing the focus of other windows

Not all menus, but Window-> menu and that's qt bug (I guess because of
checkboxes in it).



r 28793 (just an old exe, I still had a copy off)

same QT install (that is testing that rev today on the same box)
same qtintf.dll, as I run from same folder

menu does not flicker.

there are checkboxes (though there are no submenus + checkboxes in the 
same menu)



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


Re: [Lazarus] issues with Lazarus Qt

2012-09-04 Thread zeljko
On Tuesday 04 of September 2012 19:56:25 Martin wrote:
> On 04/09/2012 17:43, ik wrote:
> > I'ved recently tried to use Lazarus 1.1 with Qt version.
> > While it looks native and really cool in my KDE, I had few issues with
> > it: 1. Font rendering with TSynEdit - It had a lot of issues to display
> > the end of a char at the end of a "word" that after it there was space,
> > dot etc ...
> > 2. The selecting of text in SynEdit, changes the length of the font.
> 
> 1 and 2 are the same
> And happen also on windows
> 
> seems like
> 
> function ExtUTF8Out(DC: HDC; X, Y: Integer; Options: Longint; Rect:
> PRect; Str: PChar; Count: Longint; Dx: PInteger): Boolean;
> 
> Ignores the Values in Dx (an array of display widths for each char)
> 
> I debugged it, the array is passed in correctly.

Yes, Dx param isn't used in Qt WS atm. Please fill bug report about it.

zeljko


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


Re: [Lazarus] issues with Lazarus Qt

2012-09-04 Thread Martin

On 04/09/2012 19:11, zeljko wrote:

Further more, on windows I suddenly see it hanging (does not react)
frequently
Try to update Qt to at least 4.7.3 (but 4.8.2 is definitelly better option).
Hanging is fixed somewhere between 4.7.0 and 4.7.3



Why has (using the same QT) my Lazarus never hang before? Not that I 
remember anyway)


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


Re: [Lazarus] issues with Lazarus Qt

2012-09-04 Thread zeljko
On Tuesday 04 of September 2012 19:58:26 Martin wrote:
> On 04/09/2012 18:56, Martin wrote:
> > Same on windows.
> > 
> > though I must add, my QT may not be the very latest. Yet if it compiles
> > with no error
> 
> Further more, on windows I suddenly see it hanging (does not react)
> frequently

Try to update Qt to at least 4.7.3 (but 4.8.2 is definitelly better option).
Hanging is fixed somewhere between 4.7.0 and 4.7.3

zeljko

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


Re: [Lazarus] issues with Lazarus Qt

2012-09-04 Thread Martin

On 04/09/2012 18:59, zeljko wrote:

4. The menus are flickering, and even changing the focus of other windows

Not all menus, but Window-> menu and that's qt bug (I guess because of
checkboxes in it).



Can they be displayed using an icon instead?

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


Re: [Lazarus] issues with Lazarus Qt

2012-09-04 Thread Martin

On 04/09/2012 19:04, Martin wrote:


4. The menus are flickering, and even changing the focus of other 
windows

Not all menus, but Window-> menu and that's qt bug (I guess because of
checkboxes in it).


Was that always the case? I never noted before..
Ok I very seldom use it. But I test every now and then, and since I 
build via the toos menu, I do use the menu whenever I test.


And now it is so extreme, there is no way I would not have noticed.


Well maybe I did not notice. It is only the "window" (list of all 
windows) menu. Which is the only one that has checkboxes.


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


Re: [Lazarus] issues with Lazarus Qt

2012-09-04 Thread Martin

On 04/09/2012 18:59, zeljko wrote:

On Tuesday 04 of September 2012 18:43:20 ik wrote:

Hello,

I'ved recently tried to use Lazarus 1.1 with Qt version.
While it looks native and really cool in my KDE, I had few issues with it:
1. Font rendering with TSynEdit - It had a lot of issues to display
the end of a char at the end of a "word" that after it there was
space, dot etc ...

Example ? I didn't test latest trunk with changes in SynEdit ...


Use any propartional font.

Then SynEdit adds the charwidth data to force it into the grid.

The issue does not happen with a monospaced font.
So most people will not noticed. (Proportional fonts look real ugly in 
SynEdit, due to extreme x-spacing between all chars)





2. The selecting of text in SynEdit, changes the length of the font.
So the text moving.

Never seen such problem

Same


4. The menus are flickering, and even changing the focus of other windows

Not all menus, but Window-> menu and that's qt bug (I guess because of
checkboxes in it).


Was that always the case? I never noted before..
Ok I very seldom use it. But I test every now and then, and since I 
build via the toos menu, I do use the menu whenever I test.


And now it is so extreme, there is no way I would not have noticed.




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


Re: [Lazarus] issues with Lazarus Qt

2012-09-04 Thread zeljko
On Tuesday 04 of September 2012 18:43:20 ik wrote:
> Hello,
> 
> I'ved recently tried to use Lazarus 1.1 with Qt version.
> While it looks native and really cool in my KDE, I had few issues with it:
> 1. Font rendering with TSynEdit - It had a lot of issues to display
> the end of a char at the end of a "word" that after it there was
> space, dot etc ...

Example ? I didn't test latest trunk with changes in SynEdit ...

> 2. The selecting of text in SynEdit, changes the length of the font.
> So the text moving.

Never seen such problem

> 3. The Messeges window keep on disparaging

Disparaging ? I'm not sure that I've understood this.

> 4. The menus are flickering, and even changing the focus of other windows

Not all menus, but Window-> menu and that's qt bug (I guess because of 
checkboxes in it).

> 5. In the editor, CTRL+SHIFT+Space hint, go over the completion option

Over ? Please attach screenshoot ...

> Before I'll start to report these as bugs, are these known issues ?

No, I don't see such issues at all (Fedora 14 32bit, Lazarus 1.1 svn 20-30 
revisions away from trunk).

Also, before posting any issues, please try some another theme under KDE eg. 
plastique.


zeljko

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


Re: [Lazarus] issues with Lazarus Qt

2012-09-04 Thread Martin

On 04/09/2012 18:56, Martin wrote:


Same on windows.

though I must add, my QT may not be the very latest. Yet if it compiles
with no error



Further more, on windows I suddenly see it hanging (does not react) 
frequently


No report of an actual crash. But that may be hidden


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


Re: [Lazarus] issues with Lazarus Qt

2012-09-04 Thread Martin

On 04/09/2012 17:43, ik wrote:

I'ved recently tried to use Lazarus 1.1 with Qt version.
While it looks native and really cool in my KDE, I had few issues with it:
1. Font rendering with TSynEdit - It had a lot of issues to display
the end of a char at the end of a "word" that after it there was
space, dot etc ...
2. The selecting of text in SynEdit, changes the length of the font.


1 and 2 are the same
And happen also on windows

seems like

function ExtUTF8Out(DC: HDC; X, Y: Integer; Options: Longint; Rect: 
PRect; Str: PChar; Count: Longint; Dx: PInteger): Boolean;


Ignores the Values in Dx (an array of display widths for each char)

I debugged it, the array is passed in correctly.


4. The menus are flickering, and even changing the focus of other windows


Same on windows.

though I must add, my QT may not be the very latest. Yet if it compiles 
with no error



Before I'll start to report these as bugs, are these known issues ?



Search the bug tracker, then report


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


Re: [Lazarus] issues with Lazarus Qt

2012-09-04 Thread Graeme Geldenhuys

On 04/09/12 17:43, ik wrote:

1. Font rendering with TSynEdit - It had a lot of issues to display
the end of a char at the end of a "word" that after it there was
space, dot etc ...
2. The selecting of text in SynEdit, changes the length of the font.


I believe these to be regression errors then. I have experienced both of 
those before, but can't remember if it was with LCL-Qt or LCL-GTK2. I 
was fixed, but this was long before v1.0. I now only use LCL-GTK2, and 
can't see that issue now.



Graeme.



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


Re: [Lazarus] PascalScript on Win x64

2012-09-04 Thread Alexander Hofmann
Am 04.09.2012 14:33, schrieb Vincent Snijders:
> 2012/9/4 Alexander Hofmann :
>> Hi there.
>>
>> This is a cross-post (cross-mail ?) to
>> http://www.lazarus.freepascal.org/index.php/topic,17978.0.html as I got the
>> hint there that it might be better to ask on the list instead of in the
>> forum, at least concerning the calling conventions -
> The fpc mailing list was suggested. For more info see:
> http://www.freepascal.org/maillist.var
Erm. Your're right, of course... I'm sorry for that..

Thanks for the hint.



signature.asc
Description: OpenPGP digital signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] building lazarus 1.0 with make OPT="-n" and fpc.cfg in different location

2012-09-04 Thread Seth Grover
Greetings. First off, congratulations on the 1.0 release. Lazarus is a
terrific IDE and a great development platform.

I've got a script that I use to build FPC/Lazarus from source and roll
it into my own custom package. During the build of Lazarus,
/etc/fpc.cfg doesn't exist yet. This isn't a problem for the most
part, because I used samplecfg to generate an fpc.cfg file in a
temporary location. Then, when building Lazarus, I do it like this:

make bigide PP=/path/to/wherever/ppcx64 OPT="-n @/path/to/tmp/fpc.cfg"

The -n tells it to not use the regular cfg paths, and what follows
tells it where to find the cfg file to use.

This works fine for most of the build: lazarus builds and links, as
does startlazarus and some of the other binaries. However, when it
gets to building the "lhelp" binary under chmhelp, I can see my OPTs
aren't being passed down, and it fails with an error that /etc/fpc.cfg
doesn't exist.

I've worked around it by symlinking /etc/fpc.cfg to my temporary file,
but it would be better if it worked correctly.

Thanks,

-SG

--
This email is fiction. Any resemblance to actual events
or persons living or dead is purely coincidental.

Seth Grover

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


[Lazarus] issues with Lazarus Qt

2012-09-04 Thread ik
Hello,

I'ved recently tried to use Lazarus 1.1 with Qt version.
While it looks native and really cool in my KDE, I had few issues with it:
1. Font rendering with TSynEdit - It had a lot of issues to display
the end of a char at the end of a "word" that after it there was
space, dot etc ...
2. The selecting of text in SynEdit, changes the length of the font.
So the text moving.
3. The Messeges window keep on disparaging
4. The menus are flickering, and even changing the focus of other windows
5. In the editor, CTRL+SHIFT+Space hint, go over the completion option

Before I'll start to report these as bugs, are these known issues ?

I'm using Arch Linux 64 bit with KDE 4.9.00 with Qt 4.8.2, FPC 2.6.0

Ido

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


Re: [Lazarus] PascalScript on Win x64

2012-09-04 Thread Sven Barth

Am 04.09.2012 15:45, schrieb Martin:

On 04/09/2012 14:41, Martin wrote:

On 04/09/2012 14:02, Sven Barth wrote:


This seems to be the main disadvantage of PascalScript: it needs
platform specific assembler code...

Perhaps the situation can be improved once Rtti.Invoke (
http://docwiki.embarcadero.com/Libraries/de/System.Rtti.Invoke ) is
implemented...



I doubt it.

RTTI may (you need to establish if this applies to *all* cases) tell you
that "procedure Foo(a: integer)" takes 1 int param.
But it will not tell you, if this needs to be on the stack, or in a
register (or which register).



Sorry, not correct. It does: in calling convention.

The point I meant to made is: you still need to get the value into that
register, or set up the stack. That can only be done in asm


Yes, it can only be done in ASM, but the Invoke function is part of the 
RTL and thus would by definition be available for all platforms 
supported by FPC (even if not every platform would be available at once).


Regards,
Sven


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


Re: [Lazarus] PascalScript on Win x64

2012-09-04 Thread Henry Vermaak
On 04/09/12 14:45, Martin wrote:
> 
> The point I meant to made is: you still need to get the value into that
> register, or set up the stack. That can only be done in asm

No, you don't need to do anything.  Invoke calls the function with the
supplied "Args", which is exactly what the assembler code in
pascalscript does.

Henry

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


Re: [Lazarus] PascalScript on Win x64

2012-09-04 Thread Martin

On 04/09/2012 14:41, Martin wrote:

On 04/09/2012 14:02, Sven Barth wrote:


This seems to be the main disadvantage of PascalScript: it needs
platform specific assembler code...

Perhaps the situation can be improved once Rtti.Invoke (
http://docwiki.embarcadero.com/Libraries/de/System.Rtti.Invoke ) is
implemented...



I doubt it.

RTTI may (you need to establish if this applies to *all* cases) tell you
that "procedure Foo(a: integer)" takes 1 int param.
But it will not tell you, if this needs to be on the stack, or in a
register (or which register).



Sorry, not correct. It does: in calling convention.

The point I meant to made is: you still need to get the value into that 
register, or set up the stack. That can only be done in asm



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


Re: [Lazarus] PascalScript on Win x64

2012-09-04 Thread Martin

On 04/09/2012 14:02, Sven Barth wrote:


This seems to be the main disadvantage of PascalScript: it needs
platform specific assembler code...

Perhaps the situation can be improved once Rtti.Invoke (
http://docwiki.embarcadero.com/Libraries/de/System.Rtti.Invoke ) is
implemented...



I doubt it.

RTTI may (you need to establish if this applies to *all* cases) tell you 
that "procedure Foo(a: integer)" takes 1 int param.
But it will not tell you, if this needs to be on the stack, or in a 
register (or which register).



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


Re: [Lazarus] Transparent Container/Panel in LCL?

2012-09-04 Thread zeljko
On Tuesday 04 of September 2012 14:58:10 Felipe Monteiro de Carvalho wrote:
> On Tue, Sep 4, 2012 at 2:53 PM, zeljko  wrote:
> > OnCreate() will do exactly nothing on Qt too. If handle does not exist ,
> > setting any shape won't work (just looked into implementation).
> 
> Aha, might be, but it doesn't matter. You can use OnShow then.
> 
> In Gtk2 OnShow also doesn't work.

Depends on your application. Here it works for shaped TButton (shape is setted 
up in OnShow()).

zeljko

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


Re: [Lazarus] PascalScript on Win x64

2012-09-04 Thread Sven Barth

Am 04.09.2012 14:42, schrieb Martin:

On 04/09/2012 13:24, Alexander Hofmann wrote:

Hi there.

This is a cross-post (cross-mail ?) to
http://www.lazarus.freepascal.org/index.php/topic,17978.0.html as I
got the hint there that it might be better to ask on the list instead
of in the forum, at least concerning the calling conventions - but
I'll ask the whole lot, anyway; I hope that's ok.

As Vincent pointed out. FPC mailinglist.



Interestingly, when I start debugging
.Create(aOwner:TComponent)-Type of Constructors, there is
some difference in the Register values, depending on whether the
Constructor was called from "pure" FPC-Code or the Script (at least so
it seems):
o Called from FPC: rcx: 0 (nil), rdx: Class Reference, r8: Value of aOwner
o Called from Script: rcx: Class Reference, rdx: 1 (!?), r8: Value of
aOwner (at least so it seems)

Is there any difference in the calling convention on x64-Systems
between Delphi and Lazarus? I could only find the "standard"
information on Windows x64 calling conventions, without special care
of constructors, if there is any...



You will be able to get an answer about the calling convention fpc uses
(They should be standard)

But you can then check yourself in x64.inc what PascalScript does.


This seems to be the main disadvantage of PascalScript: it needs 
platform specific assembler code...


Perhaps the situation can be improved once Rtti.Invoke ( 
http://docwiki.embarcadero.com/Libraries/de/System.Rtti.Invoke ) is 
implemented...


Regards,
Sven


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


Re: [Lazarus] lazarus archive

2012-09-04 Thread Martin

On 04/09/2012 13:45, Paul Breneman wrote:

I agree!
I am glad you do. But please remind me, what are you agreeing too? I was 
unable to find out from your mail.



Blind people also like top posting a lot!


I have heard that. And I (partly / see below) accept that. But:
1)
Would a single quoted line (such as the one I quoted here), *if* it was 
read out by the screen reader, really be that bad?
Isn't that more about proper quoting? And top posting (in my experience) 
is 99% done with quoting all. Which means you still have to listen to 
the entire quote, since in addition to the top post there may be more reply.

2)
Should that not be fixed by the screen reader. Should the screen reader 
not have an option to skip the quotes?
If my mobile only supports about 30 chars per line, do I  asked everyone 
to shortens the lines, when they send? No! I expect my mobile to word 
wrap or scroll.


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


Re: [Lazarus] Transparent Container/Panel in LCL?

2012-09-04 Thread Felipe Monteiro de Carvalho
On Tue, Sep 4, 2012 at 2:53 PM, zeljko  wrote:
> OnCreate() will do exactly nothing on Qt too. If handle does not exist ,
> setting any shape won't work (just looked into implementation).

Aha, might be, but it doesn't matter. You can use OnShow then.

In Gtk2 OnShow also doesn't work.

-- 
Felipe Monteiro de Carvalho

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


Re: [Lazarus] Transparent Container/Panel in LCL?

2012-09-04 Thread zeljko
On Monday 03 of September 2012 19:45:50 Felipe Monteiro de Carvalho wrote:
> The code works in Windows and in Qt in Mac OS X.
> 
> Gtk2 has a problem that it does not allow setting the region of a
> control before the expose event. So basically setting the region in
> the event OnCreate will not do anything. I had this problem in my

OnCreate() will do exactly nothing on Qt too. If handle does not exist , 
setting any shape won't work (just looked into implementation).

zeljko

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


Re: [Lazarus] Transparent Container/Panel in LCL?

2012-09-04 Thread zeljko
On Monday 03 of September 2012 16:55:47 Graeme Geldenhuys wrote:
> On 03/09/12 15:19, Felipe Monteiro de Carvalho wrote:
> > Transparency is supported, just use TWinControl.SetShape(Region) or
> > SetShape(Bitmap);
> 
> It seems some people have different definitions of "transparency". Will
> that make the TTransparentContainer clear like glass? Will I see through
> it and see the main form's tiled canvas?
> 
> Anyway, I'm not 100% sure how to your the TRegion, so tried the
> following. Still no luck. The TTransparentContainer doesn't look
> "visually" transparent / see-thru.
> 
> 
> procedure TForm1.FormCreate(Sender: TObject);
> var
>r: TRegion;
> begin
>Width := 400;
> 
>r := TRegion.Create;
>FMyContainer := TTransparentContainer.Create(self);
>FMyContainer.Parent := self;
>with FMyContainer do
>begin
>  Left := 50;
>  Top := 50;
>  Width := 300;
>  Height := 200;
>  r.AddRectangle(0, 0, FMyContainer.Width, FMyContainer.Height);
>  SetShape(r);
>end;
> 
>...
> end;
> 
> 
> See attached image for the results.

I don't know for gtk2 atm, but eg. under Qt QPainter have opacity property 
which does thing you want. Maybe it's possible under gtk2 (by using cairo) to 
do same thing.

zeljko

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


Re: [Lazarus] lazarus archive

2012-09-04 Thread Paul Breneman

I agree!

Most of my customers mainly top post (with the entire previous message 
there just for reference).  Sometimes if we need to reply to several 
different sections of an email we post in context.


Blind people also like top posting a lot!


Avishai wrote:

Fortunately, the whole world doesn't march to one drum.  There are other
cultures.  Sorry if that annoys you.

On Tue, Sep 4, 2012 at 12:45 PM, Graeme Geldenhuys
wrote:


On 04/09/12 08:46, Reinier Olislagers wrote:


 By the way, next time you want to open a new thread, don't reply to a

message in an existing thread... your message didn't appear as a new


Arg! That is no annoying!! Most people here have NO Netiquette! [1][2][3]


* Top posting
* Quoting whole message with a one line replies.
* Quoting 6+ levels deep.
* Replying to existing message to start a new topic
* Multi-part HTML messages (though I can live with this I guess)



[1]  
http://en.wikipedia.org/wiki/**Etiquette_(technology)
[2]  Why it is sensible to observe the Netiquette
 
http://lipas.uwasa.fi/~ts/**http/netiquet.html
[3]  Some Answers to FAQ's about Mailing Lists and List Netiquette
 
http://dgmweb.net/**MailingListFAQs.html




Graeme.


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


Re: [Lazarus] PascalScript on Win x64

2012-09-04 Thread Martin

On 04/09/2012 13:24, Alexander Hofmann wrote:

Hi there.

This is a cross-post (cross-mail ?) to 
http://www.lazarus.freepascal.org/index.php/topic,17978.0.html as I 
got the hint there that it might be better to ask on the list instead 
of in the forum, at least concerning the calling conventions - but 
I'll ask the whole lot, anyway; I hope that's ok.

As Vincent pointed out. FPC mailinglist.



Interestingly, when I start debugging 
.Create(aOwner:TComponent)-Type of Constructors, there is 
some difference in the Register values, depending on whether the 
Constructor was called from "pure" FPC-Code or the Script (at least so 
it seems):

o Called from FPC: rcx: 0 (nil), rdx: Class Reference, r8: Value of aOwner
o Called from Script: rcx: Class Reference, rdx: 1 (!?), r8: Value of 
aOwner (at least so it seems)


Is there any difference in the calling convention on x64-Systems 
between Delphi and Lazarus? I could only find the "standard" 
information on Windows x64 calling conventions, without special care 
of constructors, if there is any...




You will be able to get an answer about the calling convention fpc uses 
(They should be standard)


But you can then check yourself in x64.inc what PascalScript does.


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


Re: [Lazarus] PascalScript on Win x64

2012-09-04 Thread Vincent Snijders
2012/9/4 Alexander Hofmann :
> Hi there.
>
> This is a cross-post (cross-mail ?) to
> http://www.lazarus.freepascal.org/index.php/topic,17978.0.html as I got the
> hint there that it might be better to ask on the list instead of in the
> forum, at least concerning the calling conventions -

The fpc mailing list was suggested. For more info see:
http://www.freepascal.org/maillist.var

Vincent

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


[Lazarus] PascalScript on Win x64

2012-09-04 Thread Alexander Hofmann
Hi there.

This is a cross-post (cross-mail ?) to
http://www.lazarus.freepascal.org/index.php/topic,17978.0.html as I got
the hint there that it might be better to ask on the list instead of in
the forum, at least concerning the calling conventions - but I'll ask
the whole lot, anyway; I hope that's ok.

Has anyone successfully used PascalScript with Lazarus Classes (e.g.
TForm, TButton) on Win x64?

I can compile the downloadable latest stable version from RemObject's
website (the one with the EXE-Installer) as well as the latest
development version from https://github.com/remobjects/pascalscript OR
(that's not in the Forum) the PascalScript-version included in Lazarus'
SVN, no Problem there, after two small changes in x64.inc (see below).
Running the script works, adding user defined functions (and calling
them!) is OK, too.

But as soon as I try to Create forms and objects, like the following
script, the Program crashes with a SIGSEGV.

|program Script;

var
  f:TForm;
  b:TButton;
begin
  f:=TForm.CreateNew(nil); //<- Works
  b:=TButton.Create(f); //<- crash
  b.Parent:=f;
  f.Show;
end.|


Crash in the Program is here:

|CLASSES_TCOMPONENT_$__INSERTCOMPONENT$TCOMPONENT 
0044F900 4883ec38 sub$0x38,%rsp
0044F904 48895c2420   mov%rbx,0x20(%rsp)
0044F909 4889742428   mov%rsi,0x28(%rsp)
0044F90E 4889cb   mov%rcx,%rbx
0044F911 4889d6   mov%rdx,%rsi
0044F914 4889da   mov%rbx,%rdx
0044F917 4889f1   mov%rsi,%rcx
0044F91A 4889f0   mov%rsi,%rax
0044F91D 488b00   mov(%rax),%rax
0044F920 ff906801 callq  *0x168(%rax)  <-- crash| 


Am I doing anything wrong? The same Script runs fine when the
Application was compiled with x86 Lazarus 1.0.
By the way: creating a TObject with e.g. o:=TObject.Create doesn't break
at al.

Interestingly, when I start debugging
.Create(aOwner:TComponent)-Type of Constructors, there is
some difference in the Register values, depending on whether the
Constructor was called from "pure" FPC-Code or the Script (at least so
it seems):
o Called from FPC: rcx: 0 (nil), rdx: Class Reference, r8: Value of aOwner
o Called from Script: rcx: Class Reference, rdx: 1 (!?), r8: Value of
aOwner (at least so it seems)

Is there any difference in the calling convention on x64-Systems between
Delphi and Lazarus? I could only find the "standard" information on
Windows x64 calling conventions, without special care of constructors,
if there is any...

Did anybody else stumble about that problem before? Thanks for your help!


Index: x64.inc
===
--- x64.inc(revision 38441)
+++ x64.inc(working copy)
@@ -14,7 +14,7 @@
   _RCX, _RDX, _R8, _R9: IPointer;
   var _XMM0: Double;
   _XMM1, _XMM2, _XMM3: Double;
-  aStack: Pointer; aItems: IntPtr); assembler; {$IFDEF
FPC}nostackframe;{$ENDIF}
+  aStack: Pointer; aItems: PtrUInt); assembler; {$IFDEF
FPC}nostackframe;{$ENDIF}
 asm
 (* Registers:
 RCX: Address
@@ -37,7 +37,7 @@
   mov rdx, aStack
   jmp @compareitems
 @work:
-  push [rdx]
+  push qword ptr [rdx]
   dec rcx
   sub rdx,8
 @compareitems:



signature.asc
Description: OpenPGP digital signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] What is aarre?

2012-09-04 Thread Mattias Gaertner
On Tue, 04 Sep 2012 11:20:48 +0100
Graeme Geldenhuys  wrote:

> On 03/09/12 23:39, Juha Manninen wrote:
> >
> > It is related to a new Lazarus package repository, enabling easy
> > search and installation of packages from there.
> 
> 
> Isn't that exactly what fppkg was designed for?

fppkg should be supported. There is already an IDE plugin although it
needs some work.
But fppkg is more like a distribution, that means the packages must have
a valid fpmake file and must be uploaded to it. This implies a few
restrictions on the package layout and dependencies.
There are many third party packages that don't fit into that scheme,
but they do have lpk files. aarre can gather information about those lpk
files. With this information we may find a solution.


Mattias

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


Re: [Lazarus] lazarus archive

2012-09-04 Thread Avishai
Fortunately, the whole world doesn't march to one drum.  There are other
cultures.  Sorry if that annoys you.

On Tue, Sep 4, 2012 at 12:45 PM, Graeme Geldenhuys
wrote:

> On 04/09/12 08:46, Reinier Olislagers wrote:
>
>>
>>>  By the way, next time you want to open a new thread, don't reply to a
>> message in an existing thread... your message didn't appear as a new
>>
>
> Arg! That is no annoying!! Most people here have NO Netiquette! [1][2][3]
>
>
> * Top posting
> * Quoting whole message with a one line replies.
> * Quoting 6+ levels deep.
> * Replying to existing message to start a new topic
> * Multi-part HTML messages (though I can live with this I guess)
>
>
>
> [1]  
> http://en.wikipedia.org/wiki/**Etiquette_(technology)
> [2]  Why it is sensible to observe the Netiquette
>  
> http://lipas.uwasa.fi/~ts/**http/netiquet.html
> [3]  Some Answers to FAQ's about Mailing Lists and List Netiquette
>  
> http://dgmweb.net/**MailingListFAQs.html
>
>
>
>
> Graeme.
>
>
>
> --
> __**_
> Lazarus mailing list
> Lazarus@lists.lazarus.**freepascal.org
> http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarus
>



-- 
Shalom,
Avishai
avishai.g...@gmail.com
אבישי גוֹר
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] What is aarre?

2012-09-04 Thread Sven Barth

Am 04.09.2012 12:20, schrieb Graeme Geldenhuys:

On 03/09/12 23:39, Juha Manninen wrote:


It is related to a new Lazarus package repository, enabling easy
search and installation of packages from there.



Isn't that exactly what fppkg was designed for?


That's what I thought as well

Regards,
Sven


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


Re: [Lazarus] Lazarus 1.0 release notes

2012-09-04 Thread Graeme Geldenhuys

On 04/09/12 09:43, Mattias Gaertner wrote:


Do you have your original HTML page so a diff can be created?



http://wiki.lazarus.freepascal.org/Lazarus_1.0_release_notes


I don't know why Howard didn't simply edit the wiki.



  Graeme.


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


Re: [Lazarus] What is aarre?

2012-09-04 Thread Graeme Geldenhuys

On 03/09/12 23:39, Juha Manninen wrote:


It is related to a new Lazarus package repository, enabling easy
search and installation of packages from there.



Isn't that exactly what fppkg was designed for?


Regards,
  - Graeme -


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


Re: [Lazarus] Writing application that sends things into facebook

2012-09-04 Thread Ludo Brands
> 
> I have been looking for this for ages, this is almost a dream 
> come true. Now I can throw away my own code.  :-)
> 
Don't throw your code away yet;)

> Where did you find the google specs in machine-usable form ? 
Example:
https://developers.google.com/google-apps/calendar/v3/reference/acl/list The
tool takes the Resource Representation and transforms it in class
definitions and some other helper routines that can be cut and pasted in the
code. 

> Did you try other than calendar APIs with your tool to assist 
> in creation of class definitions ? I am particularly 
> interested in user provisioning.
> 
No. AFAIK user provisioning is still atom/rss based and not Oauth2.

Ludo


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


Re: [Lazarus] What is aarre?

2012-09-04 Thread Bernd
2012/9/4 Juha Manninen :
> On Tue, Sep 4, 2012 at 3:57 AM, Bernd  wrote:
>> CLAN
>> (Comprehensive Lazarus Archive Network)
>
> That already means "Community Local Area Network" and many other things.

How about

FPCCR: Free Pascal Code and Component Repository

making use of the already established and well known acronyms CCR and
FP and FPC and then somehow merging it all into one repository with
only one compatible set of tools to browse and install them?

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


Re: [Lazarus] What is aarre?

2012-09-04 Thread Howard Page-Clark

On 03/9/12 9:56, Mattias Gaertner wrote:

On Mon, 3 Sep 2012 16:03:26 +0200
Vincent Snijders  wrote:


Hi,

I looked at recent svn commits and wondered, what is aarre?


"Aarre" is finnish for "treasure". Maybe the name
will change.


Aarre has the benefit of being distinctive. If an English word is 
preferred it could be called "chest", which describes the container, 
rather than the contents.


Howard


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


Re: [Lazarus] lazarus archive

2012-09-04 Thread Graeme Geldenhuys

On 04/09/12 08:46, Reinier Olislagers wrote:



By the way, next time you want to open a new thread, don't reply to a
message in an existing thread... your message didn't appear as a new


Arg! That is no annoying!! Most people here have NO Netiquette! [1][2][3]


* Top posting
* Quoting whole message with a one line replies.
* Quoting 6+ levels deep.
* Replying to existing message to start a new topic
* Multi-part HTML messages (though I can live with this I guess)



[1]  http://en.wikipedia.org/wiki/Etiquette_(technology)
[2]  Why it is sensible to observe the Netiquette
 http://lipas.uwasa.fi/~ts/http/netiquet.html
[3]  Some Answers to FAQ's about Mailing Lists and List Netiquette
 http://dgmweb.net/MailingListFAQs.html




Graeme.



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


Re: [Lazarus] What is aarre?

2012-09-04 Thread Mark Morgan Lloyd

Juha Manninen wrote:


A unique name for such thing is difficult to find - using English
language - and Mattias suggested using another language like Finnish.
A word "aarrearkku" (treasure box) popped to mind and it was shortened
to "aarre".
This is the same tactics Ubuntu uses BTW, and I like it.
I only wonder how people will pronounce it. Here 'R' pronounces like
in Spanish (caRamba) and 'RR' is double as strong.
The name can be changed if people don't like it.


English has no problem with that, in fact it explains Long John Silver's 
"Aarre, Jim lad" :-)


--
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@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Writing application that sends things into facebook

2012-09-04 Thread michael . vancanneyt



On Tue, 4 Sep 2012, Ludo Brands wrote:


Ludo,

If you want to and your license allows it to, we can add your
OAuth2 code to my existing fpctwit repository (if possible
perhaps rename it to fpcoauth) with some big caveats in
the readme about oauth2 being not one standard but many etc...

Regards,
Reinier aka BigChimp



Thanks, I have already created a google code repo for it. I'm cleaning up
the demo app and adding some instructions to the code. Probably today I'll
upload the code and publish the link.
It really is Oauth2 according to Google and the re-usability for other
Oauth2 protocols is limited to picking up some ideas and very little code.
The bulk of the code is calendar api related and class hierarchy from/to
json streaming using rtti (which can be re-used in other apps). It also
includes a tool to assist in the creation of class definitions starting from
the Google specs (json resource representation). So very little in common
with fpctwit/plurk.


I have been looking for this for ages, this is almost a dream come true.
Now I can throw away my own code.  :-)

Where did you find the google specs in machine-usable form ?
Did you try other than calendar APIs with your tool to assist in creation of
class definitions ? I am particularly interested in user provisioning.

Michael.

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


Re: [Lazarus] What is aarre?

2012-09-04 Thread Reinier Olislagers
On 4-9-2012 11:11, Juha Manninen wrote:
> On Tue, Sep 4, 2012 at 10:35 AM, Reinier Olislagers
>  wrote:
>> include links to packages maintained elsewhere (e.g. the
>> synapse trunk svn) as there will be people/groups that want to maintain
>> their own product totally

> My idea also was to have links to packages maintained elsewhere.
> However the stability of the repository would suffer. The linked
> servers can have downtimes or can disappear. Copying a stable version
> of those packages to the Lazarus repository would solve some
> maintenance problems.
> Yet, the repository surely needs a maintainer and co-operation with
> the package authors.
> Does anyone know how Perl (CPAN) and other similar systems do it. I
> understand they have have copied the packages and mirror the server.
> Some other repositories use links, eg. many Linux distributions.
Sorry, no experience there.

> There are many things involved. Many versions of the same package must
> be supported etc.
> It can grow into a very complex system which is not the goal now.
:)
Starting simple, finding out what works, and only then increasing scope
is a concept that has worked well for me at least ;) Much better than
writing up all possible use cases and getting lost in functionality that
1% of the users will ever want.
If linked packages doesn't fit into the current ideas, no problem ;) If
it turns out to be something that is desired later on, perhaps it can be
added without too much trouble.

> The GUI in Lazarus could allow searching and installing, but also
> voting for the quality of the packages.
If you support voting as well as provide some indication of where the
package comes from (i.e. the main repo or a linked repo maintained by
somebody else), I think having links is very valuable.
Your idea of having a stable version of a package in the main Lazarus
repo would solve reliability/availability issues, while external devs
could ask their advanced users/people depending on newly released fixes
to use linked packages...

I think the big advantage of linked packages is that it much easier for
devs to provide support for this - they presumably have to fill out some
description file, zip/compress their package and provide a download link
with the result... Not much hassle and no need to contact those poor,
overworked, central repository guys ;)
While the stability etc of this link cannot be guaranteed, as you see,
it is still much better than the current situation: a user has to search
through the wiki, and perhaps forum, to find where to download a
package. At least a (central+linked) package system will be a very good
incentive to provide one big central list of available packages.


> There are many possibilities.
Yep.
I'd also prefer to have something small that just works and that we can
experiment with now, and improve as we go along (as long as we're not
afraid to reorganize things as long as it's in testing mode).

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


Re: [Lazarus] What is aarre?

2012-09-04 Thread Juha Manninen
On Tue, Sep 4, 2012 at 10:35 AM, Reinier Olislagers
 wrote:
> Concerning the idea: having a easily accessible package repository seems
> like a good idea indeed, especially if it  usual>can include links to packages maintained elsewhere (e.g. the
> synapse trunk svn) as there will be people/groups that want to maintain
> their own product totally
>
> Well, I'll shut up now, easy to spout feature requests/criticize before
> an alpha release...

The opinions and ideas are important.
My idea also was to have links to packages maintained elsewhere.
However the stability of the repository would suffer. The linked
servers can have downtimes or can disappear. Copying a stable version
of those packages to the Lazarus repository would solve some
maintenance problems.
Yet, the repository surely needs a maintainer and co-operation with
the package authors.
Does anyone know how Perl (CPAN) and other similar systems do it. I
understand they have have copied the packages and mirror the server.
Some other repositories use links, eg. many Linux distributions.

There are many things involved. Many versions of the same package must
be supported etc.
It can grow into a very complex system which is not the goal now.

The GUI in Lazarus could allow searching and installing, but also
voting for the quality of the packages.
There are many possibilities.

Juha

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


Re: [Lazarus] Writing application that sends things into facebook

2012-09-04 Thread Reinier Olislagers
On 4-9-2012 10:39, Ludo Brands wrote:
>> If you want to and your license allows it to, we can add your 
>> OAuth2 code to my existing fpctwit repository

> So very little in common with fpctwit/plurk.

I understand, but the average programmer may not know about the fact
that OAuth2 and 1 are so wildly different... and as you had commit
rights to fpctwit already...

No matter, I'll just add a reference to your page on mine... perhaps
with that new-fangled thing they call a hyperlink ;)


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


Re: [Lazarus] Lazarus 1.0 release notes

2012-09-04 Thread Mattias Gaertner
On Tue, 04 Sep 2012 09:34:24 +0100
Howard Page-Clark  wrote:

> I read through the release notes for Lazarus 1.0, which are 
> comprehensive and well laid out. However there are a number of spelling 
> and grammatical errors, and one or two inelegant English constructions.
> Since these release notes will be read and evaluated by many people who 
> might never have bothered with earlier release notes, I thought it worth 
> correcting the errors, although I realise it is now several days after 
> the actual release.
> In case it is thought useful, I attach a tidied-up version of the original.

Thanks. I'm not sure how to find the differences.
Do you have your original HTML page so a diff can be created?

Mattias

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


Re: [Lazarus] Writing application that sends things into facebook

2012-09-04 Thread Ludo Brands
> Ludo,
> 
> If you want to and your license allows it to, we can add your 
> OAuth2 code to my existing fpctwit repository (if possible 
> perhaps rename it to fpcoauth) with some big caveats in 
> the readme about oauth2 being not one standard but many etc...
> 
> Regards,
> Reinier aka BigChimp
> 

Thanks, I have already created a google code repo for it. I'm cleaning up
the demo app and adding some instructions to the code. Probably today I'll
upload the code and publish the link. 
It really is Oauth2 according to Google and the re-usability for other
Oauth2 protocols is limited to picking up some ideas and very little code.
The bulk of the code is calendar api related and class hierarchy from/to
json streaming using rtti (which can be re-used in other apps). It also
includes a tool to assist in the creation of class definitions starting from
the Google specs (json resource representation). So very little in common
with fpctwit/plurk.

Thanks, Ludo


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


Re: [Lazarus] What is aarre?

2012-09-04 Thread Lukasz Sokol
On 04/09/2012 08:39, Michael Fuchs wrote:
> Am 04.09.2012 02:57, schrieb Bernd:
>> CLAN
>> (Comprehensive Lazarus Archive Network)
> 
> Better a "Comprehensive Pascal Archive Network"
> 
> :D
> 
> SCNR
> Michael
> 

or PRANK = Pascal RAD Archive NetworK

:J
CHMBIDWT.

L.



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


Re: [Lazarus] lazarus archive

2012-09-04 Thread Sven Barth

Am 04.09.2012 09:46, schrieb Reinier Olislagers:

On 4-9-2012 9:27, ajv wrote:

If I want to check previous list items to not duplicate a question the
lazarus archives are available.
http://lists.lazarus.freepascal.org/pipermail/lazarus/
How can I search the archives?
thanks.



By the way, next time you want to open a new thread, don't reply to a
message in an existing thread... your message didn't appear as a new
thread but as a continuation of some completely differen thread.


To make things worse: the author even responded to a mail where I said 
exactly that...


Regards,
Sven


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


Re: [Lazarus] lazarus archive

2012-09-04 Thread Reinier Olislagers
On 4-9-2012 9:27, ajv wrote:
> If I want to check previous list items to not duplicate a question the
> lazarus archives are available.
> http://lists.lazarus.freepascal.org/pipermail/lazarus/
> How can I search the archives?
> thanks.
> 
> 
By the way, next time you want to open a new thread, don't reply to a
message in an existing thread... your message didn't appear as a new
thread but as a continuation of some completely differen thread.


Thanks,
Reinier


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


Re: [Lazarus] lazarus archive

2012-09-04 Thread Reinier Olislagers
On 4-9-2012 9:27, ajv wrote:
> If I want to check previous list items to not duplicate a question the
> lazarus archives are available.
> http://lists.lazarus.freepascal.org/pipermail/lazarus/
> How can I search the archives?
> thanks.
Try e.g. this alternative:
http://www.mail-archive.com/lazarus@lists.lazarus.freepascal.org/

(some more indicated on the page about Lazarus mailing lists)

Presumably using a search engine with something like the term
"lists.lazarus.freepascal.org" will also work well...

Groeten,
Reinier


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


Re: [Lazarus] TAChart tutorials not visible on Category:Tutorials page

2012-09-04 Thread Reinier Olislagers
On 4-9-2012 9:27, Vincent Snijders wrote:
> 2012/9/4 Vincent Snijders :
>> 2012/9/4 Alexander Klenin :
>>> As reported on forum:
>>> http://forum.lazarus.freepascal.org/index.php/topic,18068.0/topicseen.html
>>> tutorials do not appear on this page unless the user is logged in.
>>>
>>> Perhaps some caching issue?
>>
> 
> See also:
> http://www.mediawiki.org/wiki/Manual_talk:File_cache#category_pages_in_cache_do_not_get_updated

Argh. If I read that correctly, having the extension would be useless
because it would put the burden of clearing the cache on the user, who
may very well not even know he should
... so the shell script solution may well be the right one!??! I'd
assume most of our wiki readers are not logged in - only editors have a
reason to create an account - so this is a problem.


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


Re: [Lazarus] What is aarre?

2012-09-04 Thread Michael Fuchs

Am 04.09.2012 02:57, schrieb Bernd:

CLAN
(Comprehensive Lazarus Archive Network)


Better a "Comprehensive Pascal Archive Network"

:D

SCNR
Michael


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


Re: [Lazarus] What is aarre?

2012-09-04 Thread Reinier Olislagers
On 4-9-2012 0:55, Juha Manninen wrote:
> On Tue, Sep 4, 2012 at 1:46 AM, Martin  wrote:
>>> The name can be changed if people don't like it.
>>
>> Maybe an acronym?
>>
>> All Addons Rapid Repositry Environment, or short AARRE
> 
> :-)
> Hm
> 
Nothing wrong with a backronym for those of us who compulsively want
everything to make sense in English ;)

Though I'd prefer:
Advanced Addon Robust Repository Environment
... though I'm sure there are many words with A,R, and E that can be
substituted ;)


Concerning the idea: having a easily accessible package repository seems
like a good idea indeed, especially if it can include links to packages maintained elsewhere (e.g. the
synapse trunk svn) as there will be people/groups that want to maintain
their own product totally

Well, I'll shut up now, easy to spout feature requests/criticize before
an alpha release...

Thanks for starting this,
Reinier

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


Re: [Lazarus] Writing application that sends things into facebook

2012-09-04 Thread ik
On Tue, Sep 4, 2012 at 10:27 AM, Reinier Olislagers
 wrote:
> On 3-9-2012 16:53, Ludo Brands wrote:
>>> Start from here: http://developers.facebook.com/docs/reference/api/
>>> The authentication uses OAuth 2.0 which I'm not aware any
>>> implementation of. BigChimp and ludob created an OAuth 1.0a
>>> implementation in fpctwit, maybe you could take that as a
>>> base (though I'm not sure about the effort since I have no
>>> idea about the differences between 1.0a and 2.0).
>>>
>> I have also written an Oauth2 implementation for the Google API (implemented
>> most of the Google Calendar api). Oauth2 is designed to be easier than
>> Oauth1 and supported by many more companies that all wanted their own thing
>> in the standard. The result is a standard that is lacking portability and
>> every Oauth2 implementation is different and needs coding from almost
>> scratch. Very little in Oauth1 can be re-used in Oauth2. If interested I can
>> sent you the Oauth2 implementation for Google using Synapse for the HTTP
>> layer.
> Ludo,
>
> If you want to and your license allows it to, we can add your OAuth2
> code to my existing fpctwit repository (if possible perhaps rename it to
> fpcoauth) with some big caveats in the readme about oauth2 being not
> one standard but many etc...

At the moment my application is "public domain", I might change it to
MIT/BSD license

>
> Regards,
> Reinier aka BigChimp
>
>
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

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


[Lazarus] lazarus archive

2012-09-04 Thread ajv
If I want to check previous list items to not duplicate a question the 
lazarus archives are available.

http://lists.lazarus.freepascal.org/pipermail/lazarus/
How can I search the archives?
thanks.


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


Re: [Lazarus] Writing application that sends things into facebook

2012-09-04 Thread Reinier Olislagers
On 3-9-2012 16:53, Ludo Brands wrote:
>> Start from here: http://developers.facebook.com/docs/reference/api/
>> The authentication uses OAuth 2.0 which I'm not aware any 
>> implementation of. BigChimp and ludob created an OAuth 1.0a 
>> implementation in fpctwit, maybe you could take that as a 
>> base (though I'm not sure about the effort since I have no 
>> idea about the differences between 1.0a and 2.0).
>>
> I have also written an Oauth2 implementation for the Google API (implemented
> most of the Google Calendar api). Oauth2 is designed to be easier than
> Oauth1 and supported by many more companies that all wanted their own thing
> in the standard. The result is a standard that is lacking portability and
> every Oauth2 implementation is different and needs coding from almost
> scratch. Very little in Oauth1 can be re-used in Oauth2. If interested I can
> sent you the Oauth2 implementation for Google using Synapse for the HTTP
> layer. 
Ludo,

If you want to and your license allows it to, we can add your OAuth2
code to my existing fpctwit repository (if possible perhaps rename it to
fpcoauth) with some big caveats in the readme about oauth2 being not
one standard but many etc...

Regards,
Reinier aka BigChimp


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


Re: [Lazarus] TAChart tutorials not visible on Category:Tutorials page

2012-09-04 Thread Vincent Snijders
2012/9/4 Vincent Snijders :
> 2012/9/4 Alexander Klenin :
>> As reported on forum:
>> http://forum.lazarus.freepascal.org/index.php/topic,18068.0/topicseen.html
>> tutorials do not appear on this page unless the user is logged in.
>>
>> Perhaps some caching issue?
>

See also:
http://www.mediawiki.org/wiki/Manual_talk:File_cache#category_pages_in_cache_do_not_get_updated

Vincent

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


Re: [Lazarus] TAChart tutorials not visible on Category:Tutorials page

2012-09-04 Thread Vincent Snijders
2012/9/4 Alexander Klenin :
> As reported on forum:
> http://forum.lazarus.freepascal.org/index.php/topic,18068.0/topicseen.html
> tutorials do not appear on this page unless the user is logged in.
>
> Perhaps some caching issue?

Indeed, for users that are not logged in, a file cache is enabled as
described here:
http://www.mediawiki.org/wiki/Manual:File_cache

It seems it doesn't expire the category page.

You can that yourself by adding ?action=purge to the page url. I just
did that and now the page shows with the new tutorials.

Maybe I should install the purge plugin:
http://www.mediawiki.org/wiki/Extension:Purge

What do you think?

Vincent

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


Re: [Lazarus] Tabsheet font style

2012-09-04 Thread Sven Barth

Am 04.09.2012 05:49, schrieb kal...@ihug.co.nz:

How can I set the tabsheet caption font style to bold for a single tab only?


Please don't answer to an existing mail thread when you want to ask a 
new question. Your mail might not get any answers as the users which 
know an answer might ignore further messages in that specific thread, 
because they are no longer interest in the thread's topic.


Regards,
Sven


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