Re: [Lazarus] "Needs to be saved" state

2016-05-29 Thread Mattias Gaertner
> Mark Morgan Lloyd hat am 28. Mai 2016 um > 00:52 geschrieben: > > Please excuse me if I am overlooking something obvious, but when the IDE > shows the "Save all" toolbar icon in colour is there a quick way of > finding out what it thinks has been changed? View / IDE Internals / About IDE /

Re: [Lazarus] programming and testing ide design time package

2016-06-06 Thread Mattias Gaertner
On Mon, 06 Jun 2016 22:43:04 +0200 Marc Santhoff wrote: > On Mo, 2016-06-06 at 20:18 +0300, Juha Manninen wrote: > > On Monday, June 6, 2016, Marc Santhoff wrote: > > > > > > The code is written and compiled. Then it needs to be installed in the > > > IDE and tested. How can I do it in a handy w

Re: [Lazarus] Access violation at current svn

2016-06-15 Thread Mattias Gaertner
On Mon, 13 Jun 2016 21:13:13 +0200 Sven Barth wrote: >[...] > The fix done in r52482 is not correct however. ClassInfo will continue > to return a PTypeInfo for backwards compatibility, so you'll need to > dynamically allocate a pointer variable that gets that type info and > then gets stuffed in

Re: [Lazarus] Installing lazarus

2016-06-16 Thread Mattias Gaertner
On Wed, 15 Jun 2016 16:42:04 -0500 Larry Dalton wrote: > I am trying to install 1.60 > On Linux. I have download the fpr-src,fpc, and lazarus 1.60 debt packages, > and have installed them. Where do I find the executable ide? Which Linux distro/desktop? Mattias -- _

Re: [Lazarus] Zooming a form

2016-06-21 Thread Mattias Gaertner
On Tue, 21 Jun 2016 04:05:04 +0200 Martin Grajcar wrote: >[...]Despite that, it works fine for all controls with Anchors > = [akLeft, akTop]. For controls with other anchors, nothing works[...] > The problem seems to lie in TControl.UpdateBaseBounds when > the FBaseParentClientSize gets stored, w

Re: [Lazarus] Zooming a form

