Re: [Lazarus] Strange problem compiling IDE

2017-03-26 Thread Mattias Gaertner via Lazarus
On Sun, 26 Mar 2017 22:11:11 +0100 C Western via Lazarus wrote: >[...] > Warning: Recompiling Expr, checksum changed for spe {impl} > Expr.pas(78,12) Fatal: Can't find unit Expr used by FormGrid > > It was triggered by adding spe from numlib in the fpc rtl to one of the > units in a component t

Re: [Lazarus] Lazarus IDE uses old keyboard layout after OS changed it.

2017-03-29 Thread Mattias Gaertner via Lazarus
On Wed, 29 Mar 2017 11:34:44 +0100 Graeme Geldenhuys via Lazarus wrote: > Hi, > > Is this a known issues? If I run Lazarus IDE (LCL-GTK2) on either Linux > or FreeBSD, and say my keyboard layout is set to US. Now if I change the > keyboard layout to say Dvorak while Lazarus IDE is open, then Laz

Re: [Lazarus] Managing Packages with many versions

2017-03-31 Thread Mattias Gaertner via Lazarus
On Fri, 31 Mar 2017 11:42:20 -0300 "Marcos Douglas B. Santos via Lazarus" wrote: >[...] > Then, the author update this package to 2.0 version. > Imagine that you have many projects using version 1.0 but you would like to > update to 2.0 to work in just one project. A project can set a preferred

Re: [Lazarus] Managing Packages with many versions

2017-03-31 Thread Mattias Gaertner via Lazarus
On Fri, 31 Mar 2017 15:03:11 -0300 "Marcos Douglas B. Santos via Lazarus" wrote: >[...] > Yes, but as Michael said, I need to have many copies of the sources. > I thought that I could use just one source and many /libs directories with > the .ppu's > > What do you think? I guess different versi

Re: [Lazarus] Managing Packages with many versions

2017-04-01 Thread Mattias Gaertner via Lazarus
On Sun, 2 Apr 2017 00:17:28 -0300 "Marcos Douglas B. Santos via Lazarus" wrote: >[...] Mattias, > > On Fri, Mar 31, 2017 at 1:18 PM, Mattias Gaertner via Lazarus > wrote: > >> Then, the author update this package to 2.0 version. > >> Imagine that you

Re: [Lazarus] Modifying the "File -> New Unit" template

2017-04-11 Thread Mattias Gaertner via Lazarus
On Tue, 11 Apr 2017 11:22:01 +0100 Graeme Geldenhuys via Lazarus wrote: > Hi, > > Is there a way to modify the standard “file -> new unit” code template > that is used? Or is what we see hard-coded into the Lazarus IDE executable? Right click in the IDE coolbar on the "New unit" button to selec

Re: [Lazarus] Modifying the "File -> New Unit" template

2017-04-11 Thread Mattias Gaertner via Lazarus
On Tue, 11 Apr 2017 12:02:05 +0100 Graeme Geldenhuys via Lazarus wrote: >[...] > I want to change that so the default has difference uses clauses, > defines the text encoding of the source file etc. Where does the above > code come from? Hard-coded? Yes, components/ideintf/projectintf.pas TFileD

Re: [Lazarus] Opening file in editor window if it's loaded in another editor window

2017-04-11 Thread Mattias Gaertner via Lazarus
On Tue, 11 Apr 2017 17:39:13 +0200 Jürgen Hestermann via Lazarus wrote: > I have 2 editor windows ("Source Editor" and ""Source Editor (2)" > and have loaded "Unit1.pas" in both of these windows. > After I have now (inadvertently) closed "Unit1.pas" in "Source Editor" > I cannot load it again wit

Re: [Lazarus] Alpha blending in GTK2 under Linux

2017-04-17 Thread Mattias Gaertner via Lazarus
On Sun, 16 Apr 2017 02:53:00 +0300 Kostas Michalopoulos via Lazarus wrote: >[...] > A proper full fix would be to rewrite all GTK2 graphics code to use Cairo > instead of GDK, but that would take a lot of time, can break existing > applications You can do it with IFDEFs. > due to unforeseen bug

Re: [Lazarus] For issue #31638 (gtk2 function that require free mem)

2017-04-20 Thread Mattias Gaertner via Lazarus
On Thu, 20 Apr 2017 07:47:29 +0300 Alexey via Lazarus wrote: > + if Assigned(Path) then > + begin > +AStr := gtk_tree_path_to_string(path); > +AIsSet := (StrToInt(AStr) = AIndex); > +if AStr <> nil then > + g_free(AStr); > +if Path <> nil then >

Re: [Lazarus] What library to use for DOM/XML/HTML?

2017-04-22 Thread Mattias Gaertner via Lazarus
On Sat, 22 Apr 2017 19:29:56 +0200 Martok via Lazarus wrote: > Hi all, > > I'm currently looking for a library to read and write HTML DOM trees from/to > X(HT)ML and HTML files. Is there any native pascal library that you can > recommend? > > So far I have only found fcl-xml and its "fork" in

Re: [Lazarus] Configure IDE dlg tab-set

2017-04-23 Thread Mattias Gaertner via Lazarus
On Sun, 23 Apr 2017 10:49:02 +0200 (CEST) Michael Van Canneyt via Lazarus wrote: >[...] > *If* something needs to be removed, I would remove the listbox. > It only takes up a lot of space, and it's mostly empty. The idea was to add more checks/issues and some common choices, like language and d

Re: [Lazarus] Configure IDE dlg tab-set

2017-04-23 Thread Mattias Gaertner via Lazarus
On Sun, 23 Apr 2017 11:13:43 +0200 (CEST) Michael Van Canneyt via Lazarus wrote: >[...] > I like your use of "soon" :-) > > Given that the dialog has not changed substantially in many years, > I think we can safely remove the listbox, still assuming that > something must be removed :) It woul

