Re: [Lazarus] Cannot install FPC 3.0.2/3.0.3 from Lazarus

2017-05-18 Thread Mattias Gaertner via Lazarus
On Fri, 19 May 2017 00:21:37 +0300 Alexey via Lazarus wrote: > On Ubuntu 14.4 > I get this error, and after /ignore/ package cannot install fully: > IDE cannot rebuild then. Linker error with "missing section on dd.o file". > > Picture of DEB install error Please create a bug report. Matti

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-18 Thread Werner Pamler via Lazarus
Am 18.05.2017 um 00:41 schrieb Werner Pamler via Lazarus: Am 17.05.2017 um 23:08 schrieb Andreas Frieß via Lazarus: I see with the last patches something goes wrong after r54880 with frames and grid (specially TsWorkSheetGrid). Lazarus claims, the is no valid parent and didnot load and crash.

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-18 Thread Werner Pamler via Lazarus
An issue with the installer for 1.8RC1 32bit Windows (I hope it has not been discussed already...): the checkbox to create a desktop icob is disabled. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/laz

[Lazarus] Cannot install FPC 3.0.2/3.0.3 from Lazarus

2017-05-18 Thread Alexey via Lazarus
On Ubuntu 14.4 I get this error, and after /ignore/ package cannot install fully: IDE cannot rebuild then. Linker error with "missing section on dd.o file". Picture of DEB install error -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists

Re: [Lazarus] Cannot install FPC 3.0.2/3.0.3 from Lazarus

2017-05-18 Thread Alexey via Lazarus
After this not ok install (ignore error) I cannot build IDE: Clean Lazarus Source: Success .. main.pp(240,40) Parameter "Sender" not used main.pp(423,35) Parameter "Sender" not used Compiling resource /home/user/lazarus/units/x86_64-linux/gtk2/lazarus.or Linking ../lazarus /usr/bin/ld: warning: .

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-18 Thread Mattias Gaertner via Lazarus
On Thu, 18 May 2017 21:48:10 +0200 Ondrej Pokorny via Lazarus wrote: >[...] > Should I enable it by default? Yes. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-18 Thread Ondrej Pokorny via Lazarus
On 18.05.2017 21:48, Ondrej Pokorny via Lazarus wrote: On 18.05.2017 17:20, Mattias Gaertner via Lazarus wrote: True. Should I enable it by default? I implemented it in r54976 and made it default because all 8-bit string types are equivalent for the compiler, so it makes perfect sense not t

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-18 Thread Ondrej Pokorny via Lazarus
On 18.05.2017 17:20, Mattias Gaertner via Lazarus wrote: On Thu, 18 May 2017 17:14:03 +0200 Ondrej Pokorny via Lazarus wrote: [...] IMO, we should create a new option for CodeTools to override string result types for Ctrl+Shift+C. It could be both easy to implement and easy to understand: if

Re: [Lazarus] Patch for fixing the window resizes when switching components

2017-05-18 Thread zeljko via Lazarus
On 18.05.2017 20:24, Kostas Michalopoulos via Lazarus wrote: Yes the new code works perfectly fine here and is a better solution. My original thought was to use pure Gtk but i forgot about gdk_ and only looked for something like gtk_window_get_state - which i couldn't find :-). Thanks for feedb

Re: [Lazarus] Patch for fixing the window resizes when switching components

2017-05-18 Thread Kostas Michalopoulos via Lazarus
Yes the new code works perfectly fine here and is a better solution. My original thought was to use pure Gtk but i forgot about gdk_ and only looked for something like gtk_window_get_state - which i couldn't find :-). On Thu, May 18, 2017 at 8:37 PM, zeljko via Lazarus < lazarus@lists.lazarus-ide.

Re: [Lazarus] Patch for fixing the window resizes when switching components

