Re: [Lazarus] components\aggpas\gpc - non-commercial use only

2016-05-17 Thread Mattias Gaertner
On Tue, 17 May 2016 23:07:38 +0300 Denis Kozlov wrote: > On 17 May 2016 at 16:34, Mattias Gaertner wrote: > > > > > For Debian maintainers and other third party bundles we should gather > > the abbreviated license information in the components/readme.txt, so >

Re: [Lazarus] components\aggpas\gpc - non-commercial use only

2016-05-17 Thread Mattias Gaertner
On Tue, 17 May 2016 16:14:01 +0300 Denis Kozlov wrote: >[...]it is not natural to require developer to check *every > component or part* for licensing terms, which can be hundreds or even > thousands of individual parts. Hundreds? You only need to check one per package. > That is why I though

Re: [Lazarus] components\aggpas\gpc - non-commercial use only

2016-05-17 Thread Mattias Gaertner
On Tue, 17 May 2016 11:01:35 +0300 Denis Kozlov wrote: >[...] > Does it make sense to include NON-free components in Lazarus distribution? It depends on how you define "NON-free". The gpc.pas may be freely copied, modified, and redistributed provided that the copyright notice is preserved on al

Re: [Lazarus] How to play audio from memory.

2016-05-17 Thread Mattias Gaertner
On Tue, 17 May 2016 08:13:11 +0100 Graeme Geldenhuys wrote: >[...] > > the code tree that references those units. Do you know if Lazarus has a > > way to show the units used when a compilation fails? You might want to increase the compiler verbosity. Project / Project Options / Compiler Option

Re: [Lazarus] HEAPTRACE IFDEF

2016-05-03 Thread Mattias Gaertner
On Tue, 03 May 2016 06:49:42 -0700 Aradeonas wrote: > > AFAIK, it's because it's not technically possible. > As an amateur can I ask why? > > Use {$IF DECLARED(useheaptrace)} in your main project file (just like > > lazarus.pp uses it). > Very interesting! I didnt know this ability,Thanks. How it

Re: [Lazarus] Missing components in Lazarus 1.6 DEB

2016-04-29 Thread Mattias Gaertner
On Fri, 29 Apr 2016 17:20:54 +0100 Denis Kozlov wrote: > Nobody else noticed randomly missing files from Lazarus 1.6 distribution > for Linux? Debian ships its own version of Lazarus .deb packages. They are split into many small packages. We need to create a debian bug report for the missing .lp

Re: [Lazarus] Problem with non-ascii chars fpc-3.0.0 vs fpc-3.1.1 under Windows

2016-04-27 Thread Mattias Gaertner
On Wed, 27 Apr 2016 20:30:43 +0200 zeljko wrote: > Hi, > Just run into problem with fpc-3.0.0, OS Windows-10 64bit, 32bit > application, lazarus trunk qtlcl and win32 ws both have same problem. > > fpc-3.1.1 (18.01.2016) is correct - both running from lazarus or as > standalone. > > fpc-3.0.0

Re: [Lazarus] Fatal: Cannot find IdMappedPortTCP used by xxxx

2016-04-23 Thread Mattias Gaertner
On Sat, 23 Apr 2016 11:38:28 +0200 Bo Berglund wrote: >[...] > >> I have googled and looked at old list messages but to no avail. The > >> closest I got was someone telling me that Lazarus will handle this > >> fine if only the lpk file is opened once. So I selected File/Open and > >> navigated t

Re: [Lazarus] Fatal: Cannot find IdMappedPortTCP used by xxxx

2016-04-23 Thread Mattias Gaertner
On Sat, 23 Apr 2016 10:12:33 +0200 Bo Berglund wrote: >[...] > I have googled and looked at old list messages but to no avail. The > closest I got was someone telling me that Lazarus will handle this > fine if only the lpk file is opened once. So I selected File/Open and > navigated to the Indy10

Re: [Lazarus] where do I put project wide conditional define?

2016-04-19 Thread Mattias Gaertner
On Tue, 19 Apr 2016 04:30:02 -0700 Aradeonas wrote: > > Add -dUse_XYZ to Project / Project Options / Compiler Options / > > Custom Options > > Curiosity : Why a "d" in the beginning? "-d" is the fpc flag for a define. See "fpc -h". Mattias -- ___ L

Re: [Lazarus] where do I put project wide conditional define?

2016-04-19 Thread Mattias Gaertner
On Tue, 19 Apr 2016 19:17:05 +0800 Dennis wrote: > I some of my units, I have : > > uses classes, > {$IFDEF USE_XYZ} > certain_unitXYZ > {$ENDIF}; > > > Where do I put > {$DEFINE USE_XYZ} > > so that when I rebuild the project, fpc will see USE_XYZ is defined. > > Putting in in the proj

Re: [Lazarus] cannot show Code Explorer in new Lazarus 1.7

2016-04-14 Thread Mattias Gaertner
On Thu, 14 Apr 2016 18:21:54 +0800 Dennis wrote: > I have some silly questions. > I recently upgraded to FPC 3 + Lazarus 1.7 but the interface is > different from Lazarus 1.4. > 1) now, there is only 1 window instead of separate window for Editor, > inspector , Code Explorer, etc. Can I change

Re: [Lazarus] wiki page "Better_Unicode_Support_in_Lazarus"