Re: [Lazarus] Lazarus 1.9 ???

2017-04-27 Thread Mattias Gaertner via Lazarus
On Thu, 27 Apr 2017 15:38:46 -0400 Donald Ziesig via Lazarus wrote: > Hi All! > > I have been using Lazarus 1.7 with fpc 3.0.0 since February with > excellent results (until Tuesday). Somehow, I managed to corrupt that > installation (spent the last two days trying to isolate newly appearing

Re: [Lazarus] compiling svn Lazarus -> error

2017-04-28 Thread Mattias Gaertner via Lazarus
On Fri, 28 Apr 2017 11:05:23 +0200 John Landmesser via Lazarus wrote: > does anyone got the same error when compiling svn Lazarus? > > Revision 54762 > > Lazarus 1.9.0 r54742 FPC 3.0.0 x86_64-linux-gtk2 Revision 54762 > > message: > > (3104) Compiling directorycacher.pas > /home/john1/lazarus

Re: [Lazarus] Lazarus Bug: No exception raised when attempting to access an array outside of range.

2017-05-01 Thread Mattias Gaertner via Lazarus
On Mon, 1 May 2017 11:53:55 +1200 Graham Ward via Lazarus wrote: >[...] > I recently had a software/compilation bug whereby no exception was > raised when my code was accessing an array outside of its range. Enable runtime range checks: Project / Project Options / Compiler Option / Debugging /

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-01 Thread Mattias Gaertner via Lazarus
On Sun, 30 Apr 2017 13:37:17 -0300 "Marcos Douglas B. Santos via Lazarus" wrote: > It months ago I realized that Lazarus was saving the sources like that: > > 1- If there is only ANSI chars, save it as ANSI encode; > 2. If there is more than ANSI chars, save it as UTF8 encode; Lazarus saves sou

Re: [Lazarus] Gtk2 log "Refused invalidating during paint msg": how to check

2017-05-01 Thread Mattias Gaertner via Lazarus
On Sun, 30 Apr 2017 18:59:17 +0300 Alexey via Lazarus wrote: > How can I check that im inside Paint code? > > Maybe come control flag, or something, exists. if csCustomPaint in ControlState then Mattias -- ___ Lazarus mailing list Lazarus@lists.laza

Re: [Lazarus] WMPaint

2017-05-01 Thread Mattias Gaertner via Lazarus
On Sun, 30 Apr 2017 19:06:18 +0300 Alexey via Lazarus wrote: > procedure TCustomControl.WMPaint(var Message: TLMPaint); > begin >if (csDestroying in ComponentState) or (not HandleAllocated) then exit; >Include(FControlState, csCustomPaint); >inherited WMPaint(Message); >Exclude(FC

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-03 Thread Mattias Gaertner via Lazarus
On Wed, 3 May 2017 12:03:41 +0300 Juha Manninen via Lazarus wrote: >[...] > Mattias Gaertner wrote: > > Option a) You can use English in sources and load all non ASCII > > constants via resourcestrings or similar. Then the codepage is > > irrelevant. > > Option b) You can store all files as UTF-8

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-03 Thread Mattias Gaertner via Lazarus
On Wed, 3 May 2017 12:03:41 +0300 Juha Manninen via Lazarus wrote: >[...] > Please also look at program LazUnicodeTest in components/lazutils/test/. > It does advanced Unicode stuff and works in both Delphi and Lazarus. I tried it: First it did not compile in Delphi, because of an unsupported i

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-03 Thread Mattias Gaertner via Lazarus
On Wed, 3 May 2017 15:15:53 +0300 Juha Manninen via Lazarus wrote: >[...] > > Back in Lazarus compiling such a file gives the error: > > LazUnicodeTest.lpr(28,10) Error: UTF-8 code greater than 65535 found > > Äh, I did not test moving it back to Lazarus. Well, that's the point of sharing cod

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-03 Thread Mattias Gaertner via Lazarus
On Wed, 3 May 2017 13:37:24 +0100 Tony Whyman via Lazarus wrote: >[...] > On the other hand, AnsiString and UnicodeString are still separate > types. Why? Why should there not be a single unified string type with > (e.g.) ASCII, UTF8 and UTF-16 (or MS Unicode) being just another code page? Man

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-04 Thread Mattias Gaertner via Lazarus
On Thu, 4 May 2017 09:56:18 +0100 Tony Whyman via Lazarus wrote: >[...] > I don't believe that string indexing even works for UTF8 strings at > present - at least not in a simple s[i] way. It exists the same as for UTF-16 strings. > Is it really that much overhead to have a simple codepage c

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-04 Thread Mattias Gaertner via Lazarus
On Thu, 4 May 2017 23:20:33 +0100 Graeme Geldenhuys via Lazarus wrote: >[...] > Since FPC 3.0 you must add the flag -FcUTF8 or add {$codepage UTF8} at the > beginning of the unit. > > * Note: This changes all string literals to UTF-16, increasing the size of > the binary and slowing it down.

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Mattias Gaertner via Lazarus
On Fri, 5 May 2017 11:31:00 +0300 Kostas Michalopoulos via Lazarus wrote: >[...] > To play the devil's advocate, the fact that ALL reviews said that it has > excellent support for Unicode means that characters outside the BMP *are* > rare. After all, BMP does include practically all languages use

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Mattias Gaertner via Lazarus
On Fri, 5 May 2017 10:01:24 +0100 Graeme Geldenhuys via Lazarus wrote: >[...] > > AFAIK you are using UTF-8 in AnsiString in FPC 2.6.4. That works in > > many cases, because of double fooling the compiler. This trick does not > > work on Windows with RTL file functions though. > > Yes and true

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Mattias Gaertner via Lazarus
On Fri, 5 May 2017 10:56:41 +0100 Graeme Geldenhuys via Lazarus wrote: >[...] > > or work with large amount of 8-bit strings. > > Why would you want to? Unicode supports all languages, Maybe there is a misunderstanding. Let me rephrase my question: What string do you use in Linux Delphi when

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Mattias Gaertner via Lazarus
On Fri, 5 May 2017 12:01:47 +0200 (CEST) Michael Van Canneyt via Lazarus wrote: >[...] > > Believe me, I use it in production without any problems: I have > > unicode-aware TStrings, I can read files with unicode names, I can do > > everything with plain FPC trunk. > > I am aware of this, I

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Mattias Gaertner via Lazarus
On Fri, 5 May 2017 12:17:22 +0200 Ondrej Pokorny via Lazarus wrote: >[...] > Embarcadero realized they made a mistake when they disabled (yes, only > disabled not removed) 8-byte strings from NEXTGEN compilers. UTF8String > and RawByteString are back for all NEXTGEN compilers since 10.1. You ca

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Mattias Gaertner via Lazarus
On Fri, 5 May 2017 12:52:48 +0200 (CEST) Michael Van Canneyt via Lazarus wrote: >[...] > I propose to let the compiler observe the BOM. > But I don't think more is needed. FPC observes the BOM. Same as Delphi. I wonder if it would help if FPC would store UTF-8 string literals as UTF-8 and how

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Mattias Gaertner via Lazarus
On Fri, 5 May 2017 14:12:05 +0300 Juha Manninen via Lazarus wrote: >[...] > Then Mattias adds FAQs contradicting the earlier texts ... Oops. Which one? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/lis

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-05 Thread Mattias Gaertner via Lazarus
On Fri, 5 May 2017 16:36:51 +0300 Juha Manninen via Lazarus wrote: > On Fri, May 5, 2017 at 4:21 PM, Mattias Gaertner via Lazarus > wrote: > > Oops. Which one? > > The FAQ says: > "Since FPC 3.0 you must add the flag -FcUTF8 or add {$codepage UTF8} > at t