2017-05-18 Thread zeljko via Lazarus
On 18.05.2017 13:38, Marc Weustink via Lazarus wrote: zeljko via Lazarus wrote: On 18.05.2017 01:43, Kostas Michalopoulos via Lazarus wrote: if GDK_IS_WINDOW(PGtkWindow(OurWidget)^.window) and (gdk_window_get_state(PGtkWindow(OurWidget)^.window) = GDK_WINDOW_STATE_MAXIMIZED) then gtk_window_u

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-18 Thread Ondrej Pokorny via Lazarus
On 18.05.2017 17:20, Mattias Gaertner via Lazarus wrote: True. I'll do that. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-18 Thread Mattias Gaertner via Lazarus
On Thu, 18 May 2017 17:14:03 +0200 Ondrej Pokorny via Lazarus wrote: >[...] > IMO, we should create a new option for CodeTools to override string > result types for Ctrl+Shift+C. It could be both easy to implement and > easy to understand: > > if the first argument is some kind of 8bit-string

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-18 Thread Ondrej Pokorny via Lazarus
On 18.05.2017 17:02, Mattias Gaertner via Lazarus wrote: On Thu, 18 May 2017 16:57:40 +0200 Luca Olivetti via Lazarus wrote: [...] Index: components/codetools/ide/codyidentifiersdlg.pas === --- components/codetools/ide/codyidentif

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-18 Thread Mattias Gaertner via Lazarus
On Thu, 18 May 2017 16:57:40 +0200 Luca Olivetti via Lazarus wrote: >[...] > Index: components/codetools/ide/codyidentifiersdlg.pas > === > --- components/codetools/ide/codyidentifiersdlg.pas (revision 54949) > +++ components/cod

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-18 Thread Luca Olivetti via Lazarus
El 17/05/17 a les 16:48, Mattias Gaertner via Lazarus ha escrit: On Wed, 17 May 2017 16:34:14 +0200 Luca Olivetti via Lazarus wrote: [...] Is this version still supposed to work with fpc 2.6.4? OK, I see now that it doesn't build with fpc 2.6.4 :-( Fixed. The Lazarus devels only support

Re: [Lazarus] Patch for fixing the window resizes when switching components

2017-05-18 Thread zeljko via Lazarus
On 18.05.2017 13:43, Mattias Gaertner via Lazarus wrote: On Thu, 18 May 2017 13:20:52 +0200 zeljko via Lazarus wrote: [...] if GDK_IS_WINDOW(PGtkWindow(OurWidget)^.window) and (gdk_window_get_state(PGtkWindow(OurWidget)^.window) = GDK_WINDOW_STATE_MAXIMIZED) then gtk_window_unmaximize() ...

Re: [Lazarus] Attn Michael, uses section

2017-05-18 Thread Michael Van Canneyt via Lazarus
On Thu, 18 May 2017, Mattias Gaertner via Lazarus wrote: On Thu, 18 May 2017 13:46:07 +0200 Joe via Lazarus wrote: [...] > Either move the Windows unit in front of the SysUtils unit, or use > SysUtils.GetEnvironmentVariable Yes, both solutions work; thank you, Martin and Mattias. Are they

Re: [Lazarus] Patch for fixing the window resizes when switching components

2017-05-18 Thread zeljko via Lazarus
On 18.05.2017 13:43, Mattias Gaertner via Lazarus wrote: On Thu, 18 May 2017 13:20:52 +0200 zeljko via Lazarus wrote: [...] if GDK_IS_WINDOW(PGtkWindow(OurWidget)^.window) and (gdk_window_get_state(PGtkWindow(OurWidget)^.window) = GDK_WINDOW_STATE_MAXIMIZED) then gtk_window_unmaximize() ...

[Lazarus] Attn Michael, uses section

2017-05-18 Thread Mattias Gaertner via Lazarus
On Thu, 18 May 2017 13:46:07 +0200 Joe via Lazarus wrote: >[...] > > Either move the Windows unit in front of the SysUtils unit, or use > > SysUtils.GetEnvironmentVariable > > Yes, both solutions work; thank you, Martin and Mattias. Are they > documented anywhere? The rule is simple: If an ide

