Re: [Lazarus] 1.6.0-fpc-3.0.0-win64.exe

2016-05-26 Thread Denis Kozlov
On 25/05/2016 18:47, Larry Dalton wrote: I have been using 1.2.4 win32 because of a printer issue when trying to use the 64 bit compiler. Are there any printer issues with the new version? FYI, you can install 1.6.0 as a secondary instance (using the option provided during the installation)

Re: [Lazarus] Write to UNC or mapped drive

2016-05-25 Thread Denis Kozlov
On 24 May 2016 at 20:46, Leonardo M. Ramé wrote: > Hi, My app is a CGI running on Windows2012 (IIS 7.0), it needs to save a > file to a remote UNC or Mapped drive, but when I check using > DirectoryExists in both cases I get False, but of course the UNC and mapped > drive

Re: [Lazarus] Example of TObjectList sorting

2016-05-22 Thread Denis Kozlov
On 21 May 2016 at 13:49, Richard Mace wrote: > ​Would I call the List.sort externally, or would the List call sort when > an Add has happened, as I don't seem to have a ".sort" method on my > TObjectList? > You need to call List.Sort yourself, it is not sorted

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

2016-05-20 Thread Denis Kozlov
On 18 May 2016 at 01:13, Mattias Gaertner wrote: > > 1) Document licensing terms in *.lpk files of each package (making it > > mandatory for all future packages). > > It always was. If a lpk is missing its license, please report the bug. > A quick search revealed that

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

2016-05-17 Thread Denis Kozlov
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 > they can easier pick the cherries. > It's not a bad idea. Maybe we can

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

2016-05-17 Thread Denis Kozlov
On 17 May 2016 at 13:24, Graeme Geldenhuys wrote: > Mattias already answered the question. “Free” is a relative term in the > open source world. Why must some code be excluded from Lazarus, even > though it is still open source - albeit with a different license. >

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

2016-05-17 Thread Denis Kozlov
On 17 May 2016 at 11:41, Graeme Geldenhuys wrote: > I just had a similar thread in the FPC mailing list. The “Simplified > BSD” (2-clause) license is as “free” as you can get, but apparently it > doesn’t fit in with the goals of Free Pascal’s FCL, so no BSD

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

2016-05-17 Thread Denis Kozlov
On 17 May 2016 at 11:10, Ondrej Pokorny wrote: > How do you define "free"? Is GPL free? > I meant it in the simplest term, that developers can freely distribute or sell built applications. You are mixing up 2 different things. See >

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

2016-05-17 Thread Denis Kozlov
On 17 May 2016 at 10:15, Graeme Geldenhuys wrote: > This was discussed before and the licensing information (readme) was > updated. The GPC code is totally optional and NOT used by default in > AggPas at all. So yes it is fine being there. > Does it make sense to

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

2016-05-16 Thread Denis Kozlov
Hi, Licensing terms of "components\aggpas\gpc" state that it is free for non-commercial use only. Should it even be allowed to be part of Lazarus components? For this reason it was excluded from Debian packaged Lazarus, as discussed here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=708695

Re: [Lazarus] Example of TObjectList sorting

2016-05-09 Thread Denis Kozlov
On 9 May 2016 at 13:44, Graeme Geldenhuys <mailingli...@geldenhuys.co.uk> wrote: > On 2016-05-09 13:24, Denis Kozlov wrote: > > This kind of question is better suited on the forum I think > > Why? This mailing list is just as much a support area as the web forum. > Not e

Re: [Lazarus] Missing components in Lazarus 1.6 DEB

2016-05-09 Thread Denis Kozlov
Package "lazarus-1.6" and its sub-packages are missing many of Lazarus 1.6 source files. Reported to Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=823706 Beware when installing from Debian packaged repositories. Denis -- ___ Lazarus

Re: [Lazarus] Example of TObjectList sorting

2016-05-09 Thread Denis Kozlov
On 9 May 2016 at 12:48, Richard Mace wrote: > I have a TObjectList that contains many objects that have a property > called "Position" which is an integer. > > Could somebody show me an example of the code that I will need to create > that will sort all of my Objects

Re: [Lazarus] Missing components in Lazarus 1.6 DEB

2016-04-29 Thread Denis Kozlov
Nobody else noticed randomly missing files from Lazarus 1.6 distribution for Linux? On 25 April 2016 at 12:43, Denis Kozlov <dez...@gmail.com> wrote: > Why many components have missing *.lpk files in Lazarus 1.6 DEB installer? > Is this deliberate or a packaging problem? > >