Re: [Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

2017-05-07 Thread Mattias Gaertner via Lazarus
On Sun, 7 May 2017 10:10:26 +0200 Florian Klaempfl via Lazarus wrote: > Am 05.05.2017 um 13:35 schrieb Graeme Geldenhuys via Lazarus: > > On 2017-05-05 12:17, Mattias Gaertner via Lazarus wrote: > >> I wonder if it would help if FPC would store UTF-8 string lite

Re: [Lazarus] Menu editor unstable?

2017-05-07 Thread Mattias Gaertner via Lazarus
On Sat, 6 May 2017 21:26:38 +0200 (CEST) Michael Van Canneyt via Lazarus wrote: >[...] > I have not exactly been able to reproduce reliably, but the following just > triggered > it: > - Start IDE > - Open project > - Select a popup menu (there are several) > - Double click to edit > - Select men

Re: [Lazarus] Annoying lazarus mailing list behaviour

2017-05-07 Thread Mattias Gaertner via Lazarus
On Sun, 7 May 2017 12:11:13 +0200 (CEST) Michael Van Canneyt via Lazarus wrote: >[...] > I suspect that Mattias still uses the 'old' list address in his mails when > posting, and that this is why I get 3 recipients. Sorry. I fixed my setting. Mattias --

Re: [Lazarus] RTTI grid with multiple objects ?

2017-05-07 Thread Mattias Gaertner via Lazarus
On Sun, 7 May 2017 15:15:29 +0200 (CEST) Michael Van Canneyt via Lazarus wrote: > Hello, > > How to make the RTTI property grid display the properties of a set of > TComponents ? > > Currently I have: (MyGrid is the property grid) > > Var >I : integer; >L : TPersistentSelectionList; >

Re: [Lazarus] Menu editor unstable? - stack trace

2017-05-09 Thread Mattias Gaertner via Lazarus
On Wed, 10 May 2017 00:06:35 +0200 (CEST) Michael Van Canneyt via Lazarus wrote: >[...] > > I have tested here: > > 64bit Linux Mint 18.1 Cinnamon, GTK2 version 2.24.30, Lazarus 1.9.0 > > r54844 FPC 3.0.2 x86_64-linux-gtk2 > > This is the exact version I am using. (lazarus SVN version may dif

Re: [Lazarus] what do i see left of the Scrollbar?

2017-05-11 Thread Mattias Gaertner via Lazarus
On Thu, 11 May 2017 12:12:09 +0100 Graeme Geldenhuys via Lazarus wrote: > On 2017-05-11 11:50, Ondrej Pokorny via Lazarus wrote: > > It is clickable :) > > Umm, it doesn't work here. Clicking via LClick or RClick doesn't have > any affect. I'm using Lazarus 1.7 r52715 FPC 2.6.4 x86_64-linux-g

[Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-17 Thread Mattias Gaertner via Lazarus
The Lazarus team is glad to announce the first release candidate of Lazarus 1.8. This release was built with FPC 3.0.2. The previous release Lazarus 1.6.4 was built with FPC 3.0.2 too. The Linux releases are built with FPC 3.0.3 r36152 due to bug https://bugs.freepascal.org/view.php?id=31629 He

[Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-17 Thread Mattias Gaertner via Lazarus
Here is the fixed version with qt5.6 and no dfmk.hu: The Lazarus team is glad to announce the first release candidate of Lazarus 1.8. This release was built with FPC 3.0.2. The previous release Lazarus 1.6.4 was built with FPC 3.0.2 too. The Linux releases are built with FPC 3.0.3 r36152 due to

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-17 Thread Mattias Gaertner via Lazarus
On Wed, 17 May 2017 16:31:33 +0200 Luca Olivetti via Lazarus wrote: > El 17/05/17 a les 14:39, Mattias Gaertner via Lazarus ha escrit: > > > == Why should everybody (including you) test the release candidate? == > > I didn't test it yet but I checked it out from

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-17 Thread Mattias Gaertner via Lazarus
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 the last two FPC releases, which means 3.0.0 and 3.0.2. But

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-17 Thread Mattias Gaertner via Lazarus
On Wed, 17 May 2017 22:27:20 +0200 Joe via Lazarus wrote: >[...] > Is this the correct way to report my finding? As a non professional I am > not sure. > > Lazarus 1.8 RC1 under Win 10 (64): Yes, although this is more exact: Help / About Lazarus / Right mouse click on logo / Copy version info

Re: [Lazarus] Lazarus Release Candidate 1 of 1.8.0

2017-05-17 Thread Mattias Gaertner via Lazarus
On Wed, 17 May 2017 23:08:34 +0200 Andreas Frieß via Lazarus wrote: > 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. It is > only happen if you use frames ?

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 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 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

[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] 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 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 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] 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] Error: Identifier not found "FileExistsUTF8"

2017-05-22 Thread Mattias Gaertner via Lazarus
On Mon, 22 May 2017 10:47:49 +0200 zeljko via Lazarus wrote: > On 05/22/2017 10:41 AM, Eric Kom via Lazarus wrote: > > Good day Folks, > > > > I got a program that was coded with lazarus 16.x using fpc 2.7. > > > > Now I have installed lazarus 1.9 with fpc 3.1.1 > > > > During compiled process, I

Re: [Lazarus] Codetools OnBeforeCompile/After events

2017-05-26 Thread Mattias Gaertner via Lazarus
On Fri, 26 May 2017 01:40:27 -0500 Lars via Lazarus wrote: > On 2017-05-26 01:24, Ondrej Pokorny via Lazarus wrote: > > On 26.05.2017 8:21, Lars via Lazarus wrote: > >> Does something like OnBeforeCompile/OnAfterCompile exist in codetools? > > > > Yes, they exists. "OnAfterCompile": > > > >

Re: [Lazarus] CodeTools On Event insert? detect

2017-05-26 Thread Mattias Gaertner via Lazarus
On Wed, 24 May 2017 13:43:10 -0500 Lars via Lazarus wrote: >[...] > I want to intercept/detect this, and add > >SomeCode(); > > between the begin/end of the event, i.e. on button 1 click. > > Does codetools provide some way to do it? Donald Ziesig added templates to alter the inserted cod

Re: [Lazarus] Show value hints while debugging fills screen - patch

2017-05-26 Thread Mattias Gaertner via Lazarus
On Tue, 23 May 2017 12:35:36 +0200 Russ via Lazarus wrote: > I find debugging value hints (TurboPowerIProDsgn installed, "Show value > hints while debugging") useful but annoying when the hint becomes so big > it covers the variable being checked or even fills the screen; on single > monitor s

Re: [Lazarus] CodeTools knowledge about a project - find a class

2017-05-26 Thread Mattias Gaertner via Lazarus
On Fri, 26 May 2017 11:47:35 +0100 Graeme Geldenhuys via Lazarus wrote: > Hi, > > Does CodeTools only know about the unit or units that are currently > open? Or does in know about all files in a project - and maybe even > associated packages? Codetools only knows about the defines for each di

Re: [Lazarus] The "Publish Package" functionality is horribly broken.

2017-05-26 Thread Mattias Gaertner via Lazarus
On Fri, 26 May 2017 09:21:32 +0100 Graeme Geldenhuys via Lazarus wrote: > Hi, > > I noticed this menu option in the fpgui_toolkit.lpk package. So I > selected it and made sure the “include” filter selects all files, and > nothing is “excluded”. This clicked okay. After that I had a look in the

Re: [Lazarus] The "Publish Package" functionality is horribly broken.

2017-05-26 Thread Mattias Gaertner via Lazarus
On Fri, 26 May 2017 13:09:34 +0100 Graeme Geldenhuys via Lazarus wrote: >[...] > On 2017-05-26 12:42, Mattias Gaertner via Lazarus wrote: > > It copies the package directory with some options. > > The fpgui_toolkit directory only contains the 9 files. The other files > >

Re: [Lazarus] CodeTools knowledge about a project - find a class

2017-05-26 Thread Mattias Gaertner via Lazarus
On Fri, 26 May 2017 17:49:35 +0300 Kostas Michalopoulos via Lazarus wrote: > This looks like a nice feature, but it only seems to know stuff you have > already open or opened in the current session. It doesn't know all > identifiers and whatever might be available from the currently loaded > proj

Re: [Lazarus] CodeTools knowledge about a project - find a class

2017-05-26 Thread Mattias Gaertner via Lazarus
On Fri, 26 May 2017 18:24:12 +0300 Kostas Michalopoulos via Lazarus wrote: > > No. It stores all learned identifiers in a file: > > > > But then why does it behave as i mentioned? When i restart Lazarus it has > forgotten everything. What platform? What happens when you click on Tools / Opti

Re: [Lazarus] CodeTools knowledge about a project - find a class

2017-05-26 Thread Mattias Gaertner via Lazarus
On Fri, 26 May 2017 19:29:00 +0300 Kostas Michalopoulos via Lazarus wrote: > Actually it works fine, after peppering the code with writelns to see the > flow, i figured out what was the issue: there is a 10 minute interval (by > default) between saves and the dictionary is only saved at the inter

Re: [Lazarus] CodeTools On Event insert? detect

2017-05-27 Thread Mattias Gaertner via Lazarus
On Fri, 26 May 2017 19:52:44 -0500 Lars via Lazarus wrote: >[...] > > Please update svn, compile the IDE with > > -dEnableCodeCompleteTemplates and restart it. >[...] > Thanks, I will try. Is it a special Define because it is a new untested > feature waiting for approval? Yes, and it is waiting

Re: [Lazarus] Lazarus 1.8 RC1 under Raspbian Jessie

2017-05-27 Thread Mattias Gaertner via Lazarus
On Sat, 27 May 2017 11:25:56 +0200 Joe via Lazarus wrote: > Am 26.05.2017 um 15:29 schrieb Mark Morgan Lloyd via Lazarus: > > Just to check the "standard way of doing it" in case there's any > > surprises, with FPC 3.0.2 installed: > > > > svn co http://svn.freepascal.org/svn/lazarus/tags/lazaru

Re: [Lazarus] linking error

2017-06-02 Thread Mattias Gaertner via Lazarus
On Fri, 2 Jun 2017 22:38:35 -0500 Larry Dalton via Lazarus wrote: > Thanks Paul. Installed the package but still got same error. Next step? What is your binutils version? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists

Re: [Lazarus] linking error

2017-06-03 Thread Mattias Gaertner via Lazarus
On Sat, 3 Jun 2017 07:05:03 -0500 Larry Dalton via Lazarus wrote: > I am not a Linux expert. I have run Sudo apt-get update, then downloaded > binutils 2.28. How do I replace the old version (2.24) with downloaded > version (2.28)? If you are not a Linux expert you should stay with the binutil

Re: [Lazarus] linking error

2017-06-04 Thread Mattias Gaertner via Lazarus
On Sun, 4 Jun 2017 11:22:06 +0200 Joe via Lazarus wrote: > Am 03.06.2017 um 14:24 schrieb Mattias Gaertner via Lazarus: > > I will try to build a more compatible fpc deb in a few days. > Could it be used on Pi Zero W (Raspian Jessie, ARMv6)? AFAIK ARMv6 and amd64 are not compatib

[Lazarus] Lazarus Release Candidate 2 of 1.8.0

2017-06-06 Thread Mattias Gaertner via Lazarus
The Lazarus team is glad to announce the second release candidate of Lazarus 1.8. This release was built with FPC 3.0.2. The previous release Lazarus 1.6.4 was built with FPC 3.0.2 too. The Linux releases are built with FPC 3.0.3 r36408 due to bug https://bugs.freepascal.org/view.php?id=31629 He

Re: [Lazarus] Horz scroll on Mac trackpad

2017-06-06 Thread Mattias Gaertner via Lazarus
On Wed, 7 Jun 2017 00:05:51 +0300 Alexey via Lazarus wrote: > Added 2 patches to use %subj for Treeview and Grid. Why not to use em in > Lazarus 1.8. They are tiny and ok. Where did you add the patches? Mattias -- ___ Lazarus mailing list Lazarus@li

Re: [Lazarus] bluetoothlaz package cannot detect Bluetooth LE (version > 4.0) devices on raspberry pi

2017-06-07 Thread Mattias Gaertner via Lazarus
On Tue, 6 Jun 2017 23:25:38 +0800 Dennis via Lazarus wrote: > I am using Raspberry Pi 3 (with wifi+bluetooth). > When using the command tool, bluetoothctl, it can detect old and new > bluetooth devices (version > 4.0). > > However, using the bluetoothlaz inside my lazarus app, it can only > de

Re: [Lazarus] AsyncProcess code problem

2017-06-09 Thread Mattias Gaertner via Lazarus
On Fri, 9 Jun 2017 17:08:25 +0930 Steve Gatenby via Lazarus wrote: > Having a problem with some code here :) > > Lazarus 1.9.0 r55266M FPC 3.1.1 x86_64-linux-gtk2 > > I create a thread every second to run a process (TAsyncprocess), then > FreeAndNil the process once done. If you are using thr