Re: [Lazarus] Patch for fixing the window resizes when switching components

2017-05-18 Thread zeljko via Lazarus
On 18.05.2017 13:43, Mattias Gaertner via Lazarus wrote: On Thu, 18 May 2017 13:20:52 +0200 zeljko via Lazarus wrote: [...] if GDK_IS_WINDOW(PGtkWindow(OurWidget)^.window) and (gdk_window_get_state(PGtkWindow(OurWidget)^.window) = GDK_WINDOW_STATE_MAXIMIZED) then gtk_window_unmaximize() ...

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-18 Thread Joe via Lazarus
Am 18.05.2017 um 09:32 schrieb Mattias Gaertner via Lazarus: On Thu, 18 May 2017 01:24:39 +0100 Martin Frb via Lazarus wrote: On 18/05/2017 00:34, Joe via Lazarus wrote: But Code Completion offers three functions named GetEnvironmentVariable: The Ansistring function and the Unicode String fun

Re: [Lazarus] Patch for fixing the window resizes when switching components

2017-05-18 Thread zeljko via Lazarus
On 18.05.2017 13:38, Marc Weustink via Lazarus wrote: zeljko via Lazarus wrote: On 18.05.2017 01:43, Kostas Michalopoulos via Lazarus wrote: if GDK_IS_WINDOW(PGtkWindow(OurWidget)^.window) and (gdk_window_get_state(PGtkWindow(OurWidget)^.window) = GDK_WINDOW_STATE_MAXIMIZED) then gtk_window_u

Re: [Lazarus] Patch for fixing the window resizes when switching components

2017-05-18 Thread Mattias Gaertner via Lazarus
On Thu, 18 May 2017 13:20:52 +0200 zeljko via Lazarus wrote: >[...] > if GDK_IS_WINDOW(PGtkWindow(OurWidget)^.window) and > (gdk_window_get_state(PGtkWindow(OurWidget)^.window) = > GDK_WINDOW_STATE_MAXIMIZED) then >gtk_window_unmaximize() ... > Same for unfullscreen and other "un" routines

Re: [Lazarus] Patch for fixing the window resizes when switching components

2017-05-18 Thread Marc Weustink via Lazarus
zeljko via Lazarus wrote: On 18.05.2017 01:43, Kostas Michalopoulos via Lazarus wrote: if GDK_IS_WINDOW(PGtkWindow(OurWidget)^.window) and (gdk_window_get_state(PGtkWindow(OurWidget)^.window) = GDK_WINDOW_STATE_MAXIMIZED) then gtk_window_unmaximize() ... Same for unfullscreen and other "un" ro

Re: [Lazarus] Patch for fixing the window resizes when switching components

2017-05-18 Thread zeljko via Lazarus
On 18.05.2017 01:43, Kostas Michalopoulos via Lazarus wrote: I see the patch was added and Lazarus seems to work fine now, but the check was altered a little. The current check assumes that the Control will never be nil, but is this the case? I ask because i see in other places in the same source

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-18 Thread Luca Olivetti via Lazarus
El 18/05/17 a les 10:47, Ondrej Pokorny via Lazarus ha escrit: On 18.05.2017 9:38, Luca Olivetti via Lazarus wrote: This seems to fix it, maybe fpc 2.6.4 doesn't manage well a "in" with a range of integers? Thank you for the patch, applied! Does the bug have a report in mantis so that I can r

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-18 Thread Ondrej Pokorny via Lazarus
On 18.05.2017 9:38, Luca Olivetti via Lazarus wrote: This seems to fix it, maybe fpc 2.6.4 doesn't manage well a "in" with a range of integers? Thank you for the patch, applied! Does the bug have a report in mantis so that I can resolve it? Ondrej -- _