[Lazarus] Missing components in Lazarus 1.6 DEB

2016-04-25 Thread Denis Kozlov
Why many components have missing *.lpk files in Lazarus 1.6 DEB installer? Is this deliberate or a packaging problem? Tried installing using `lazarus_1.6-0_amd64.deb` and via `apt install lazarus` on Ubuntu 16. Tree structure of components in DEB is quite different to Windows or SVN structure.

Re: [Lazarus] Adding TListView.GetHeaderHeight

2016-04-12 Thread Denis Kozlov
On 12 April 2016 at 12:04, Zeljko wrote: > > I'll implement it, doesn't look like a big problem, but still wondering > why is this good for (getHeaderHeight) ? > I responded in the bug tracker: http://bugs.freepascal.org/view.php?id=29997 Denis --

Re: [Lazarus] Adding TListView.GetHeaderHeight

2016-04-12 Thread Denis Kozlov
On 12 April 2016 at 08:29, Zeljko <zel...@holobit.net> wrote: > > On 04/11/2016 05:29 PM, Denis Kozlov wrote: > >> Is it possible to add a TListView.GetHeaderHeight method? >> >> My implementation for Windows as a standalone function is attached. >> >&g

[Lazarus] Adding TListView.GetHeaderHeight

2016-04-11 Thread Denis Kozlov
Hi, Is it possible to add a TListView.GetHeaderHeight method? My implementation for Windows as a standalone function is attached. Can this can be done on other platforms? I don't have the expertise in other widgets. Regards, Denis uListViewHeader.pas Description: Binary data --

Re: [Lazarus] GetAppConfigDir on Windows XP (PT-BR): Configura??es

2016-04-01 Thread Denis Kozlov
On 30/03/2016 14:45, Alexsander Rosa wrote: How can I get GetAppConfigDir correctly on Windows XP (PT-BR)? The path includes the word "configurações" (settings, in portuguese). dir_config := ExtractFilePath(GetAppConfigDirUTF8(false)); Any hints? Can you reproduce this problem if you

Re: [Lazarus] GetAppConfigDir on Windows XP (PT-BR): Configura??es

2016-04-01 Thread Denis Kozlov
On 01/04/2016 22:03, Bart wrote: So, also on the 1.6 branch we directly call the Windows Wide API (provided you are NOT on a Win9x system). Sorry Bart, you are right. I overlooked "Win32MajorVersion <= 4" after seeing "{$ifndef WinCE}". I went straight to GetAppConfigDirAnsi to discover

Re: [Lazarus] GetAppConfigDir on Windows XP (PT-BR): Configura??es

2016-04-01 Thread Denis Kozlov
On 1 April 2016 at 16:55, Denis Kozlov <dez...@gmail.com> wrote: > In Lazarus 1.4.4, GetAppConfigDirUTF8 and GetAppConfigFileUTF8 internally > use GetAppConfigDirAnsi and GetAppConfigFileAnsi (unless running on Windows > CE), respectively. These functions call ANSI version

Re: [Lazarus] GetAppConfigDir on Windows XP (PT-BR): Configura??es

2016-04-01 Thread Denis Kozlov
On 1 April 2016 at 15:02, Alexsander Rosa wrote: > Lazarus 1.4.4 with FPC 2.6.4. > In Lazarus 1.4.4, GetAppConfigDirUTF8 and GetAppConfigFileUTF8 internally use GetAppConfigDirAnsi and GetAppConfigFileAnsi (unless running on Windows CE), respectively. These functions

Re: [Lazarus] Xamarin becomes free and open-source

2016-03-31 Thread Denis Kozlov
On 31/03/2016 21:31, vfclists . wrote: They are going all out against Apple and Redhat. You meant Apple and Google maybe? They target Windows, Mac/iOS and Android. A wide selection of supported platforms is where FPC and Lazarus defiantly have an edge. Denis --

Re: [Lazarus] LCL exports CC-licensed icons to every LCL application

2016-03-21 Thread Denis Kozlov
On 21 March 2016 at 11:46, Ondrej Pokorny wrote: > > I only want to clarify the license information about the LCL because now > it isn't correct. As I said in the internal email from 20.03.2016 12:36, > there are 2 possibilities: > 1.) remove the CC-licensed icons from the LCL

Re: [Lazarus] document with text and graphics