2016-06-23 Thread Mattias Gaertner
On Thu, 23 Jun 2016 09:35:15 +0200 Martin Grajcar wrote: >[...]also BaseParentClientSize, which gets taken from the actual parent, > which has zero size at the moment. ...which is a show stopper for right anchoring. >[...] > BaseBounds/BaseParentClientSize is set when you call SetBounds (e.g.

Re: [Lazarus] virtual keyboard problem

2016-06-29 Thread Mattias Gaertner
On Thu, 30 Jun 2016 09:08:32 +0900 __ wrote: > Hi, > > I want to make UTF-8 virtual keyboard, but I don't know how to use controls. > intfutf8keypress. The method intfutf8keypress is called by the LCL interface. Do you want to fix a bug in the LCL? > please know how to use controls.intf

Re: [Lazarus] Lazarus v1.7 - where has the -WG compiler parameter setting gone?

2016-06-30 Thread Mattias Gaertner
On Thu, 30 Jun 2016 10:54:17 +0100 Graeme Geldenhuys wrote: > > On 2016-06-30 10:24, Ondrej Pokorny wrote: > > Thanks for the screenshot, but that setting is not there in my Lazarus. > See attached screenshot. > > I'm using Lazarus 1.7 r52169 FPC 2.6.4 x86_64-freebsd-gtk 2. I'll get > another

Re: [Lazarus] Lazarus v1.7 - where has the -WG compiler parameter setting gone?

2016-06-30 Thread Mattias Gaertner
On Thu, 30 Jun 2016 12:02:56 +0200 Mattias Gaertner wrote: > On Thu, 30 Jun 2016 10:54:17 +0100 > Graeme Geldenhuys wrote: > > > > On 2016-06-30 10:24, Ondrej Pokorny wrote: > > > > Thanks for the screenshot, but that setting is not there in my Lazaru

Re: [Lazarus] Lazarus v1.7 - where has the -WG compiler parameter setting gone?

2016-06-30 Thread Mattias Gaertner
On Thu, 30 Jun 2016 11:13:59 +0100 Graeme Geldenhuys wrote: > On 2016-06-30 11:03, Mattias Gaertner wrote: >[...] > > ... which is stupid. It should be shown always. I changed it. > Was about to say the exact same thing. It is bad design to show/hide > components [ref:

Re: [Lazarus] Package issues

2016-07-01 Thread Mattias Gaertner
On Fri, 1 Jul 2016 19:31:42 +0200 Werner Pamler wrote: >[...] > They share the same source folder[...] In general this won't work, because you risk that the compiler may recompile a ppu, invalidating a dependent ppu. It works only in some special cases, for example - if they do not use the same

Re: [Lazarus] Package issues

2016-07-01 Thread Mattias Gaertner
On Fri, 1 Jul 2016 21:34:12 +0200 Werner Pamler wrote: >[...] > I still wonder why the IDE compiles correctly with TAChart - it > constists of the main package TAChartLazarusPkg and several dependent > packages such as TAChartWMF or TAChartFPVectorial. Because these packages are mutually exclu

Re: [Lazarus] Package issues

2016-07-01 Thread Mattias Gaertner
On Sat, 2 Jul 2016 00:11:06 +0200 Werner Pamler wrote: > > Does tvplanit contain interdependent units ? > > That could explain the problem. > > > > Michael. > > What do you mean by "interdependent"? Circular dependence? No. For example first package uses unit A, which uses unit B. So compile

Re: [Lazarus] Package issues

2016-07-02 Thread Mattias Gaertner
On Sat, 2 Jul 2016 10:32:59 +0200 Werner Pamler wrote: > Am 02.07.2016 um 02:22 schrieb Mattias Gaertner: > > On Fri, 1 Jul 2016 21:34:12 +0200 > > Werner Pamler wrote: > > > >> [...] > >> I still wonder why the IDE compiles correctly with TAChart

Re: [Lazarus] TStringList.LoadFromFile encoding parameter

2016-07-11 Thread Mattias Gaertner
On Mon, 11 Jul 2016 10:57:57 +0100 Graeme Geldenhuys wrote: > On 2016-07-10 06:20, Martin Schreiber wrote: > > We always can write that "UnicodeString" is the wrong name for a reference > > counted utf-16 string because UTF8String or AnsiString with default code > > page > > set to utf-8 also

Re: [Lazarus] Lazarus - fpc 3

2016-07-11 Thread Mattias Gaertner
On Mon, 11 Jul 2016 21:14:48 +0200 fred wrote: > hy, > > when y launch a program who compiled with lazarus > with a link on the desktop the program create a file named gnom.out > > What's this ? The gnu profiler log. It is created when the program is compiled with -pg. Mattias -- ___

Re: [Lazarus] Lazarus - fpc 3

2016-07-11 Thread Mattias Gaertner
On Mon, 11 Jul 2016 23:05:29 +0200 fred wrote: > where is this option on the lazarus ide ? > > They are a lot of components configure for lazarus > so i use lazarus version of codetyphon. The standard Lazarus project options has a search. Typing 'pg' shows Compiler Options / Debugging / genera

Re: [Lazarus] TStringList.LoadFromFile encoding parameter

2016-07-12 Thread Mattias Gaertner
On Tue, 12 Jul 2016 09:35:34 +0200 Michael Schnell wrote: > On 07/11/2016 06:37 PM, Bart wrote: > > Good luck trying to open a file with e.g chinese characters in the > > filename then on your German machine. > I don't see any use for something like this with any of my current and > planned

Re: [Lazarus] TStringList.LoadFromFile encoding parameter

2016-07-12 Thread Mattias Gaertner
On Tue, 12 Jul 2016 12:06:33 +0200 Michael Schnell wrote: > On 07/12/2016 10:09 AM, Mattias Gaertner wrote: > > supporting Unicode, which can be switched off. > > This is exactly what I asked but got no answer I could understand. I meant that Lazarus supports both. UTF-8 by

Re: [Lazarus] Converting console app to Lazarus on RPi - Indy10 not found

2016-07-13 Thread Mattias Gaertner
On Wed, 13 Jul 2016 08:25:37 +0200 Bo Berglund wrote: >[...] > It stops at a point where it cannot find 6 Indy10 units used by the > program. And the tool does not find them when searching either. > What should I do next? Add Indy10 as requirement in the Project / Project Inspector. > I do ha

Re: [Lazarus] Unable to cross-compile Lazarus applications in Linux from x86_64 to arm target (Raspberry pi 3)

2016-07-13 Thread Mattias Gaertner
On Tue, 12 Jul 2016 19:21:36 +0200 Giuliano Colla wrote: > Il 11/07/2016 20:01, leledumbo ha scritto: > > Check whether your compiler path calls fpc driver instead of ppcx64 or some > > other real ppcXXX compiler. Examine the messages window, compile with -va if > > required, then check the early

Re: [Lazarus] Unable to cross-compile Lazarus applications in Linux from x86_64 to arm target (Raspberry pi 3)

2016-07-13 Thread Mattias Gaertner
On Wed, 13 Jul 2016 19:36:23 +0200 Giuliano Colla wrote: > Il 13/07/2016 14:06, Mattias Gaertner ha scritto: >[...] > fpc->ppcarm 2.6.4 >[...] > Assembler /home/colla/Applicazioni/lazarus/fpc/binutils/as not found? >[...] > Copying and pasting all the compiler options fr

Re: [Lazarus] Converting console app to Lazarus on RPi - Indy10 not found

2016-07-13 Thread Mattias Gaertner
On Thu, 14 Jul 2016 00:07:45 +0200 Bo Berglund wrote: > On Wed, 13 Jul 2016 11:18:17 +0200, Mattias Gaertner > wrote: >[...] > I am using the Synopse PasZip unit to add zipping functionality to my > program. When I moved it into Lazarus on an RPi3 I get the following

Re: [Lazarus] Procedure List + CodeTools not showing nested procedures

2016-07-14 Thread Mattias Gaertner
On Wed, 13 Jul 2016 16:53:58 +0100 Graeme Geldenhuys wrote: > Hi, > > See the attached screenshots showing a comparative Procedure List result > for the same unit with the same search term. The one screenshot is of > Maximus IDE, and the other is from Lazarus IDE. > > Lazarus IDE’s Procedure Li

Re: [Lazarus] Lazarus tool tips/code completion do not work, why?

2016-07-16 Thread Mattias Gaertner
On Sat, 16 Jul 2016 09:31:47 +0200 Bo Berglund wrote: > When I write for example > FSSComm. > I expect the tooltips to appear Note: This is the "completion box", in this case the "identifier completion". "Tooltips" is the hint window which appears when you move a mouse over an identifier. >[.

Re: [Lazarus] Ability to load and save IDE configuration

2016-07-18 Thread Mattias Gaertner
On Sun, 17 Jul 2016 23:03:49 -0300 Luiz Americo Pereira Camara wrote: >[...] > If there are none, and time allows, i will create one Feel free ti create one. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.o

Re: [Lazarus] I need TTimer (or equivalent) in a CLI program.

2016-07-20 Thread Mattias Gaertner
On Wed, 20 Jul 2016 17:12:54 -0400 Donald Ziesig wrote: >[...] > > Is there any timer-like component available without bringing in LCL? Yes, TFPTimer. You found it. > OOPS, I forgot to mention, I found TFPTimer, but it does not implement > the OnTimerStart and OnTimerStop events which I need

Re: [Lazarus] TThread in console mode program.

2016-07-21 Thread Mattias Gaertner
On Thu, 21 Jul 2016 15:05:17 -0400 Donald Ziesig wrote: >[...] > Question: Do console mode programs have a "run loop"?. Synchronize requires that your main thread calls CheckSynchronize from time to time. The LCL does that in its loop. >[...] Mattias --

Re: [Lazarus] Lazarus svn 52737 broken: can't open Ctrl + Spacebar in editor!

2016-07-21 Thread Mattias Gaertner
On Thu, 21 Jul 2016 21:14:46 +0200 John Landmesser wrote: > lclintf.pas(65,5) Error: Include-Datei nicht gefunden "lclintfh.inc" > > Lazarus 1.7 r52737 FPC 3.0.0 x86_64-linux-gtk 2 Sorry, my fault. Fixed. Mattias -- ___ Lazarus mailing list Lazarus@

Re: [Lazarus] TThread in console mode program.

2016-07-21 Thread Mattias Gaertner
On Thu, 21 Jul 2016 15:35:51 -0400 Donald Ziesig wrote: > On 07/21/2016 03:21 PM, Mattias Gaertner wrote: > > On Thu, 21 Jul 2016 15:05:17 -0400 > > Donald Ziesig wrote: > > > >> [...] > >> Question: Do console mode programs have a "run loop&

Re: [Lazarus] Compile conditionals from Delphi do not work in Laz 1.6...

2016-07-21 Thread Mattias Gaertner
On Fri, 22 Jul 2016 00:05:27 +0200 Bo Berglund wrote: >[...] > But it seems like it does not have a property for the directory name, > maybe I can use the FileName property instead? Yes. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.o

Re: [Lazarus] Compile conditionals from Delphi do not work in Laz 1.6...

2016-07-21 Thread Mattias Gaertner
On Thu, 21 Jul 2016 23:14:23 +0200 Bo Berglund wrote: > I have some shared code which has conditionals built in to check the > Delphi version. When I use these functions in Lazarus 1.6/Fpc 3.0 on > Windows7 I get a compile error as follows: > > FormClient.pas(152,7) Error: Incompatible types: go

Re: [Lazarus] Compile conditionals from Delphi do not work in Laz 1.6...

2016-07-22 Thread Mattias Gaertner
On Fri, 22 Jul 2016 11:11:42 +0100 Graeme Geldenhuys wrote: > On 2016-07-21 23:13, Mattias Gaertner wrote: > >> > But it seems like it does not have a property for the directory name, > >> > maybe I can use the FileName property instead? > > Yes. > >

Re: [Lazarus] Compile conditionals from Delphi do not work in Laz 1.6...

2016-07-22 Thread Mattias Gaertner
On Fri, 22 Jul 2016 12:20:50 +0100 Graeme Geldenhuys wrote: > On 2016-07-22 12:00, Bart wrote: > > It will break every existing program that uses this dialog (including > > the IDE). > > > The logic is broken already. So at least fix it for future releases. Not > improving the LCL or fixing b

Re: [Lazarus] Conditional dependencies on packages ?

2016-07-28 Thread Mattias Gaertner
On Wed, 27 Jul 2016 22:16:23 +0200 (CEST) Michael Van Canneyt wrote: > Hi, > > How can I make (if at all possible) package dependencies conditional ? > > Specifically: > Depending on a compiler define, a program will depend on the LCL or not. Not yet implemented. Only units can be loaded con

Re: [Lazarus] Package physical location (directory)

2016-07-28 Thread Mattias Gaertner
On Wed, 27 Jul 2016 16:43:33 -0400 Dmitry Boyarintsev wrote: > Hi, > > How a package (first-time installed) could know its physical location? > Specifically the physical location of .lpk file. > > The path is needed for a package that depends on external > configuration/template files. > It wou

Re: [Lazarus] TSynPythonSyn.GetKeywordIdentifiers public

2016-07-28 Thread Mattias Gaertner
On Wed, 27 Jul 2016 22:44:58 +0300 Zaher Dirkey wrote: > Would you please make > SynHighlighterPython\TSynPythonSyn.GetKeywordIdentifiers into public, so i > can add it to my AutoComplete Done. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazaru

Re: [Lazarus] Conditional dependencies on packages ?

2016-07-28 Thread Mattias Gaertner
On Thu, 28 Jul 2016 10:02:45 +0200 (CEST) Michael Van Canneyt wrote: >[...] > > Not yet implemented. > > I notice the 'yet', may I assume this can/is/will be planned ? Yes. Planned since a long time, so don't expect anything soon. Not sure about the details, because it can easily create hen-e

Re: [Lazarus] Package physical location (directory)

2016-07-28 Thread Mattias Gaertner
On Thu, 28 Jul 2016 08:16:03 -0400 Dmitry Boyarintsev wrote: >[...] > pth := GetPackageDir('package'); // do the search by package name See here: http://wiki.lazarus.freepascal.org/Extending_the_IDE#Get_lpk_filename_of_an_installed_package Mattias -- _

Re: [Lazarus] Cannot save file to NFS mounted path

2016-08-04 Thread Mattias Gaertner
On Thu, 04 Aug 2016 14:22:33 +0300 Alex wrote: > Hi > This is almost issue of mine: http://mantis.freepascal.org/view.php?id=30135 > Closed as wont fix. No, NFS returns normal file size information. I work with Lazarus on NFS without problem. Mattias --

Re: [Lazarus] Cannot save file to NFS mounted path

2016-08-04 Thread Mattias Gaertner
On Thu, 4 Aug 2016 07:59:14 -0300 Leonardo M. Ramé wrote: >[...] > mounted NFS one. > > I must add the user has write permissions on the mounted path, in fact > before posting this I've tried creating a text file without using > TFileStream and it worked without an issue, so I assume the probl

Re: [Lazarus] Can .compiled files be safely removed?

2016-08-08 Thread Mattias Gaertner
>[...] > > then are they needed in any other way than for the system to create > > and use during builds? The IDE uses them to determine if a rebuild (all) is needed. If it is missing on next compile, the IDE assumes a rebuild is needed. This means you don't need to store them in a source only re

Re: [Lazarus] Can .compiled files be safely removed?

2016-08-08 Thread Mattias Gaertner
>[...] > I don't know of such a setting. I normally define a Unit Output path and > a separate Target Path (where executable ends up), so the *.compiled > file ends up with the *.ppu and *.o files in a separate directory to the > generated executable. That way it doesn't bother me too much. That

Re: [Lazarus] Cannot open Windows Form on Linux

2016-08-10 Thread Mattias Gaertner
On Tue, 9 Aug 2016 15:15:49 +0200 John Landmesser wrote: >[...] > These messages appear: > > executed: > john1@siductionbox:~/lazarus$ ./lazarus >[...] > > *(lazarus:11615): Pango-CRITICAL **: > > pango_layout_get_font_description: assertion 'PANGO_IS_LAYOUT > > (layout)' failed* > > > >

Re: [Lazarus] controling a loop

2016-08-11 Thread Mattias Gaertner
On Thu, 11 Aug 2016 14:58:31 +0200 JuuS wrote: > Hi, > > > > > Besides the typo ;-) Application.ProcessMessages did the trick. Thanks. > > > > Don't know if this is an issue anymore, it was in Delphi some time ago > so you may want to check: > > It used to be Application.processmessages pe

Re: [Lazarus] Cut, Copy, Paste shortcuts don't work in SynEdit

2016-08-12 Thread Mattias Gaertner
On Fri, 12 Aug 2016 11:23:45 +0100 Graeme Geldenhuys wrote: > On 2016-08-12 10:56, Martin Frb wrote: > > The issue is that the "time" in the events for different keys is the > > same. Apparently that means it is one event only (again Ive been told, I > > never looked at the gtk spec) > > > > T

Re: [Lazarus] HiRes for IDC icons

2016-08-23 Thread Mattias Gaertner
On Tue, 23 Aug 2016 12:39:38 +0200 Sandro Cumerlato wrote: > Hello Don, > this is a "known" issue of the Lazarus IDE. > > Is it already listed on the Lazarus Bugtracker? > > If the problem is related to the size of the component palette > buttons, I have a partial patch for it to work on... >

Re: [Lazarus] HiRes for IDC icons

2016-08-23 Thread Mattias Gaertner
On Tue, 23 Aug 2016 13:53:24 +0200 Vojtěch Čihák wrote: > Will this need to draw again all the hundreds icons of Lazarus components in > higher resolution? > Proper solution would be to distribute *.svg icons packed in *.lrs or *.res > resource files of packages and Lazarus will contain somethi

Re: [Lazarus] how to delete codetools source cache?

2016-08-31 Thread Mattias Gaertner
On Wed, 31 Aug 2016 17:12:32 -0700 David Emerson wrote: >[...] > Recently while debugging, codetools somehow got the wrong unit, > /usr/share/fpcsrc/3.0.0/tests/bench/shootout/obsolete/matrix.pp >[...] > So original question - how do I delete the codetools source cache... or > whatever it's call

Re: [Lazarus] Failure to recompile with a different define

2016-09-01 Thread Mattias Gaertner
On Thu, 1 Sep 2016 12:53:57 +0200 Giuliano Colla wrote: > I have two Lazarus projects, let's call them project A and project B, > which share the same sources, only with a different define: let's say > -dProjA and -dProjB. > > If, starting from a clean situation, I compile first project A, and

Re: [Lazarus] Failure to recompile with a different define

2016-09-01 Thread Mattias Gaertner
On Thu, 1 Sep 2016 13:58:10 +0200 Giuliano Colla wrote: >[...] > Using a package isn't a very intuitive solution, when *all* the units > belong to the project. Because of circular dependencies or because of company rules? > this could make it much easier to have more than one project in the

Re: [Lazarus] fpdebug: "List index out of bounds" errors

2016-09-01 Thread Mattias Gaertner
On Thu, 1 Sep 2016 14:39:10 +0100 Graeme Geldenhuys wrote: > On 2016-08-26 13:55, Graeme Geldenhuys wrote: > > I am on the latest Lazarus Trunk revision. Does anybody else see loads > > of "Index out of bounds" errors when using the native Free Pascal > > debugger, fpdebug? > > Is nobody using

Re: [Lazarus] Where does Lazarus save path to installed Packages?

2016-09-02 Thread Mattias Gaertner
On Fri, 2 Sep 2016 17:46:29 +0200 John Landmesser wrote: > i adjust path in packagefiles.xml, but that seems to be not enough. It is enough. The same is done, by calling lazbuild --add-package-link=/new/path/of/package.lpk Mattias -- ___ Lazarus mai

Re: [Lazarus] API-Import of "PUTF8Char"

2016-09-04 Thread Mattias Gaertner
On Sat, 3 Sep 2016 23:55:44 +0200 Martok wrote: > Hi List, > > I'm writing an API interface that passes #0-terminated cstrings with encoding > UTF8. What data type should be used to declare these parameters so that I may > be > able to use as much of 3.0+'s automatic encoding conversion as poss

Re: [Lazarus] Feature request: Project Groups

2016-09-04 Thread Mattias Gaertner
On Sat, 3 Sep 2016 22:02:37 -0300 Marcos Douglas wrote: >[...] > Continuing this thread, I would like to know how can I see the Project > Group window on IDE if I close? > Is there a shortcut? I didn't find. Not yet. There should be a menu item View -> Project Groups and a short cut. Mattias --

Re: [Lazarus] Feature request: Project Groups

2016-09-05 Thread Mattias Gaertner
On Sun, 4 Sep 2016 10:49:06 +0200 (CEST) Michael Van Canneyt wrote: > On Sun, 4 Sep 2016, Mattias Gaertner wrote: > > > On Sat, 3 Sep 2016 22:02:37 -0300 > > Marcos Douglas wrote: > > > >> [...] > >> Continuing this thread, I would like to know how

Re: [Lazarus] UTF8 issue

2016-09-07 Thread Mattias Gaertner
On Wed, 7 Sep 2016 13:09:07 +0200 Giuliano Colla wrote: >[...] >CamelStrings: array [0..5] of UTF8String =( > >'Entry éèàù'); > > then the ComboBox displays > >Entry éèà ù FPC does not use your LANG variable. Instead it always assumes ISO-8859-1. See here: http://wiki.la

Re: [Lazarus] Feature request: Project Groups

2016-09-07 Thread Mattias Gaertner
On Wed, 07 Sep 2016 18:14:22 +0300 Thierry Andriamirado wrote: >[...] > Is it possible to patch the 1.6 official release, or do I have to use the SVN > one? I merged the changes to fixes_1_6. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus

Re: [Lazarus] UTF8 issue

2016-09-07 Thread Mattias Gaertner
On Wed, 7 Sep 2016 18:31:59 +0200 Giuliano Colla wrote: > Il 07/09/2016 15:08, Mattias Gaertner ha scritto: > > FPC does not use your LANG variable. Instead it always assumes > > ISO-8859-1. See here: > > I could swallow it more easily if it were the opposite, i.e.

Re: [Lazarus] Suppress compiler switches?

2016-09-07 Thread Mattias Gaertner
On Wed, 7 Sep 2016 18:11:12 -0500 Zoë Peterson wrote: > As part of our automated build process, we have a .cfg file that we pass > to fpc with all of the command line arguments necessary. Currently, all > of those settings are duplicated in the associated Lazarus .lpi file and > I'd like to f

Re: [Lazarus] Object Inspector reuse ?

2016-09-07 Thread Mattias Gaertner
On Wed, 7 Sep 2016 22:23:04 +0200 (CEST) Michael Van Canneyt wrote: > Hi, > > Can the IDE's object inspector be used independent of the IDE ? Yes. See examples/objectinspector/ Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http:/

Re: [Lazarus] Object Inspector reuse ?

2016-09-07 Thread Mattias Gaertner
On Thu, 8 Sep 2016 08:04:18 +0200 (CEST) Michael Van Canneyt wrote: >[...] > // IMPORTANT: the object inspector is a tool and can be used in other > programs > //too. Don't put Lazarus IDE specific things here. > > If you look at the above 'Important' warning and then look below

Re: [Lazarus] Object Inspector reuse ?

2016-09-08 Thread Mattias Gaertner
On Thu, 8 Sep 2016 09:13:49 +0200 (CEST) Michael Van Canneyt wrote: >[...] > > These are property editors for the FCL/LCL types and the component tree > > view. They are LCL specific, not IDE specific. > > I beg to differ somwhat > A quick glance reveals that they reference for example t

Re: [Lazarus] Object Inspector reuse ?

2016-09-08 Thread Mattias Gaertner
On Wed, 7 Sep 2016 22:23:04 +0200 (CEST) Michael Van Canneyt wrote: >[...] > As an alternative: can the RTTI property grid be used on a list of objects ? > Last time I worked with it, it could only handle 1 object at a time. It should be able to handle lists of persistents, because it is the ful

Re: [Lazarus] Object Inspector reuse ?

2016-09-08 Thread Mattias Gaertner
On Thu, 8 Sep 2016 09:52:46 +0200 (CEST) Michael Van Canneyt wrote: > On Thu, 8 Sep 2016, Mattias Gaertner wrote: > > > On Thu, 8 Sep 2016 09:13:49 +0200 (CEST) > > Michael Van Canneyt wrote: > > > >> [...] > >> > These are property editors

Re: [Lazarus] Tabbed view of IDE debug windows

2016-09-09 Thread Mattias Gaertner
On Fri, 9 Sep 2016 15:04:41 +0100 Graeme Geldenhuys wrote: > Hi, > > Is it possible to have a single window with a Tabbed interface of your > selection (or all) IDE debug windows? Something like the attached > screenshot. > > Or has anybody created a IDE add-on that allows this? Yes, anchordoc

Re: [Lazarus] Tabbed view of IDE debug windows

2016-09-09 Thread Mattias Gaertner
On Fri, 9 Sep 2016 15:59:55 +0100 Graeme Geldenhuys wrote: > On 2016-09-09 15:48, Michael Van Canneyt wrote: > > He got the package to install, but got so many errors trying to work > > (even simple tasks such as dropping a button and setting some properties) > > that he simply gave up on Lazarus

Re: [Lazarus] LCL and fpc 3.0.0 Code Pages

2016-09-19 Thread Mattias Gaertner
On Sat, 17 Sep 2016 11:34:51 +0100 Tony Whyman wrote: > Am I right in saying that the only AnsiString type that it is safe to > use with the LCL is UTF8 (even under Windows)? UTF-8 is an encoding, not an AnsiString type. And yes, the LCL expects UTF-8. Mattias -- _

[Lazarus] Test

2016-09-19 Thread Mattias Gaertner
It seems some users can't write the list anymore. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] IDE Docking windows and Editor Toolbar

2016-09-21 Thread Mattias Gaertner
On Tue, 20 Sep 2016 17:43:44 +0100 Graeme Geldenhuys wrote: > On 2016-09-20 17:38, leledumbo wrote: > > Not an issue for me: > > Is your Lazarus IDE also compiled against LCL-GTK2? Also I have my > Editor Tabs set to display on the right, not the top. I don't know if > any of these might inter

Re: [Lazarus] IDE Docking windows and Editor Toolbar

2016-09-21 Thread Mattias Gaertner
On Wed, 21 Sep 2016 12:21:12 +0100 Graeme Geldenhuys wrote: >[...] > Manually copying my Editor Toolbar configuration from desktop1 to > desktop2 - now my IDE has docked windows and the editor toolbar I so > like. :) > > I presume this is a bug with Anchor Docking - not copying over certain > se

Re: [Lazarus] Accesing components in FormCreate event

2016-09-21 Thread Mattias Gaertner
On Thu, 22 Sep 2016 07:36:45 +0200 (CEST) Michael Van Canneyt wrote: > On Wed, 21 Sep 2016, Lars wrote: > > > I'm trying to remember if setting up some values of components is okay to > > do in the form create event. From what I remember in Delphi days of > > programming years ago, I think I fou

Re: [Lazarus] Accesing components in FormCreate event

2016-09-22 Thread Mattias Gaertner
On Thu, 22 Sep 2016 00:54:35 -0600 "Lars" wrote: >[...] > Prefer positive attitude of Yes, vs No. Inbetween Qbit state: maybe. I meant 'True'. > > Keep in mind that the LCL tries to create the Handle and layout after > > calling FormCreate. So changing properties do not have immediate effects

Re: [Lazarus] Accessing components in FormCreate event

2016-09-22 Thread Mattias Gaertner
On Thu, 22 Sep 2016 09:50:06 +0100 Lukasz Sokol wrote: >[...] > From what I remember (on Turbo Delphi, but this is generally true I think) > anything that causes the form to redraw, > (as it's been indicated in responses here too - resizing, aligning, changing > colours etc) > is a really bad id

Re: [Lazarus] Launching External Tool Cmd.exe in Windows

2016-09-22 Thread Mattias Gaertner
On Thu, 22 Sep 2016 00:14:17 -0600 "Lars" wrote: > Hi, Lazarus has the nice feature of being able to launch an external tool. > > I'm trying to launch a console app... > > So I put C:\Windows\System32\cmd.exe in the program file name for the > external tool. This does nothing and gives no error

Re: [Lazarus] Conditional code based on Lazarus/LCL version

2016-09-22 Thread Mattias Gaertner
On Thu, 22 Sep 2016 21:30:51 +0100 Denis Kozlov wrote: > Hi, > > Is there something like FPC_VERSION define but for Lazarus or LCL, e.g. > LAZARUS_VERSION? See unit lclversion. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http:

Re: [Lazarus] Launching External Tool Cmd.exe in Windows

2016-09-22 Thread Mattias Gaertner
On Thu, 22 Sep 2016 15:14:21 -0600 "Lars" wrote: > On Thu, September 22, 2016 3:08 am, Mattias Gaertner wrote: > > > > I added two options "Show console" and "Hide window". Enable Show > > console and disable Hide window and cmd.exe wil

Re: [Lazarus] Conditional code based on Lazarus/LCL version

2016-09-22 Thread Mattias Gaertner
On Thu, 22 Sep 2016 22:25:23 +0100 Denis Kozlov wrote: > On 22/09/2016 22:02, Mattias Gaertner wrote: > > See unit lclversion. > > Thanks! Somehow I just couldn't find it. > > Is it theoretically possible to implement a compile time define for > Lazarus versio

Re: [Lazarus] Run Parameters Dialog

2016-09-22 Thread Mattias Gaertner
On Thu, 22 Sep 2016 18:46:49 -0600 "Lars" wrote: > Hi in the Run Parameters dialog, it appears as though $macros such as > $TargetFile() or the current project directory, etc., don't get > expanded Please create a bug report. Mattias -- ___ Laza

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)

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

  1   2   3   4   5   6   7   8   9   >