Re: [Lazarus] Canvas.Rectangle question

2019-08-16 Thread Graeme Geldenhuys via lazarus
On 16/08/2019 8:01 pm, Bo Berglund via lazarus wrote: > Seems like if one does not draw the border at all (pen.width = 0) the > resulting rectangle will be painted within a pixel correctly placed > and sized. If I recall correctly, both Win32 and XLib will render a line with the thinnest possible

Re: [Lazarus] Automatic identifier completion

2019-08-16 Thread Darius Blaszyk via lazarus
This patch seems to realize exactly the behavior I described. However, I tried applying it and about one third to half of it failed as it is fairly old. There are really not many visual leads for me in the current code to position the changes, so I guess that I won't be able to create a new updated

Re: [Lazarus] Lazarus 2.0.2 EditorMacroScript error on first startup RPi4B

2019-08-16 Thread Martin Frb via lazarus
On 16/08/2019 23:34, Bo Berglund via lazarus wrote: On Fri, 16 Aug 2019 23:02:57 +0200, Martin Frb via lazarus wrote: That is on a new install. Not on an update, correct? It is a new x64 install on Windows 7-x64 using the official installer downloaded via the link in the release message. I in

Re: [Lazarus] Lazarus 2.0.2 EditorMacroScript error on first startup RPi4B

2019-08-16 Thread Bo Berglund via lazarus
On Fri, 16 Aug 2019 23:02:57 +0200, Martin Frb via lazarus wrote: > >That is on a new install. Not on an update, correct? It is a new x64 install on Windows 7-x64 using the official installer downloaded via the link in the release message. I installed a secondary installation so I can keep the o

Re: [Lazarus] Lazarus 2.0.2 EditorMacroScript error on first startup RPi4B

2019-08-16 Thread Martin Frb via lazarus
On 16/08/2019 21:07, Bo Berglund via lazarus wrote: Back to this issue again after installing the latest Lazarus 2.0.4 just released. It does the same thing... Is there really nothing one can do to stop it from happening? Yes, I know it just happend once on a new install, but still... That

Re: [Lazarus] Automatic identifier completion

2019-08-16 Thread Martin Frb via lazarus
On 16/08/2019 19:07, Darius Blaszyk via lazarus wrote: Hi, I know about code completion in the IDE and it works perfectly! However, to invoke it I need to press CRTL-space every time which is somewhat cumbersome. Is there a setting in the IDE that would invoke completion automatically on keyp

Re: [Lazarus] Lazarus 2.0.2 EditorMacroScript error on first startup RPi4B

2019-08-16 Thread Bo Berglund via lazarus
On Tue, 9 Jul 2019 19:39:23 +0200, Martin Frb via lazarus wrote: >On 09/07/2019 19:03, Bo Berglund via lazarus wrote: >> I have just installed fpc 3.0.4 + Lazarus 2.0.2 from svn sources on a >> pristine Raspberry Pi4B with 4GB RAM. >> >> But now (again) on a first ever start of the newly installe

Re: [Lazarus] Canvas.Rectangle question

2019-08-16 Thread Bo Berglund via lazarus
On Fri, 16 Aug 2019 18:27:02 +0100, Graeme Geldenhuys via lazarus wrote: >On 16/08/2019 4:20 pm, Bo Berglund via lazarus wrote: >> Say the rectangle is (10,4, 30,14) and the Pen.Wdth is set to 2, is >> the resulting shape 20 x 10 or 24 x 14 in size? > >This is why fpGUI uses (x, y, width, height)

Re: [Lazarus] Canvas.Rectangle question

2019-08-16 Thread Graeme Geldenhuys via lazarus
On 16/08/2019 4:20 pm, Bo Berglund via lazarus wrote: > Say the rectangle is (10,4, 30,14) and the Pen.Wdth is set to 2, is > the resulting shape 20 x 10 or 24 x 14 in size? This is why fpGUI uses (x, y, width, height) instead of (x1, y1, x2, y2), because the latter is just too confusing. Anyway,

[Lazarus] Automatic identifier completion

2019-08-16 Thread Darius Blaszyk via lazarus
Hi, I know about code completion in the IDE and it works perfectly! However, to invoke it I need to press CRTL-space every time which is somewhat cumbersome. Is there a setting in the IDE that would invoke completion automatically on keypress? An example in sublime: https://packagecontrol.io/read

[Lazarus] Canvas.Rectangle question

2019-08-16 Thread Bo Berglund via lazarus
I would like to know if the rectangle drawn by a Canvas.Rectangle(Rect) call will be sized according to Rect inside of the bounding line or the outside of line? Say the rectangle is (10,4, 30,14) and the Pen.Wdth is set to 2, is the resulting shape 20 x 10 or 24 x 14 in size? -- Bo Berglund Dev

Re: [Lazarus] How to get space before auto-inserted assignment?

2019-08-16 Thread Bo Berglund via lazarus
On Fri, 16 Aug 2019 10:22:40 +0100, Howard Page-Clark via lazarus wrote: >> Presumably this is an IDE setting, but which? >> >> I am using Lazarus 2.0.4 on Windows 7. > >Tools->Options dialog > >In the treeview select the Codetools node, and Space page > >"Insert space in front of" the Symbol che

Re: [Lazarus] How to get space before auto-inserted assignment?

2019-08-16 Thread Howard Page-Clark via lazarus
On 16/08/2019 09:57, Bo Berglund via lazarus wrote: I am used to having whitespace between names and operators, but Lazarus insists on putting := directly after a property when it autocompletes. So I get Canvas.Brush:= instead of Canvas.Brush := Which is what I want. It is annoying to get unwante

[Lazarus] How to get space before auto-inserted assignment?

2019-08-16 Thread Bo Berglund via lazarus
I am used to having whitespace between names and operators, but Lazarus insists on putting := directly after a property when it autocompletes. So I get Canvas.Brush:= instead of Canvas.Brush := Which is what I want. It is annoying to get unwanted help which every time has to be corrected Presu