[Lazarus] Hi-dpi: skip logout on Win10

2017-05-18 Thread Alexey via Lazarus
In Win10 when you change scale, you must logout, but can skip logout. Interesting, how Laz apps behave if you skip logouts, and change scale 2-3 times: 100% to 150%, then to 200%, then to 150%. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@

Re: [Lazarus] Patch for fixing the window resizes when switching components

2017-05-18 Thread Kostas Michalopoulos via Lazarus
Oops, indeed, i was tripped up by the not in "(not (Control is TCustomForm)) or ..." part. On Thu, May 18, 2017 at 10:28 AM, Mattias Gaertner via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > On Thu, 18 May 2017 02:43:10 +0300 > Kostas Michalopoulos via Lazarus wrote: > > > I see the patch

Re: [Lazarus] Vulkan Library for FreePascal/Lazarus

2017-05-18 Thread Dejan Boras via Lazarus
Awesome :) On Thu, May 18, 2017 at 9:23 AM Benjamin Rosseaux via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > > http://www.phoronix.com/scan.php?page=news_item&px=PasVulkan-Vulkan--Pascal-Bind > :-) > > On Tue, May 9, 2017 at 4:38 AM, Benjamin Rosseaux > wrote: > >> PasVulkan seems to be ha

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-18 Thread Michael Van Canneyt via Lazarus
On Thu, 18 May 2017, Luca Olivetti via Lazarus wrote: El 18/05/17 a les 09:17, Luca Olivetti via Lazarus ha escrit: El 17/05/17 a les 20:22, Luca Olivetti via Lazarus ha escrit: El 17/05/17 a les 20:16, Luca Olivetti via Lazarus ha escrit: Excellent, this is OK, with my selected fonts and c

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-18 Thread Luca Olivetti via Lazarus
El 18/05/17 a les 09:17, Luca Olivetti via Lazarus ha escrit: El 17/05/17 a les 20:22, Luca Olivetti via Lazarus ha escrit: El 17/05/17 a les 20:16, Luca Olivetti via Lazarus ha escrit: Excellent, this is OK, with my selected fonts and correctly sized icons. It still has the problem with optima

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-18 Thread Mattias Gaertner via Lazarus
On Thu, 18 May 2017 01:24:39 +0100 Martin Frb via Lazarus wrote: > On 18/05/2017 00:34, Joe via Lazarus wrote: > > But Code Completion offers three functions named GetEnvironmentVariable: > > The Ansistring function and the Unicode String function above plus > > "GetEnvironmentVariable(lpName: LP

Re: [Lazarus] Patch for fixing the window resizes when switching components

2017-05-18 Thread Mattias Gaertner via Lazarus
On Thu, 18 May 2017 02:43:10 +0300 Kostas Michalopoulos via Lazarus wrote: > I see the patch was added and Lazarus seems to work fine now, but the check > was altered a little. The current check assumes that the Control will never > be nil, but is this the case? The "is" operator checks for nil.

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-18 Thread Luca Olivetti via Lazarus
El 17/05/17 a les 20:22, Luca Olivetti via Lazarus ha escrit: El 17/05/17 a les 20:16, Luca Olivetti via Lazarus ha escrit: Excellent, this is OK, with my selected fonts and correctly sized icons. It still has the problem with optimalfill, so it's definitely not platform specific. See https:

Re: [Lazarus] Vulkan Library for FreePascal/Lazarus

2017-05-18 Thread Benjamin Rosseaux via Lazarus
http://www.phoronix.com/scan.php?page=news_item&px=PasVulkan-Vulkan--Pascal-Bind :-) On Tue, May 9, 2017 at 4:38 AM, Benjamin Rosseaux wrote: > PasVulkan seems to be have better Platform Support (incl. Support for > Wayland, Mir, Android, MoltenVK, etc.) and more Vulkan Utils stuff, like > textu