2016-04-13 Thread Mattias Gaertner
On Wed, 13 Apr 2016 12:53:49 +0200 Michael Schnell wrote: > On 04/13/2016 11:08 AM, Sven Barth wrote: > > > > The code pages that are relevant here are only single byte code pages > > (e.g. CP1252) or UTF-8, *never* UTF-16 as a AnsiString can not store > > UTF-16 data. > > > > StringCodePage(s

Re: [Lazarus] wiki page "Better_Unicode_Support_in_Lazarus"

2016-04-13 Thread Mattias Gaertner
On Wed, 13 Apr 2016 09:59:33 +0200 Michael Schnell wrote: >[...] > http://wiki.freepascal.org/Better_Unicode_Support_in_Lazarus Good page. > Now I did some test and asked ob that list and found that the default > code page for the type "String" and with that the definition of of > TStrings

Re: [Lazarus] Lazarus Digest, Vol 99, Issue 32

2016-04-11 Thread Mattias Gaertner
On Mon, 11 Apr 2016 11:56:38 +0100 Graeme Geldenhuys wrote: > On 2016-04-11 11:50, Mattias Gaertner wrote: > >> > Currently with the wiki, rubbish can be added and no review is done! > > You could say the same for the fpdoc files. > > Uh? I don't believe that a

Re: [Lazarus] Lazarus Digest, Vol 99, Issue 32

2016-04-11 Thread Mattias Gaertner
On Mon, 11 Apr 2016 11:18:25 +0100 Graeme Geldenhuys wrote: >[...] > Currently with the wiki, rubbish can be added and no review is done! You could say the same for the fpdoc files. IMO review means someone else reads it and reports/fixes errors. This is done for both though in different form.

Re: [Lazarus] Lazarus Digest, Vol 99, Issue 32

2016-04-11 Thread Mattias Gaertner
On Mon, 11 Apr 2016 10:26:40 +0100 Graeme Geldenhuys wrote: >[...] > Yes, it's called "fpdoc" and have been around for years! It takes a > minute or two to generate your own help in whatever format you prefer - > HTML, CHM, INF, TXT etc. Users can contribute by supplying documentation > patches.

Re: [Lazarus] TScrollbar users

2016-04-10 Thread Mattias Gaertner
On Sun, 10 Apr 2016 19:24:31 +0200 Zeljko wrote: > Hi all, > Today I've fixed longstanding bug with TScrollbar and max allowed > position of thumb. http://bugs.freepascal.org/view.php?id=20127 > Now , gtk2 (gtk lib >= 2.14), qt and win32 have unified behaviour. > Pls. test against lazarus trunk

Re: [Lazarus] Cant compile the IDE with the most recent fpc (3.1.1)

2016-04-07 Thread Mattias Gaertner
On Thu, 07 Apr 2016 16:25:26 +0200 Michael Schnell wrote: > On 04/07/2016 04:19 PM, Mattias Gaertner wrote: > > What -Fu paths do you have in your fpc.cfg? > I did suppose something like this. > > Am I supposed to manually edit this file even for the unmodified svn d/l ?

Re: [Lazarus] Cant compile the IDE with the most recent fpc (3.1.1)

2016-04-07 Thread Mattias Gaertner
On Wed, 06 Apr 2016 09:47:34 +0200 Michael Schnell wrote: > It happened to me (again) :(. > > After upgrading fpc to the latest svn version, I can't compile the > latest svn version of Lazarus. > > The problem (first) occurs with RegisterFCL. > > (Currently the error is "Can't find unit db us

Re: [Lazarus] {$warn 5023 off: No warning about unused units}

2016-04-07 Thread Mattias Gaertner
On Wed, 6 Apr 2016 22:53:43 +0100 Graeme Geldenhuys wrote: >[...] > I see the same thing here with Lazarus v1.7. It is annoying for the SCM, > but I think I figured out the reasoning for that line. Lazarus packages > have somewhere a setting that says the unit managing the package must > (or must

Re: [Lazarus] {$warn 5023 off: No warning about unused units}

2016-04-07 Thread Mattias Gaertner
On Wed, 6 Apr 2016 23:31:32 +0200 Werner Pamler wrote: > Since some time, the TurtoiseSVN overlay icons of some of the packages > which I loaded from svn have become practically useless. It is always > the autogenerated package unit which is marked by a red overlay icon as > being out of date.

Re: [Lazarus] German umlauts in component names

2016-04-05 Thread Mattias Gaertner
On Tue, 5 Apr 2016 11:22:21 +0200 JuuS wrote: >[...] > Use a label with custom draw/paint and make your own "buttons" using > whatever characters you like and use the label's onclick to get where > you need to go. No need to. TButton.Caption supports Unicode. Mattias -- ___

Re: [Lazarus] Makedeb - how to lower the dependencies

2016-04-04 Thread Mattias Gaertner
On Mon, 4 Apr 2016 15:03:02 -0300 Alexsander Rosa wrote: > I would like to allow the resulting .deb to be installed on older Linux > distros. > > Example on Ubuntu 12.04: > > # dpkg -i rnge3_16.03-i386.deb > (...) > dpkg: problemas de dependência impedem a configuração de rnge3: > rnge3 depend

Re: [Lazarus] German umlauts in component names

2016-04-04 Thread Mattias Gaertner
On Mon, 4 Apr 2016 11:45:02 +0200 Sven Barth wrote: > Am 04.04.2016 11:40 schrieb "Special" : > > What problems, Denis? We use component names like "SchließenButton" since > many years with Delphi in training programs for german pupils. And in code > for the international community, we don't use

Re: [Lazarus] German umlauts in component names

2016-04-02 Thread Mattias Gaertner
On Sat, 2 Apr 2016 10:14:24 +0200 Special wrote: > How can I use names with German Umlauts and 'ß' in the Name Field of > TButton components? For instance, I try to set MyButton.Name to > "Schließenbutton" and get an error message "Komponentenname > Schließenbutton ist kein gültiger Bezeichner

Re: [Lazarus] Can some fix this "make" issue? Pi related.

2016-04-01 Thread Mattias Gaertner
On Fri, 1 Apr 2016 03:25:47 -0400 Anthony Walter wrote: > Calling the compiler directly works on most any project/program. I am not > sure how to build Lazarus (with my preferred packages) using lazbuild or > fpc. The "make useride" command fails exactly like I described in my > original post. m

Re: [Lazarus] Can some fix this "make" issue? Pi related.

2016-03-31 Thread Mattias Gaertner
On Fri, 1 Apr 2016 00:39:15 -0400 Anthony Walter wrote: >[...] > My question is can someone look into this issue so that building Lazarus in > environments where free memory is than 700MB does not result in Lazarus > build failures? Does it compile when you directly call the compiler? Mattias

Re: [Lazarus] Is there some way to build a package for all widgsets in one go like the IDE's Build Many option?

2016-03-31 Thread Mattias Gaertner
On Thu, 31 Mar 2016 22:17:20 +0100 "vfclists ." wrote: >[...] > I suppose that this depends on using building a project with the right > widgetset? My thoughts where more along the line of using the Compile > button on the package to compile for all the chosen widgetsets in one go. With "chosen"

Re: [Lazarus] Is there some way to build a package for all widgsets in one go like the IDE's Build Many option?

2016-03-31 Thread Mattias Gaertner
On Thu, 31 Mar 2016 21:38:46 +0100 "vfclists ." wrote: > Is there some way to build a package for all widgsets in one go like the > IDE's Build Many option? > > Changing widgetsets results in a recompile of a lot of GUI packages and > wonder whether that can be avoided. Adding the LCLWidget to t

Re: [Lazarus] Feature Request: Insert {codepage UTF8} per default

2016-03-31 Thread Mattias Gaertner
On Thu, 31 Mar 2016 15:25:03 +0200 Bart wrote: > On 3/31/16, Mattias Gaertner wrote: > > >> Will all this mess go away if we would go the Delphi way > >> (String=UnicodeString)? > >> (I know *nix users are going to hate me now) > > > > Which

Re: [Lazarus] Feature Request: Insert {codepage UTF8} per default

2016-03-31 Thread Mattias Gaertner
On Thu, 31 Mar 2016 14:32:27 +0200 Bart wrote: > On 3/31/16, Mattias Gaertner wrote: >[...] > So, when my usecase for string constants with diacritics in real life > most of the time is just captions for buttons/menu's etc., the extra > overhead will not really be someth

Re: [Lazarus] Feature Request: Insert {codepage UTF8} per default

2016-03-31 Thread Mattias Gaertner
On Wed, 30 Mar 2016 18:16:32 +0200 Bart wrote: >[...] > > Any valid UTF-8 string should work, including diacritics. > Without the codepage identier? Yes, if you use LazUTF8. If you don't use LazUTF8 and assign a literal to a UnicodeString you need the codepage. > Quote from http://wiki.freepa

Re: [Lazarus] Feature Request: Insert {codepage UTF8} per default

2016-03-31 Thread Mattias Gaertner
On Thu, 31 Mar 2016 00:16:13 +0200 "Michael W. Vogel" wrote: >[...] > I've tested the example too and I got different results with different > options. The test was: > - BOM / no BOM at the beginning of the sourcefile > - {$codepage UTF8} or not The compiler understands -FcUTF8, {$codepage utf8

Re: [Lazarus] Using libjpeg

2016-03-31 Thread Mattias Gaertner
On Thu, 31 Mar 2016 09:49:44 +0200 (CEST) Michael Van Canneyt wrote: > > > On Wed, 30 Mar 2016, Aradeonas wrote: > > > Hi, > > > > I want use libjpeg and I found pasjpeg package in fpc that contains > > jpeglib.pas unit Unit jpeglib does not use libjpeg. > > but I coudnt find a working dem

Re: [Lazarus] Feature Request: Insert {codepage UTF8} per default

2016-03-31 Thread Mattias Gaertner
On Thu, 31 Mar 2016 01:20:14 +0200 Bart wrote: >[...] > I was wondering why DefaultSystemCodepage would return CP_ACP on > Graemes FreeBsd with an UTF8 locale? The problem only exists on Windows (more exact: OS with system codepage<>CP_UTF8). Mattias --

Re: [Lazarus] Feature Request: Insert {codepage UTF8} per default

2016-03-31 Thread Mattias Gaertner
On Thu, 31 Mar 2016 00:26:44 +0200 Bart wrote: > On 3/30/16, Juha Manninen wrote: >[...] > I think the statement in the wiki that {$codepage utf8} is not needed is > wrong. You can use UTF-8 without the {$codepage utf8}. But there are cases where it is needed. Maybe the wording can be improved

Re: [Lazarus] Feature Request: Insert {codepage UTF8} per default

2016-03-30 Thread Mattias Gaertner
> "Michael W. Vogel" hat am 29. März 2016 um 23:20 > geschrieben: >[...] > I'm thinking about the thread here > http://forum.lazarus.freepascal.org/index.php/topic,31939.msg206688.html#msg206688[...] > In the most cases the string magic works without a defined {$codepage utf8}, > but not if you

Re: [Lazarus] Feature Request: Disable/clear the "Recent files" and "Recent projects" lists

2016-03-28 Thread Mattias Gaertner
> Ondrej Pokorny hat am 28. März 2016 um 20:25 geschrieben: > > On 28.03.2016 18:14, max.lemradt2 wrote: > > > I'd like to be able to disable or clear the "Recent files" and "Recent > > projects" lists, e. g. for privacy reasons. > > I will probably never use it but if you need it, feel free t

Re: [Lazarus] Feature Request: Disable/clear the "Recent files" and "Recent projects" lists

2016-03-28 Thread Mattias Gaertner
> "max.lemradt2" hat am 28. März 2016 um 18:14 > geschrieben: > > Hello, > > I'd like to be able to disable or clear the "Recent files" and "Recent > projects" lists, e. g. for privacy reasons. One solution: Start the IDE, configure it to your liking. Close it and remove the element in ~/.laz

Re: [Lazarus] Lazarus 1.6 crash

2016-03-27 Thread Mattias Gaertner
> Евгений Поликутин hat am 27. März 2016 um 03:35 > geschrieben: > > Hi! > I am using Lazarus 1.6 with FPC 3.0.0. I have found out that when I > have some code like: > "var test: test;" > and I put my mouse pointer over any of two "test" identifiers and wait > for about 500ms, then, instead of s

Re: [Lazarus] How to recover from Fatal: Invalid PPU-File entry 121

2016-03-19 Thread Mattias Gaertner
On Sat, 19 Mar 2016 18:27:01 -0400 Donald Ziesig wrote: > Hi All! > > I've been happily coding away all day on my Raspberry Pi 2B+, when all > at once I got the error: > > Compile package LCL 1.7 : Exit code 256, Errors 1 > Fatal: Invalid PPU-File entry 121 It means either you have a broken p

Re: [Lazarus] Compiling on Odroid / RaspberryPi

2016-03-15 Thread Mattias Gaertner
On Tue, 15 Mar 2016 21:44:18 +1030 steveg wrote: > Thanks Mattias - > > I dont seem to have a /etc/fpc.cfg - possibly I didnt install fpc > correctly ? > I svn'd fpc, > then make clean all / make install In order to to do that you need a starting fpc. How did you install the first fpc on the s

Re: [Lazarus] Compiling on Odroid / RaspberryPi

2016-03-15 Thread Mattias Gaertner
On Tue, 15 Mar 2016 21:12:03 +1030 steveg wrote: > I am trying to compile Laz on an Odroid Arm system (running Lubuntu > 14.04 - LXDE) > I have fpc 3.1.1 compiled and installed ok (I believe) > > Compiling the latest svn of Laz is giving the following error - (cant > find unit) > process.ppu a

Re: [Lazarus] Default keymapping adapted to OS X

2016-03-14 Thread Mattias Gaertner
On Mon, 14 Mar 2016 09:13:08 -0400 Dmitry Boyarintsev wrote: > On Mon, Mar 14, 2016 at 7:03 AM, Mattias Gaertner > wrote: > > > I don't know anyone who wants the Windows/Linux (Lazarus default) > > scheme under OS X without Ctrl-Meta mapping. > > > > Cou

Re: [Lazarus] Default keymapping adapted to OS X

2016-03-14 Thread Mattias Gaertner
On Mon, 14 Mar 2016 12:07:44 +0200 Juha Manninen wrote: > I applied the patch from here: > http://bugs.freepascal.org/view.php?id=28658 > > It adds a new key mapping for OSX: > "Default adapted to OS X" > > Now there are 3 mappings for OSX and only 2 for other systems. It is > unproportiona

Re: [Lazarus] Bug in FPC 3.0 discovered

2016-03-11 Thread Mattias Gaertner
On Fri, 11 Mar 2016 14:12:41 +0100 (CET) Michael Van Canneyt wrote: > > > On Fri, 11 Mar 2016, Mattias Gaertner wrote: > > > On Fri, 11 Mar 2016 13:57:02 +0100 > > LacaK wrote: > > > >> [...] > >> There was discovered bug in FPC 3.0 (already fi

Re: [Lazarus] Bug in FPC 3.0 discovered

2016-03-11 Thread Mattias Gaertner
On Fri, 11 Mar 2016 13:57:02 +0100 LacaK wrote: >[...] > There was discovered bug in FPC 3.0 (already fixed in trunk) when > currency and double data types are involved in mathematical operations > like addition or multiplication. Is this bug http://bugs.freepascal.org/view.php?id=29760 ? Mat

Re: [Lazarus] clean installation

2016-03-10 Thread Mattias Gaertner
On Thu, 10 Mar 2016 18:59:59 -0500 Richard Medina wrote: > Hello, > I followed all your steps but when I call > > rmedinac@rmedinac-desktop ~/dev/lazarus/1.6 $ make bigide > > make -C packager/registration > make[1]: Entering directory > `/home/rmedinac/dev/lazarus/1.6/packager/registration' >

Re: [Lazarus] clean installation

2016-03-09 Thread Mattias Gaertner
On Wed, 9 Mar 2016 16:21:06 -0500 Richard Medina wrote: > I am having problems to install the last version of Lazarus. > Please anyone can help me? > I am using linux mint (ubuntu). > I already donwloaded the last version Lazarus 1.6 with fpc3.0.0. and fpc > source 3.0.0. What error message do y

Re: [Lazarus] Windows API calls and german Umlauts

2016-03-09 Thread Mattias Gaertner
On Wed, 9 Mar 2016 13:04:50 +0100 "John Landmesser" wrote: > Hi, > > if i call a windows API function for special folder, like: > > uses > ... > shlobj; > > var > AppDataPath: Array[0..MaxPathLen] of Char; > begin > SHGetSpecialFolderPath(0,AppDataPath,CSIDL_STARTUP,false); > end; >

Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Mattias Gaertner
On Tue, 8 Mar 2016 15:01:10 +0100 Ondrej Pokorny wrote: >[...]To reduce confusion I can enhance the > dialog with a local/class target combobox - people could than map the > more interactive shortcut to ctrl+shift+c and use only one shortcut for > both class/local target if they want. What do

Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Mattias Gaertner
On Tue, 8 Mar 2016 14:05:18 +0100 Reimar Grabowski wrote: >[...] > > > Then better 2 shortcut keys: > > > ctrl-shift-X = create using default set in options. > > > ctrl-alt-X or ctrl-shift-alt-X = create and force dialog. > > > Or something similar. >[...] > ctrl-shift-x -> ctrl-shift-alt-x > c

Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Mattias Gaertner
On Tue, 8 Mar 2016 09:49:45 +0100 (CET) Michael Van Canneyt wrote: >[...] > No, this kind of behaviour is very confusing. Then better 2 shortcut keys: > ctrl-shift-X = create using default set in options. > ctrl-alt-X or ctrl-shift-alt-X = create and force dialog. > Or something similar. +1 One

Re: [Lazarus] Aarch64 as CPU target for RPi3 with Linux as OS

2016-03-03 Thread Mattias Gaertner
On Thu, 03 Mar 2016 06:47:24 + Alfred wrote: >[...] > How to setup Lazarus to compile for Aarch64 ?? > Fpc does NOT know what to do with -Pa64. > Fpc does know what to do with -Paarch64. Fixed. I replaced a64 with aarch64 in the IDE. Mattias -- _

Re: [Lazarus] Project Groups error - "Invalid floating point operation"

2016-02-25 Thread Mattias Gaertner
On Thu, 25 Feb 2016 15:06:35 + Graeme Geldenhuys wrote: >[...] > Anybody else see this error yet? Yes. There seems to be a bug in the IDE menu merging code. It happens only with some combinations of installed packages. Mattias -- ___ Lazarus mai

Re: [Lazarus] Image Copy and Load Fail.

2016-02-25 Thread Mattias Gaertner
On Thu, 25 Feb 2016 19:28:57 +0900 (KST) 최경식 wrote: >[...] > procedure TForm1.Button3Click(Sender: TObject); > var > ImagetoSave : TImage; > begin > ImagetoSave := TImage.Create(Self); A TImage is a visual control that uses a graphic (e.g. a TBitmap) to paint. If you only need a memory image

Re: [Lazarus] Feature request: Project Groups

2016-02-25 Thread Mattias Gaertner
On Thu, 25 Feb 2016 10:19:15 + Graeme Geldenhuys wrote: >[...] > One suggestion though. Can the "current project" be highlighted in Bold. > At the moment there is no way of seeing which project in the project > group window is the active project. It's already on my todo list. > Also, what

Re: [Lazarus] Problem with lazarus 1.6?

2016-02-25 Thread Mattias Gaertner
On Mon, 22 Feb 2016 19:35:55 +0100 Frans wrote: > Hi. > > A few days ago I installed lazarus 1.6. After adding some packages I use it > works fine but for 2 > projects. > I can't close these two projects without a crash of Lazarus, showing the > message 'Access violation' >[...] > Anyone an

Re: [Lazarus] Problem with lazarus 1.6?

2016-02-25 Thread Mattias Gaertner
On Mon, 22 Feb 2016 19:35:55 +0100 Frans wrote: > Hi. > > A few days ago I installed lazarus 1.6. After adding some packages I use it > works fine but for 2 > projects. > I can't close these two projects without a crash of Lazarus, showing the > message 'Access violation' > twice in a dlg wi

Re: [Lazarus] Microsoft Acquires Xamarin

2016-02-24 Thread Mattias Gaertner
On Wed, 24 Feb 2016 15:59:06 -0500 Dmitry Boyarintsev wrote: > On Wed, Feb 24, 2016 at 3:16 PM, Anthony Walter wrote: > > > I expect their price to come down, maybe even into the free price range, > > as a result of this acquisition. > > > > Skepticism: what software became better after acquis

Re: [Lazarus] Lazarus Release 1.6

2016-02-24 Thread Mattias Gaertner
On Wed, 24 Feb 2016 11:46:05 +0200 (EET) Kamen Ketev wrote: > In which modul are > WinCPToUTF8 or CP1251ToUTF8? ( Error: Identifier not found "WinCPToUTF8") WinCPToUTF8 from unit LazUTF8 or CP1251ToUTF8 from unit LConvEncoding > I want to make my application both on Windows and Linux. T

Re: [Lazarus] Clean and build as sudo?

2016-02-24 Thread Mattias Gaertner
On Wed, 24 Feb 2016 07:00:28 + Pedro Albuquerque wrote: > Hi, > > first post here, no coding for the last 25 years, first time with > Lazarus. Forgive me any inconvenience, please. > > While building an application, I got this error: > > mainwindow.pas(27,22) Error: Cannot find FileUtil us

Re: [Lazarus] Lazarus Release 1.6

2016-02-24 Thread Mattias Gaertner
On Wed, 24 Feb 2016 08:39:40 +0200 (EET) Kamen Ketev wrote: > > "What encoding has the text file? CP1251?" > ANSI. Only this encoding worked with Lazarus 1.4. > "What function do you use for converting the strings to UTF-8?" > SysToUtf8(s) SysToUTF8 was changed, because in the majority of cas

Re: [Lazarus] Warning about integer constant and expression

2016-02-23 Thread Mattias Gaertner
On Tue, 23 Feb 2016 18:28:29 +0100 Jürgen Hestermann wrote: > WIth this definition: > > var i64 : Int64; > > and this code: > > if i64>High(SizeInt) then > > I get: > "Warning: Comparison might be always false due to range of constant and > expression" > And even more strange, if I convert

Re: [Lazarus] Lazarus Release 1.6

2016-02-23 Thread Mattias Gaertner
On Tue, 23 Feb 2016 14:25:01 +0200 (EET) Kamen Ketev wrote: > Windows 7 64bit. Lazarus 1.6 32bit. >[...] > > I have ComboBox which > > takes information about filling from a text file. On Lazarus 1.6 cyrillic > > symbols are like this:?-??, . How can I correct this? In > > Laz

Re: [Lazarus] Lazarus Release 1.6

2016-02-23 Thread Mattias Gaertner
On Tue, 23 Feb 2016 14:10:25 +0200 (EET) Kamen Ketev wrote: > > I have ComboBox which > takes information about filling from a text file. On Lazarus 1.6 cyrillic > symbols are like this:?-??, . How can I correct this? In > Lazarus 1.4 they was correct. What platform? Mattias

Re: [Lazarus] Additional FPC syntax mode choices

2016-02-19 Thread Mattias Gaertner
On Fri, 19 Feb 2016 08:55:42 + Alfred wrote: > Hello, > > Would it be possible to add > {$MODE} DELPHIUNICODE (and perhaps also ISO / EXTENDEDPASCAL) > to the syntax mode choices of the Lazarus (1.7) parsing options ? I added delphiunicode and iso. Mattias -- _

[Lazarus] Lazarus Release 1.6

2016-02-18 Thread Mattias Gaertner
The Lazarus team is glad to announce the release of Lazarus 1.6. This release was built with FPC 3.0.0. The previous release Lazarus 1.4.4 was built with FPC 2.6.4. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_1.6.0_release_notes http://wiki.

Re: [Lazarus] TApplication.UpdateMainForm

2016-02-18 Thread Mattias Gaertner
On Wed, 17 Feb 2016 23:09:45 -0200 Fabio Luis Girardi wrote: > Em 17 de fev de 2016 18:41, "Mattias Gaertner" > escreveu: > > > No. > > Why can't you derive from TForm? > > Because TForm publishes some properties that I want keep in protected > s

Re: [Lazarus] TApplication.UpdateMainForm

2016-02-17 Thread Mattias Gaertner
On Wed, 17 Feb 2016 18:25:47 -0200 Fabio Luis Girardi wrote: >[...] > My question is: The parameter AForm should be of type TCustomForm instead > of TForm? No. Why can't you derive from TForm? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazar

Re: [Lazarus] Replacing LRT format with RSJ

2016-02-17 Thread Mattias Gaertner
On Wed, 17 Feb 2016 18:03:52 + Denis Kozlov wrote: > It would be useful to have a built-in option to regenerate base PO file > (and update translated PO files) for a project. > > This could involve: > 1) Removing all existing LRT, LRJ, RST, RSJ. This can do that: Run / Clean up and build >

Re: [Lazarus] non Unicodode application

2016-02-12 Thread Mattias Gaertner
On Fri, 12 Feb 2016 17:16:29 +0100 (CET) Michael Van Canneyt wrote: >[...] > >> {$define String:=RawByteString} >[...] > Type >T = Type Ansistring(850); AFAIK this was introduced with Delphi 2009. Not available in Delphi 7. Mattias -- ___ Lazarus

Re: [Lazarus] non Unicodode application

2016-02-12 Thread Mattias Gaertner
On Fri, 12 Feb 2016 16:53:12 +0100 Michael Schnell wrote: >[...] > > even without the new UTF-8 mode. > How to set this mode when compiling with Lazarus ? See here http://wiki.freepascal.org/Lazarus_with_FPC3.0_without_UTF-8_mode > What mode do you think is more appropriate when most work is

Re: [Lazarus] non Unicodode application

2016-02-12 Thread Mattias Gaertner
On Fri, 12 Feb 2016 16:41:23 +0100 Michael Schnell wrote: > On 02/12/2016 03:54 PM, Juha Manninen wrote: > > Sure there is hope. See the new UTF-8 support: > >http://wiki.freepascal.org/Better_Unicode_Support_in_Lazarus > > > This page says: > > "This page covers Unicode support in Lazarus p

Re: [Lazarus] non Unicodode application

2016-02-12 Thread Mattias Gaertner
On Fri, 12 Feb 2016 15:16:38 +0100 (CET) Michael Van Canneyt wrote: >[...] > {$define String:=RawByteString} > > and you are done. Won't compile when calling RTL functions with var parameters. I fail to see why RawByteString should do less conversions than using AnsiString, when porting a Delp

Re: [Lazarus] RFC : "Resolved View"

2016-02-12 Thread Mattias Gaertner
On Fri, 12 Feb 2016 15:25:11 +0100 (CET) Michael Van Canneyt wrote: >[...] > > What about include files used twice in a unit? > > Yes, that happens in the RTL as a kind of poor-mans generics. That's no problem when the file compiles. But while typing a directive the unit structure falls apart.

Re: [Lazarus] non Unicodode application

2016-02-12 Thread Mattias Gaertner
On Fri, 12 Feb 2016 15:38:49 +0200 Juha Manninen wrote: > On Fri, Feb 12, 2016 at 3:25 PM, Michael Schnell wrote: > > Any automatic type conversion would kill the application. > > [...] > > will this be possible with future versions of Lazarus ,as well ? > > I guess you mean automatic encoding

Re: [Lazarus] non Unicodode application

2016-02-12 Thread Mattias Gaertner
On Fri, 12 Feb 2016 14:25:43 +0100 Michael Schnell wrote: >[...] > A friend of mine wants to port an application from Delphi 7 to a be a > Lazarus 64 Bit Windows application. > > This (huge) application only features a very limited GIU, but uses > strings lot for "uncoded" characters, going in

Re: [Lazarus] Lazarus application crash. Is PostMessage thread safe?

2016-02-12 Thread Mattias Gaertner
On Fri, 12 Feb 2016 14:53:29 +0100 Michael Schnell wrote: > On 02/10/2016 10:12 PM, C Western wrote: > > > > My understanding is Application.ProcessMessages has to be reentrant ... > > As calling Application.ProcessMessages is only allowed from the main > thread it does not need to be reentrant

Re: [Lazarus] RFC : "Resolved View"

2016-02-12 Thread Mattias Gaertner
On Fri, 12 Feb 2016 00:54:38 +0100 (CET) Michael Van Canneyt wrote: >[...] > By this I mean a view of a unit as the compiler will see it: > - Correct include files included > - IFDefs properly resolved. > > The IDE groks include files and can already syntax highlight conditional > code, > so t

Re: [Lazarus] How to set defines for a project? Lazarus crashes...

2016-02-11 Thread Mattias Gaertner
On Tue, 9 Feb 2016 15:21:30 -0500 Dmitry Boyarintsev wrote: > On Mon, Feb 8, 2016 at 6:22 PM, Mattias Gaertner > wrote: >[...] > Is it true to say that there are only 2 ways in IDE to set defines. > 1) Project Options/Custom Options > 2) Project Options/Additions and Override

Re: [Lazarus] Exclude components from localization by path or text

2016-02-09 Thread Mattias Gaertner
>[...] > I hope this could be merged into either 1.4 or 1.6 as it's an extremely > useful feature for i18n. Sorry, only bug fixes can go to 1.6. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.o

Re: [Lazarus] How to set defines for a project? Lazarus crashes...

2016-02-08 Thread Mattias Gaertner
> Bo Berglund hat am 8. Februar 2016 um 20:24 > geschrieben: > > I tried setting the conditional "UseCThreads" for my test project but > even though I can reach the place where this apparently is set: > Menu: Project/Project_Options/Custom_Options/Defines > it seems not to work! Do you mean you

Re: [Lazarus] Debian (Sid): fpc 3.0.0+dfsg-2 cannot compile lazarus trunc

2016-02-01 Thread Mattias Gaertner
On Mon, 1 Feb 2016 18:20:59 +0100 John Landmesser wrote: > Does anybody else has issues with Debians fpc 3.0.0+dfsg-2 Is this the new FPC 3.0.0 from Debian unstable? > fpc 3.0.0+dfsg-2 hangs on ..linking Mattias -- ___ Lazarus mailing list Lazarus@

Re: [Lazarus] Tutorial Video: Getting Started

2016-02-01 Thread Mattias Gaertner
On Mon, 1 Feb 2016 05:43:15 -0500 Anthony Walter wrote: > I've posted a tutorial video, which is the first in a series, titled > "Getting Started". It's available for viewing here: > > http://www.getlazarus.org/learn/tutorials/start/ > > Additional tutorial videos with progressively more advanc

Re: [Lazarus] bad luck

2016-01-29 Thread Mattias Gaertner
On Fri, 29 Jan 2016 22:54:00 +0100 Marc Santhoff wrote: >[...] > What I asked for is help locating and understanding Lazarus' file > handling. Some standard errors like unneccessarily holding files open > when not in use can be avoided easily. The IDE does not hold files open. There was a bug s

Re: [Lazarus] Package editor in Lazarus 1.6

2016-01-28 Thread Mattias Gaertner
On Thu, 28 Jan 2016 14:34:25 +0200 Juha Manninen wrote: > On Thu, Jan 28, 2016 at 12:06 AM, Mattias Gaertner > wrote: > > And what was the bug? > > It does not sound like a bugfix, so I'm a bit worried that it went to > > 1.6RC2. > > Most changes were made

Re: [Lazarus] Treeview example(s) needed

2016-01-28 Thread Mattias Gaertner
On Thu, 28 Jan 2016 01:23:36 +0100 "Joe Shepherd" wrote: > Thanks, but that's hardly the way (with standalone buttons) anyone would use > a treeview. It demonstrates adding, deleting and selecting nodes. > Surely the TV's own events (onClick, onChange...) are preferable? Do you mean you sear

Re: [Lazarus] Package editor in Lazarus 1.6

2016-01-27 Thread Mattias Gaertner
On Wed, 27 Jan 2016 22:12:59 +0200 Juha Manninen wrote: > On Wed, Jan 27, 2016 at 7:44 PM, Mattias Gaertner > wrote: > > What bug was fixed with this patch? > > ... > > Changes should be documented: > > http://wiki.lazarus.freepascal.org/Lazarus_1.6.0_release_note

Re: [Lazarus] Package editor in Lazarus 1.6

2016-01-27 Thread Mattias Gaertner
On Mon, 25 Jan 2016 18:41:42 +0200 Juha Manninen wrote: > Forgot to write earlier... > > The package editor has been improved in RC2. > See this + its related issues : > http://bugs.freepascal.org/view.php?id=28097 What bug was fixed with this patch? > The changes were partly inspired by ide

Re: [Lazarus] Treeview example(s) needed

2016-01-27 Thread Mattias Gaertner
On Wed, 27 Jan 2016 06:01:24 +0100 "Joe Shepherd" wrote: >[...] >newnode := tv.items.addchild(nil, 'A'); >newnode := tv.items.addchild(nil, 'B'); >newnode := tv.items.addchild(newnode, 'B1'); >newnode := tv.items.addchild(newnode, 'B12'); >newnode := tv.ite

Re: [Lazarus] Treeview example(s) needed

2016-01-27 Thread Mattias Gaertner
On Wed, 27 Jan 2016 09:16:12 +0100 Marc Santhoff wrote: > On Mi, 2016-01-27 at 06:01 +0100, Joe Shepherd wrote: > > > > Obvioiusly I'm missing a lot but I cannot find any example to dispel > > the fog. Anyone got one? > > Not really. Some information can be found there: > > http://wiki.lazaru

Re: [Lazarus] Code completion question

2016-01-26 Thread Mattias Gaertner
On Tue, 26 Jan 2016 23:12:51 +0100 Vojtěch Čihák wrote: > Hi, >   > It is a bug? I know this behaviour for a long time and I always believed it > is by design. FPC gives a warning, so it is bad coding, but it is not forbidden. Maybe it would be better to show them in the completion box with so

Re: [Lazarus] Code completion question

2016-01-26 Thread Mattias Gaertner
On Tue, 26 Jan 2016 21:50:43 +0100 (CET) Michael Van Canneyt wrote: > [...] > do the codetools refuse to show identifiers with less restricted visibility ? > (so in a protected section, I will not get public) > > Is this intentional ? > > I can imagine it is confusing to the beginner and experi

Re: [Lazarus] Bug 28281

2016-01-26 Thread Mattias Gaertner
On Mon, 25 Jan 2016 21:37:16 +0100 (CET) Michael Van Canneyt wrote: > > Hi, > > Any news on bug 29281 ? > > http://bugs.freepascal.org/view.php?id=28281 > > I can add the following extra info: > > if compilation fails, it quite often never detects this and fails to show the > compiler error

Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-26 Thread Mattias Gaertner
On Tue, 26 Jan 2016 10:17:36 -0200 Fabrício Srdic wrote: >[...]Three > months after, your project's requirements changes. The new requirement is > that your code shall run on Linux. However, that external library runs only > on windows. So, your code are constrained by this limitation. Now, you n

Re: [Lazarus] Get Lazarus January 2016 Update

2016-01-21 Thread Mattias Gaertner
On Thu, 21 Jan 2016 15:32:39 -0500 Donald Ziesig wrote: >[...] > I did try make clean bigide and make bigide and the response was that it > could not find target 'clean' or target 'bigide'. What platform? You need to change to the lazarus directory before calling make. Mattias -- ___

Re: [Lazarus] How to install LNet package in Lazarus 1.6RC2?

2016-01-21 Thread Mattias Gaertner
On Thu, 21 Jan 2016 14:29:14 +0100 Bo Berglund wrote: >[...] > 2) Next I am supposed to open the lnetvisual.lpk package file in > Lazarus "Component/Open", but there is no such "Component" menu > command in my Lazarus! > The closest I get is "Package/Open package file", so I tried that. Yes. It

Re: [Lazarus] New menu designer

2016-01-21 Thread Mattias Gaertner
On Thu, 21 Jan 2016 13:21:57 + Howard Page-Clark wrote: >[...] > I don't know anything about the translation process, or at what stage in > the IDE initialization captions are replaced with translated > resourcestrings. > Is there a standard notification, or other means to respond to a > d

  1   2   3   4   5   6   7   8   9   10   >