Re: [Lazarus] Codetools in distress

2017-06-14 Thread Mattias Gaertner via Lazarus
On Tue, 13 Jun 2017 23:05:03 +0200 Joost van der Sluis via Lazarus wrote: > Op 13-06-17 om 19:08 schreef Joost van der Sluis via Lazarus: > > On 06/13/2017 04:07 PM, Ondrej Pokorny via Lazarus wrote: > > > ### TCodeToolManager.HandleException: [20170421195425] "expected :, but > > AResult fou

Re: [Lazarus] Codetools in distress

2017-06-14 Thread Mattias Gaertner via Lazarus
On Wed, 14 Jun 2017 10:22:48 +0200 Joost van der Sluis via Lazarus wrote: >[...] > Fixed, not in Lazarus, but fpc. > > Why is it, that when I (working mostly on fpc) discover Lazarus-bugs, > they almost always appear to be fpc-issues? Lazarus is a good test suite for fpc. > One would thing

Re: [Lazarus] Res leaks on exiting gtk2 app

2017-06-14 Thread Mattias Gaertner via Lazarus
On Wed, 14 Jun 2017 12:02:34 +0300 Alexey via Lazarus wrote: > CudaText app, gtk2 WS. I run it from terminal, it loads dir to Treeview > [only top level of /usr], i exit. Why do you think this is a bug in the LCL, and not in cudatext? > user@user-Notebook:~$ cudatext /usr > CudaText: opening