2016-03-20 Thread Denis Kozlov
Check out existing RTF style components, for example: http://wiki.freepascal.org/RichMemo http://wiki.freepascal.org/lzRichEdit On 20/03/2016 18:18, duilio foschi wrote: I'd like to create a document which will store text and graphics, a sort of minimal MS-WORD document. The document should

Re: [Lazarus] Run/debug app with command line params through the IDE

2016-02-28 Thread Denis Kozlov
Lazarus Main Menu > Run > Run Parameters... On 28/02/2016 21:32, Luiz Americo Pereira Camara wrote: I'd like to debug a console app inside the ide. In order to the program work i need to pass some command line params Is there a way to run the app through the IDE passing command line params?

Re: [Lazarus] Form Resizing

2016-02-28 Thread Denis Kozlov
No form resizing issues with Lazarus 1.7 r51739 FPC 3.0.0 using win32/gtk2 widgets on Windows 7. Can you reproduce it with a new & clean application? Denis On 28/02/2016 00:41, steveg wrote: I find any and all forms in a running Laz program can not be reduced in size below the original

Re: [Lazarus] Question about modal forms behaviour under windows

2016-02-26 Thread Denis Kozlov
(as demonstrated on the screenshot below), it would be better to minimize them as non-modal forms, i.e. minimize into the taskbar with the main form. Do you think its feasible? [image: Inline images 1] On 8 February 2016 at 10:25, zeljko <zel...@holobit.net> wrote: > On 02/08/2016 11:00 AM, Den

Re: [Lazarus] Microsoft Acquires Xamarin

2016-02-24 Thread Denis Kozlov
On 24/02/2016 20:59, Dmitry Boyarintsev wrote: Skepticism: what software became better after acquisition by Microsoft? This is bad news. Microsoft's top interest is likely to be in bundling Bing into Xamarin. MonoDevelop might have to provide their own builds from now on. --

Re: [Lazarus] Replacing LRT format with RSJ

2016-02-17 Thread Denis Kozlov
to reprocess LFM and produce LRJ I have performed these steps manually on several occasions to ensure a clean regenerated PO file. On 17 February 2016 at 16:50, Maxim Ganetsky <gan...@narod.ru> wrote: > > 17.02.2016 18:24, Denis Kozlov пишет: > > It should be possible to co

Re: [Lazarus] Replacing LRT format with RSJ

2016-02-17 Thread Denis Kozlov
It should be possible to code up an automatic conversion of LRT files directly to RSJ/LSJ, without a need to resave all forms. They both store the same data, but use a different format. Of course, LRT files with already broken strings (as a result of new lines) would be initially mapped 1-to-1 to

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

2016-02-09 Thread Denis Kozlov
I've implemented this feature and attached a patch: http://bugs.freepascal.org/view.php?id=29627 In summary: 1) Added methods to remove entries from TPOFile by identifier and by original text. 2) Implemented storage of excluded identifiers and originals via TProject. 3) Updated translation

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

2016-02-09 Thread Denis Kozlov
On 09/02/2016 22:37, Giuliano Colla wrote: PostMessage(Form1.Handle,LM_ERROR,Integer(ErrPut),0); Is your LM_ERROR larger than LM_USER? PostMessage is thread safe. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

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

2016-02-09 Thread Denis Kozlov
You create a recursive scenario yourself by calling Application.ProcessMessages inside of ShowError inside of HandleError - which is the message handling procedure itself, which is triggered by Application.ProcessMessages. -- ___ Lazarus mailing

Re: [Lazarus] Question about modal forms behaviour under windows

2016-02-08 Thread Denis Kozlov
There is a long standing bug report about this particular topic: 0026463: Application minimize not working with modal forms http://bugs.freepascal.org/view.php?id=26463 *Issue 1*: Application.Minimize should always minimize the entire application, including modal forms. Currently, the modal

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

2016-02-07 Thread Denis Kozlov
On 31/01/2016 20:24, Denis Kozlov wrote: Modern translation software and some IDEs allow you to exclude certain text by: 1) Original text (e.g. "My Program Name") 2) Component path (e.g. TForm1.Label1.Caption) Can this feature be added to Lazarus IDE? Is there any interest in su

[Lazarus] Exclude components from localization by path or text

2016-01-31 Thread Denis Kozlov
Hello, Modern translation software and some IDEs allow you to exclude certain text by: 1) Original text (e.g. "My Program Name") 2) Component path (e.g. TForm1.Label1.Caption) Can this feature be added to Lazarus IDE? Regards, Denis -- ___