Re: [Lazarus] Res leaks on exiting gtk2 app

2017-06-14 Thread Mattias Gaertner via Lazarus
On Wed, 14 Jun 2017 12:25:52 +0300 Alexey via Lazarus wrote: > On 14.06.2017 12:14, Mattias Gaertner via Lazarus wrote: > > Why do you think this is a bug in the LCL, and not in cudatext? > > I wrote that I have 4 imagelists with 19 icons [imagelists created in > design tim

Re: [Lazarus] Res leaks on exiting gtk2 app

2017-06-14 Thread Mattias Gaertner via Lazarus
On Wed, 14 Jun 2017 11:42:41 +0200 (CEST) Michael Van Canneyt via Lazarus wrote: > On Wed, 14 Jun 2017, Mattias Gaertner via Lazarus wrote: > > > On Wed, 14 Jun 2017 12:02:34 +0300 > > Alexey via Lazarus wrote: > > > >> CudaText app, gtk2 WS. I run it from t

Re: [Lazarus] Enqueuing a callback from a thread via other class - or am I overcomplicating this ?

2017-06-14 Thread Mattias Gaertner via Lazarus
On Wed, 14 Jun 2017 11:12:11 +0100 Lukasz Sokol via Lazarus wrote: >[...] > SomeClassLockedList := SomeClassList.LockedList; // there are > try/excepts around all here, but did not want to muddle the picture > Queue(TSomeClass(SomeClassLockedList.Items[i]).Processed); Queue(@TSomeC

Re: [Lazarus] LCL on Mac 64 bit

2017-06-15 Thread Mattias Gaertner via Lazarus
On Thu, 15 Jun 2017 14:19:50 +0200 Andrea Mauri via Lazarus wrote: > Dear all, > > I noticed that LCL applications can be built on Mac only for 32 and not > 64. Will be 64 and LCL available in the future? Any roadmap? The Mac native 64bit API is Cocoa and it exists for the LCL. It is missing s

Re: [Lazarus] Res leaks on exiting gtk2 app

2017-06-15 Thread Mattias Gaertner via Lazarus
On Wed, 14 Jun 2017 13:30:03 +0300 Alexey via Lazarus wrote: > On 14.06.2017 12:38, Mattias Gaertner via Lazarus wrote: > > reproduce this in a small project. > > Cannot repeat it : event with my custom controls and Python. Leak is > here only after i open folder in Cudatex

Re: [Lazarus] FPC deb

2017-06-15 Thread Mattias Gaertner via Lazarus
On Thu, 15 Jun 2017 16:27:36 +0200 coppolastudio via Lazarus wrote: > Hi, I want to try Lazarus RC and as  usually i was trying to install the > package FPC 3.0.2 deb but failed because offline an old FPC in the Mint lmde > repos, is there a way ti solve this? Do you have an error message? M

Re: [Lazarus] LCL on Mac 64 bit

2017-06-15 Thread Mattias Gaertner via Lazarus
On Thu, 15 Jun 2017 17:07:06 +0200 Andrea Mauri via Lazarus wrote: > > > > The Mac native 64bit API is Cocoa and it exists for the LCL. > > It is missing some feature though. Maybe Felipe can tell more details. > > > > Alternatively you can use qt, which is pretty complete, but requires > > to in

Re: [Lazarus] FPC deb

2017-06-15 Thread Mattias Gaertner via Lazarus
On Thu, 15 Jun 2017 16:27:36 +0200 coppolastudio via Lazarus wrote: > Hi, I want to try Lazarus RC and as  usually i was trying to install the > package FPC 3.0.2 deb but failed because offline an old FPC in the Mint lmde > repos, is there a way ti solve this? You might try fpc 3.0.3 from Laza

Re: [Lazarus] Is this a bug?

2017-06-16 Thread Mattias Gaertner via Lazarus
On Fri, 16 Jun 2017 19:12:31 +1200 Wolf via Lazarus wrote: > The following program produces these two memory leaks: > > Heap dump by heaptrc unit > 2 memory blocks allocated : 188/208 > 0 memory blocks freed : 134/144 > 2 unfreed memory blocks : 54 > True heap size : 32768 > True free heap :

Re: [Lazarus] Is this a bug?

2017-06-16 Thread Mattias Gaertner via Lazarus
On Fri, 16 Jun 2017 09:25:24 +0200 Ondrej Pokorny via Lazarus wrote: > On 16.06.2017 9:12, Wolf via Lazarus wrote: > > If the call to "halt;" is commented out, there is no memory leak > > reported. Is this intentional? > > Yes, halt kills the program without finalizing anything. No code is >

Re: [Lazarus] Is this a bug?

2017-06-16 Thread Mattias Gaertner via Lazarus
On Fri, 16 Jun 2017 20:36:54 +1200 Wolf via Lazarus wrote: > Now I am nicely confused: If halt does call finalization sections, isn't > then all heap space requested by the system unit supposed to be freed as > well? The system unit is special. It is loaded even before the heap manager is init

Re: [Lazarus] Is this a bug?

2017-06-16 Thread Mattias Gaertner via Lazarus
On Fri, 16 Jun 2017 21:43:38 +1200 Wolf via Lazarus wrote: > If I understand you correctly, because > 1. command line parameters are internally treated as a null-terminated > string (i.e. AnsiString), a call to ParamStr() implies a heap allocation > and thus, > 2. since ParamStr() is handled by

Re: [Lazarus] Res leaks on exiting gtk2 app

2017-06-26 Thread Mattias Gaertner via Lazarus
On Mon, 26 Jun 2017 21:50:57 +0300 Alexey via Lazarus wrote: > I think Imagelist is freed [it must be] but WS gtk2 don't free it's > handles or smth, can it be like it? > CudaText gives leak not always. Maybe some lock in gtk2. Since you are the only one with this problem, it must be somethin

Re: [Lazarus] Find/Replace inside IFDEF FPC else

2017-06-28 Thread Mattias Gaertner via Lazarus
On Tue, 27 Jun 2017 22:46:55 -0500 Lars via Lazarus wrote: > When I use the find/replace dialogs, and search for text, it does not > search inside the else section of {IFDEF FPC}. I assume this is a > feature. However some times I want to replace text inside delphi code > that is outside the I

Re: [Lazarus] TForm.OnChangeBounds - Windows vs Linux-Qt

2017-06-29 Thread Mattias Gaertner via Lazarus
On Thu, 29 Jun 2017 15:45:38 +0200 Gabor Boros via Lazarus wrote: > Hi All, > > Form's OnChangeBounds event fired in different time and number on these > platforms. Attached a simple example. On Windows the event firing > meanwhile form moving and with Linux-Qt just when the moving ended. At a

[Lazarus] Lazarus Release Candidate 3 of 1.8.0

2017-06-30 Thread Mattias Gaertner via Lazarus
The Lazarus team is glad to announce the third release candidate of Lazarus 1.8. This release was built with FPC 3.0.2. The previous release Lazarus 1.6.4 was built with FPC 3.0.2 too. The Linux releases are built with FPC 3.0.3 r36408 due to bug https://bugs.freepascal.org/view.php?id=31629 Her

Re: [Lazarus] Questionnaire GUI component

2017-06-30 Thread Mattias Gaertner via Lazarus
On Fri, 30 Jun 2017 22:46:17 +0200 Sandro Cumerlato via Lazarus wrote: > Thank you Adrian for your reply, > I can create a good layout with Frames, but it looks like I cannot create > multiple frames on the same form... Duplicate name: A component named > "Frame1" already exists. > > I tried to

Re: [Lazarus] TreeView.MouseLeave issue

2017-06-30 Thread Mattias Gaertner via Lazarus
On Fri, 30 Jun 2017 11:59:56 +0300 Alexey via Lazarus wrote: > procedure TCustomTreeView.MouseLeave; > begin >FStates:=FStates-[tvsDblClicked,tvsTripleClicked,tvsQuadClicked, > tvsEditOnMouseUp,tvsSingleSelectOnMouseUp]; >if Assigned(FHintWnd) and FHintWnd.Visible >

Re: [Lazarus] Questionnaire GUI component

2017-06-30 Thread Mattias Gaertner via Lazarus
On Fri, 30 Jun 2017 23:10:25 +0200 Sandro Cumerlato via Lazarus wrote: > Thank you Mattias, > unique names solved the issue, I was wrongly naming frames: > MyFrames[i].Name := Format('Frame%d', [i]); > > Last question: I am creating Frames within a ScrollBox, but it look like > there is a limit

Re: [Lazarus] Lazarus Release Candidate 3 of 1.8.0

2017-07-04 Thread Mattias Gaertner via Lazarus
On Tue, 4 Jul 2017 12:33:29 -0400 brian via Lazarus wrote: >[...] > Well, I'm certainly not using an Asian keyboard (not unless you mean > manufactured in Asia! :) ) and I don't understand, in that case, why > it's apparently ONLY the Lazarus 1.8 RC3 IDE that's affected. In case > you missed it i

Re: [Lazarus] Running Unit tests for all projects

2017-07-19 Thread Mattias Gaertner via Lazarus
On Wed, 19 Jul 2017 09:43:02 -0300 "Marcos Douglas B. Santos via Lazarus" wrote: >[...] > How do you get the compiler arguments for each project? Mabe using the > XML that Lazarus creates for each program? You can either compile each project using lazbuild, or you can fetch the options from the

Re: [Lazarus] Running Unit tests for all projects

2017-07-19 Thread Mattias Gaertner via Lazarus
On Wed, 19 Jul 2017 10:23:16 -0300 "Marcos Douglas B. Santos via Lazarus" wrote: >[...] > But I only use lazbuild to build the IDE. I've took a look in this > page http://wiki.lazarus.freepascal.org/lazbuild and I haven't found > an argument related to the project file (lpi or lpr). See Synopsis

Re: [Lazarus] Congrats to the FPC/Lazarus projects - job well done!

2017-07-20 Thread Mattias Gaertner via Lazarus
On Thu, 20 Jul 2017 15:31:34 +0100 Graeme Geldenhuys via Lazarus wrote: >[...] > I wonder if Lazarus IDE could use the Delphi dcc.exe command line > compiler? It can call it. For example as "execute before". When dcc uses the same format "filename(line,column) message" the IDE will jump to not

Re: [Lazarus] New tool sspell for pascal programmers

2017-07-24 Thread Mattias Gaertner via Lazarus
On Mon, 24 Jul 2017 12:34:46 +0300 Alexey via Lazarus wrote: > On 24.07.2017 04:07, Darius Blaszyk via Lazarus wrote: > > This tool extracts text from comments and string literals in source > > code files and checks them for spelling. Very useful > > It is already doable in CudaText editor: >

Re: [Lazarus] Please consider adding Application Explorer to lazarus components folder

2017-07-24 Thread Mattias Gaertner via Lazarus
On Mon, 24 Jul 2017 11:47:51 -0400 Anthony Walter via Lazarus wrote: > Ondrej, > > Okay will do. This tool actually helped me fix the sparta docked form > designer yesterday and I submitted a patch. > > Also, the online package manager ought to be integrated into lazarus, such > that you can br

  1   2   3   4   5   6   7   8   >