Re: [Lazarus] Code tools error

2016-05-23 Thread Ondrej Pokorny
On 23.05.2016 10:25, Ondrej Pokorny wrote: On 23.05.2016 9:14, Michael Van Canneyt wrote: {$SCOPEDENUMS ON} Tsensitivity = (normal,personal,private,confidential); It works for me (Laz 1.7 trunk). (I added SCOPEDENUMS CodeTools support to 1.7 some time ago.) Sorry, I haven't checked

Re: [Lazarus] Code tools error

2016-05-23 Thread Ondrej Pokorny
On 23.05.2016 9:14, Michael Van Canneyt wrote: {$SCOPEDENUMS ON} Tsensitivity = (normal,personal,private,confidential); It works for me (Laz 1.7 trunk). (I added SCOPEDENUMS CodeTools support to 1.7 some time ago.) Ondrej -- ___ Lazarus

Re: [Lazarus] Detect that component selected in OI.

2016-05-22 Thread Ondrej Pokorny
On 22.05.2016 17:37, Vojtěch Čihák wrote: Separating Component Editors is quiet easy but how can I separate the Hook (SelectionHook method) when I need "self"? Thanks, V. For what do you need self? You have the list, so do for I := 0 to ASelection.Count-1 do if ASelection[I] is

Re: [Lazarus] Detect that component selected in OI.

2016-05-22 Thread Ondrej Pokorny
On 22.05.2016 14:13, Vojtěch Čihák wrote: procedure TMyTabSheet.HookSelection(const ASelection: TPersistentSelectionList); begin if assigned(FMyPageControl) and (ASelection.IndexOf(self)>=0) then FMyPageControl.TabIndex:= FMyPageControl.Pages.IndexOf(self); end; + You also should

Re: [Lazarus] Detect that component selected in OI.

2016-05-22 Thread Ondrej Pokorny
On 22.05.2016 15:45, Vojtěch Čihák wrote: With a small correction: it must be hooked only in design time. constructor TMyTabSheet.Create(TheOwner: TComponent); begin ... if csDesigning in ComponentState then GlobalDesignHook.AddHandlerSetSelection(@HookSelection); end; You should

Re: [Lazarus] Detect that component selected in OI.

2016-05-22 Thread Ondrej Pokorny
On 22.05.2016 11:02, Ondrej Pokorny wrote: On 22.05.2016 8:50, Ondrej Pokorny wrote: IMO you can suggest a custom designing message that will handle it without hard-coding it into the IDE. Because e.g. the TNotebook page change doesn't work. No need. I added CM_OBJECTINSPECTORSELECT

Re: [Lazarus] Example of TObjectList sorting

2016-05-22 Thread Ondrej Pokorny
You are using "procedure of object" where you need "procedure". (One solution is to add static keyword to your procedure declaration, if the FPC version you use supports the typecast - iirc, fpc 3.0.0 can't do that in objfpc mode.) Ondrej On 22.05.2016 12:17, Richard Mace wrote: Thanks

Re: [Lazarus] Detect that component selected in OI.

2016-05-22 Thread Ondrej Pokorny
On 22.05.2016 8:50, Ondrej Pokorny wrote: IMO you can suggest a custom designing message that will handle it without hard-coding it into the IDE. Because e.g. the TNotebook page change doesn't work. No need. I added CM_OBJECTINSPECTORSELECT in r52338. Ondrej

Re: [Lazarus] Detect that component selected in OI.

2016-05-22 Thread Ondrej Pokorny
I didn't know it either. But it was quite easy to find out: 1.) Debug Lazarus IDE within another instance. 2.) In the IDE-to-debug create a project with TPageControl and 2 tabs. 3.) Set breakpoint to "TCustomTabControl.ShowCurrentPage" in the debugger IDE. 4.) Change pages with the OI in the

Re: [Lazarus] Jump to implementation

2016-05-17 Thread Ondrej Pokorny
On 17.05.2016 19:01, Graeme Geldenhuys wrote: On 2016-05-17 17:09, Ondrej Pokorny wrote: Tools->Options->CodeTools->General->Jump directly to method body. Nice, I didn't even know that existed. Thanks for sharing. You are welcome. It's quite a new feature, added in Ja

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

2016-05-17 Thread Ondrej Pokorny
On 17.05.2016 18:09, Jürgen Hestermann wrote: I don't use AGGPAS but I assume that the GPC unit is part of the package. If that is true, then it would not be enough to check for the licencing of the package. Of course it is. Please try to find information before you post wrong statements.

Re: [Lazarus] Jump to implementation

2016-05-17 Thread Ondrej Pokorny
On 17.05.2016 18:04, Aradeonas wrote: Hi, When you do Ctrl+Click on a procedure you will go to the interface and then you should hit Ctrl+Shift+Down to go to the implementation, How can I make it like Delphi that when you do Ctrl+Click on a procedure it goes to implementation not interface?

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

2016-05-17 Thread Ondrej Pokorny
On 17.05.2016 10:01, Denis Kozlov wrote: 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

Re: [Lazarus] How do you build lazarus for debugging itself?

2016-05-13 Thread Ondrej Pokorny
On 12.05.2016 22:59, Louis Salkind wrote: Per http://bugs.freepascal.org/view.php?id=30121, I would like to know the recommended way for building lazarus if you want to debug it internally. There's Menu->Tools->Build Lazarus. You can configure it with 'Configure "Build Lazarus" from the same

Re: [Lazarus] HEAPTRACE IFDEF

2016-05-03 Thread Ondrej Pokorny
On 03.05.2016 15:26, Aradeonas wrote: My bad, I missed this http://bugs.freepascal.org/view.php?id=24681 But as it marked as "no change required" but I cant understand why we cant benefit from something like this that have an internal option in project option but we cant control to save the

Re: [Lazarus] TLabel justification not obeyed (Lazarus 1.6 release)

2016-04-21 Thread Ondrej Pokorny
On 21.04.2016 19:23, Bo Berglund wrote: On Thu, 21 Apr 2016 19:14:07 +0200, Ondrej Pokorny <laza...@kluug.net> wrote: Do you use Lazarus trunk? I think I fixed that in trunk (fixed = changed it so that it behaves like in Delphi). I built Lazarus 1.6 from the sources downloaded usi

Re: [Lazarus] TLabel justification not obeyed (Lazarus 1.6 release)

2016-04-21 Thread Ondrej Pokorny
On 21.04.2016 19:14, Ondrej Pokorny wrote: On 21.04.2016 19:07, Bo Berglund wrote: I am making a form with a few spinedits and editboxes for the user to enter config data. After I have dropped these on the form I also add lables before them to hold the description. So at the start I have

Re: [Lazarus] TLabel justification not obeyed (Lazarus 1.6 release)

2016-04-21 Thread Ondrej Pokorny
On 21.04.2016 19:07, Bo Berglund wrote: I am making a form with a few spinedits and editboxes for the user to enter config data. After I have dropped these on the form I also add lables before them to hold the description. So at the start I have Label1, Label2 and Label3 with the name as the

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

2016-04-18 Thread Ondrej Pokorny
On 18.04.2016 12:53, Michael Schnell wrote: On 04/18/2016 12:40 PM, Ondrej Pokorny wrote: No, the equation includes everything along with everybody's interests. Example: You spend X hours to write documentation for A that saves Y hours to Z users that otherwise had to study the code

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

2016-04-18 Thread Ondrej Pokorny
On 18.04.2016 12:27, Michael Schnell wrote: On 04/15/2016 08:50 PM, Florian Klämpfl wrote: It is very very simple for a non-profit/OSS project: more man hours earned back than those which were invested. that would completely ignore the interest of the users of the project. (Which in

Re: [Lazarus] [FEATURE REQUEST] Source Editor: jump to the marked line by clicking on it

2016-04-14 Thread Ondrej Pokorny
On 14.04.2016 17:22, silvioprog wrote: The new Source Editor shows small marks as illustrated in the attached picture. These marks are put in the exactly source line when it has warning, hints, errors, notes etc. However, in the current trunk version, you need to roll the scrollbar to go to

Re: [Lazarus] PDF generator: please test

2016-04-13 Thread Ondrej Pokorny
You've got a bug in the font height functions. They must not be scaled with ToNatural. Try e.g. the Tahoma font from Windows or any other font where FHead.UnitsPerEm<>1000. You'll see wrong results. Your example works because FHead.UnitsPerEm is 1000 for your version of FreeSans. If you use

Re: [Lazarus] fpPDF: set clip rect for text

2016-04-13 Thread Ondrej Pokorny
On 13.04.2016 19:44, Graeme Geldenhuys wrote: On 2016-04-13 18:14, Ondrej Pokorny wrote: TextWidth is already in fpTTF / TFPFontCacheItem. Yes, but that one only handles TTF fonts that the fontcache found. In fpReport I needed to handle Std PDF fonts too - hence I have separate implementations

Re: [Lazarus] fpPDF: set clip rect for text

2016-04-13 Thread Ondrej Pokorny
On 13.04.2016 19:00, Graeme Geldenhuys wrote: IMO multi-line text support should be added into TFPFontCacheItem. >Something like: My only problem with that, and why TextHeight() and TextWidth() is not yet in fpTTF.pas unit, is the 14 PDF built-in fonts. The fontcache might not have actual TTF

Re: [Lazarus] fpPDF: set clip rect for text

2016-04-13 Thread Ondrej Pokorny
On 13.04.2016 11:33, Graeme Geldenhuys wrote: No, I haven't done any work on using the clipping operators yet. In fpReport, text is rather wrapped than clipped. Contributions in this regard are obviously very welcome. I would imagine if the clipping operators are to be implemented, then

Re: [Lazarus] fpTTF: TFPFontCacheItem properties aren't loaded from font

2016-04-13 Thread Ondrej Pokorny
On 13.04.2016 18:30, Graeme Geldenhuys wrote: But you are welcome to make the changes you suggested above. Good, I'll do it! Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] fpPDF: cannot embed DejaVu font

2016-04-13 Thread Ondrej Pokorny
On 13.04.2016 18:06, Michael Van Canneyt wrote: On Wed, 13 Apr 2016, Ondrej Pokorny wrote: On 13.04.2016 17:52, Michael Van Canneyt wrote: I prefer more options, it gives more fine-grained control. We can make a CompressAll = [poCompressText, poCompressFonts, poCompressImages]; constant

[Lazarus] fpTTF: TFPFontCacheItem properties aren't loaded from font

2016-04-13 Thread Ondrej Pokorny
TFPFontCacheItem properties (FamilyName, IsBold, IsItalic, ...) aren't loaded from the font file. I have to assign them explicitely. Is it really wanted? Can a TTF file embed font with various styles? E.g. I have to do now: TPrintFontCacheList = class(TFPFontCacheList) public function

Re: [Lazarus] fpPDF: cannot embed DejaVu font

2016-04-13 Thread Ondrej Pokorny
On 13.04.2016 17:52, Michael Van Canneyt wrote: I prefer more options, it gives more fine-grained control. We can make a CompressAll = [poCompressText, poCompressFonts, poCompressImages]; constant if you want, which will be kept up-to-date with all compression options. No, not needed. As I

Re: [Lazarus] fpPDF: cannot embed DejaVu font

2016-04-13 Thread Ondrej Pokorny
On 13.04.2016 13:42, Michael Van Canneyt wrote: The support for compressed images and embedding of raw JPEG is in SVN too, sample program adapted to demonstrate this (-i -j command line options). Thank you very much! Just 2 points: 1.) Is the "Writeln('Compressing : ',poCompressImages in

[Lazarus] fpPDF: cannot embed DejaVu font

2016-04-13 Thread Ondrej Pokorny
I wanted to use the DejaVuLGCSans.ttf font from http://dejavu-fonts.org/wiki/Download http://sourceforge.net/projects/dejavu/files/dejavu/2.35/dejavu-lgc-fonts-ttf-2.35.zip The created PDF is corrupt. Adobe Acrobat Reader shows: Adobe Illustrator: Opera opens the file without problems,

[Lazarus] fpPDF: set clip rect for text

2016-04-12 Thread Ondrej Pokorny
I need to clip text (e.g. in a table column). Is this already supported? If yes, how can I do it? Thanks, Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] PDF generator: please test

2016-04-10 Thread Ondrej Pokorny
On 10.04.2016 1:02, Graeme Geldenhuys wrote: P.WriteUTF8Text(25, 20, 'Sample Text'); > >xFontCache := TFPFontCacheList.Create; >try > xFont := TFPFontCacheItem.Create('fonts\FreeSans.ttf'); > xFontCache.Add(xFont); > xWidth := xFont.TextWidth('Sample Text', cFontSize) *

Re: [Lazarus] PDF generator: please test

2016-04-09 Thread Ondrej Pokorny
On 08.04.2016 23:35, Graeme Geldenhuys wrote: As note: If I compile with -Cr, I got a Runerror 201 in unit fpparsettf >on line 810. I made a note of that, thanks. The attached patch fixes the range error. Ondrej Index: fpparsettf.pp

Re: [Lazarus] PDF generator: please test

2016-04-09 Thread Ondrej Pokorny
On 09.04.2016 19:42, Graeme Geldenhuys wrote: On 2016-04-09 18:27, Ondrej Pokorny wrote: As is the text width function (for right/center alignment support). That is already implemented in fpReport (Standard PDF built-in fonts and TTF fonts). What I haven't implemented yet is Font Kerning

Re: [Lazarus] EasyLazFreeType demo not working

2016-04-09 Thread Ondrej Pokorny
On 09.04.2016 20:15, Jesus Reyes A. wrote: En Sat, 09 Apr 2016 12:50:42 -0500, Ondrej Pokorny <laza...@kluug.net> escribió: I test the EasyLazFreeType from lazutils package. I cannot make the example work (in directory examples\lazfreetype). The actual problem is in TFreeTypeFont.Lo

[Lazarus] EasyLazFreeType demo not working

2016-04-09 Thread Ondrej Pokorny
I test the EasyLazFreeType from lazutils package. I cannot make the example work (in directory examples\lazfreetype). It stops with this stack trace: #0 HANDLEERRORADDRFRAME(44954876, 0x2adf500, 0x2adf590) at P:\software\FPC\trunk_src\rtl\inc\system.inc:1133 #1 HANDLEERRORADDRFRAMEIND(210,

Re: [Lazarus] PDF generator: please test

2016-04-09 Thread Ondrej Pokorny
On 09.04.2016 19:28, Graeme Geldenhuys wrote: On 2016-04-09 17:27, Ondrej Pokorny wrote: I see that the PDF generator doesn't support image compression. This is a no-go in my eyes. Is anybody working on that or should I try to study it? It's on the todo list, as is Text Compression, Font

Re: [Lazarus] PDF generator: please test

2016-04-09 Thread Ondrej Pokorny
On 09.04.2016 19:00, Michael Van Canneyt wrote: On Sat, 9 Apr 2016, Ondrej Pokorny wrote: I see that the PDF generator doesn't support image compression. This is a no-go in my eyes. Is anybody working on that or should I try to study it? We are not yet working on this, it was on the TODO

Re: [Lazarus] PDF generator: please test

2016-04-09 Thread Ondrej Pokorny
I see that the PDF generator doesn't support image compression. This is a no-go in my eyes. Is anybody working on that or should I try to study it? AFAIR SynPDF uses JPEG compression for images. Ondrej -- ___ Lazarus mailing list

Re: [Lazarus] PDF generator: please test

2016-04-09 Thread Ondrej Pokorny
On 09.04.2016 10:40, Michael Van Canneyt wrote: Fixed in rev. 33456. Thanks :) Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] PDF generator: please test

2016-04-09 Thread Ondrej Pokorny
On 09.04.2016 15:44, wkitt...@windstream.net wrote: On 04/09/2016 04:30 AM, Ondrej Pokorny wrote: Please don't take it as an offence, there is no. I just first opened the PDF, saw the typo and then I had to check in the source code if it is really a typo or the library picks up the wrong

Re: [Lazarus] PDF generator: please test

2016-04-09 Thread Ondrej Pokorny
On 09.04.2016 10:09, Ondrej Pokorny wrote: 4. I cannot make TFPFontCacheItem.TextWidth work. (I was able to make "TextWidth" work, though.) That should read: (I was able to make "*TextHeight*" work, though.) Ondrej -- ___

Re: [Lazarus] PDF generator: please test

2016-04-09 Thread Ondrej Pokorny
Please don't take it as an offence, there is no. I just first opened the PDF, saw the typo and then I had to check in the source code if it is really a typo or the library picks up the wrong character for the PDF. It is a typo, so everything is OK. It would be still great if you corrected it

Re: [Lazarus] PDF generator: please test

2016-04-09 Thread Ondrej Pokorny
On 08.04.2016 23:34, Graeme Geldenhuys wrote: On 2016-04-08 19:55, Ondrej Pokorny wrote: Btw. you have a typo in the Russian "Hello, word". The first word should be "Здравстуйте". Not according to Google Translate. :) [https://translate.google.com/#auto/en/%D0%97%D0%B4%D1%

Re: [Lazarus] PDF generator: please test

2016-04-09 Thread Ondrej Pokorny
I started testing. 1. Why does TFPFontCacheItem.GetFontData create and load TTFFileInfo every time it is called? As a result TTFFileInfo is created and loaded every time TextWidth is called - there's no way to go around this. The TTFFileInfo should be cached IMO. Please consider the attached

Re: [Lazarus] PDF generator: please test

2016-04-08 Thread Ondrej Pokorny
On 08.04.2016 21:29, Graeme Geldenhuys wrote: On 2016-04-08 20:27, Ondrej Pokorny wrote: Correct, when I took the font from Lazarus\components\aggpas as Michael W. Vogel did, everything looks good! Awesome! Just curious. What is your Windows locale set at? Currently Czech (+Windows 10

Re: [Lazarus] PDF generator: please test

2016-04-08 Thread Ondrej Pokorny
On 08.04.2016 21:13, Michael Van Canneyt wrote: Some Vietnamese characters and box drawing characters aren't rendered on my system. That probably depends on the font, Graeme will be able to say more about it. Correct, when I took the font from Lazarus\components\aggpas as Michael W. Vogel

Re: [Lazarus] PDF generator: please test

2016-04-08 Thread Ondrej Pokorny
On 08.04.2016 20:57, Ondrej Pokorny wrote: Sorry, I missed the latest revision. I'll update and report back! I updated and now SetMultiByteConversionCodePage(CP_UTF8) isn't needed. The files are exactly the same (=the same byte contents) as before with SetMultiByteConversionCodePage(CP_UTF8

Re: [Lazarus] PDF generator: please test

2016-04-08 Thread Ondrej Pokorny
Sorry, I missed the latest revision. I'll update and report back! Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] PDF generator: please test

2016-04-08 Thread Ondrej Pokorny
On 08.04.2016 20:43, Michael Van Canneyt wrote: The test program to use to generate a PDF, is however "examples/testfppdf.lpi" I should maybe have mentioned that more explicitly. No problem. Thanks :) (Still it would be fine to provide links where compatible versions of the fonts can be

Re: [Lazarus] PDF generator: please test

2016-04-08 Thread Ondrej Pokorny
On 08.04.2016 20:22, Michael Van Canneyt wrote: We would appreciate it if someone could test the PDF generating demo on a Windows with non-english locale, and report whether the first page of the generated PDF looks OK. I am now testing it. The unittests_console.lpr test fails with: #0

Re: [Lazarus] *** GMX Spamverdacht *** Re: Suggestion for TRadioGroup documentation

2016-04-08 Thread Ondrej Pokorny
On 08.04.2016 20:19, Jürgen Hestermann wrote: Am 2016-04-08 um 18:54 schrieb Ondrej Pokorny: If everybody shared your approach, there wouldn't be anything like FPC and Lazarus. You should change your way of thinking. You mean I should ignore facts? Exactly

Re: [Lazarus] *** GMX Spamverdacht *** Re: Suggestion for TRadioGroup documentation

2016-04-08 Thread Ondrej Pokorny
On 08.04.2016 19:47, Jürgen Hestermann wrote: Am 2016-04-08 um 18:38 schrieb Ondrej Pokorny: On 08.04.2016 19:29, Jürgen Hestermann wrote: But in the same way as others complain here about lack of coders I am complaining about the lack of documentation. Feel free to reduce this lack

Re: [Lazarus] *** GMX Spamverdacht *** Re: Suggestion for TRadioGroup documentation

2016-04-08 Thread Ondrej Pokorny
On 08.04.2016 19:29, Jürgen Hestermann wrote: But in the same way as others complain here about lack of coders I am complaining about the lack of documentation. Feel free to reduce this lack of documentation. Ondrej -- ___ Lazarus mailing list

Re: [Lazarus] *** GMX Spamverdacht *** Re: Suggestion for TRadioGroup documentation

2016-04-08 Thread Ondrej Pokorny
On 08.04.2016 19:32, Jürgen Hestermann wrote: Am 2016-04-08 um 18:18 schrieb Ondrej Pokorny: > This doesn't apply to Alan's problem. We try to document important things. It's not our problem that "it is not enough stressed that functionality XYZ is not available on ZYX". We real

Re: [Lazarus] *** GMX Spamverdacht *** Re: Suggestion for TRadioGroup documentation

2016-04-08 Thread Ondrej Pokorny
On 08.04.2016 19:10, Jürgen Hestermann wrote: Am 2016-04-08 um 18:04 schrieb Ondrej Pokorny: On 08.04.2016 18:56, Jürgen Hestermann wrote: When asking for documentation here I am often answered: Check the code. Yep. Correct. If you think the documentation is bad, check the code and write

Re: [Lazarus] *** GMX Spamverdacht *** Re: Suggestion for TRadioGroup documentation

2016-04-08 Thread Ondrej Pokorny
On 08.04.2016 18:56, Jürgen Hestermann wrote: When asking for documentation here I am often answered: Check the code. Yep. Correct. If you think the documentation is bad, check the code and write it. Alan, you are welcome to modify the domunentation in the LCL and send a patch. You can also

Re: [Lazarus] Search dialog scope

2016-04-07 Thread Ondrej Pokorny
On 07.04.2016 17:17, Graeme Geldenhuys wrote: On 2016-04-07 10:43, Ondrej Pokorny wrote: But the dialog's behaviour has always been 'as in delphi' (or at least as long as I remember) No, it wasn't. Since when is Lazarus design goal now "Delphi IDE compatible"? The LCL ye

Re: [Lazarus] Search dialog scope

2016-04-07 Thread Ondrej Pokorny
I fixed it in r52143. But the behavior is not like it was before. It's now: scope: selected text, *origin: from beginning.* for search on selection. (it was scope: selected text, origin: from cursor. before). Please test, it should fulfill your and my needs ;) Thanks for reporting! Ondrej

Re: [Lazarus] Search dialog scope

2016-04-07 Thread Ondrej Pokorny
On 07.04.2016 11:12, Michael Van Canneyt wrote: But the dialog's behaviour has always been 'as in delphi' (or at least as long as I remember) No, it wasn't. so I don't understand what you changed or why you thought it was necessary ? Read the issue report. Lazarus picked scope "from

Re: [Lazarus] Search dialog scope

2016-04-07 Thread Ondrej Pokorny
On 07.04.2016 9:34, Michael Van Canneyt wrote: Did something change in the search() dialog scope handling ? I changed it a little bit to match Delphi's behavior. The reason is described here: http://mantis.freepascal.org/view.php?id=27039 Since some time, I must alwas set the scope to

Re: [Lazarus] Lazarus 1.6 , Sparta and Qt

2016-04-05 Thread Ondrej Pokorny
On 05.04.2016 11:46, Dimitrios Chr. Ioannidis wrote: So, from your answer, Qt and Sparta are working in trunk but not in 1.6 fixes branch. Are there any plans to merge those fixes/commits to 1.6 branch ? On the contrary, the plan is not to merge them into 1.6. The changes were to deep and

Re: [Lazarus] German umlauts in component names

2016-04-04 Thread Ondrej Pokorny
On 04.04.2016 16:57, Bart wrote: To me it just looks funny to have 2 languages in one file e.g. Just a curiosity from FPC code :) compiler/tokens.pas: _LECKKLAMMER (I assume "linke eckige Klammer") _RECKKLAMMER _LKLAMMER _RKLAMMER rtl/inc/text.inc: Procedure

Re: [Lazarus] German umlauts in component names

2016-04-04 Thread Ondrej Pokorny
On 04.04.2016 12:05, Special wrote: BTW too: Some English words became part of german, like 'Computer' und 'Button'. We don't say "Elektronische Rechenmaschine" any longer, and more and more german book authors say "Button" instead of the strange "Schaltfläche". Yes, I confess, I used

Re: [Lazarus] German umlauts in component names

2016-04-04 Thread Ondrej Pokorny
On 04.04.2016 11:40, Special wrote: 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 it. Sometimes it's better to give people less rights. They do

Re: [Lazarus] PDF generator, try 2

2016-03-31 Thread Ondrej Pokorny
On 31.03.2016 22:58, Michael Van Canneyt wrote: I suspect this can be easily implemented. Synopse pdf is the reason I started fppdf. Synopse is heavily Windows centric, but otherwise quite capable. Yes, correct. I was who implemented exact drawing to Synopse PDF (i.e. rendering to exact

Re: [Lazarus] PDF generator, try 2

2016-03-31 Thread Ondrej Pokorny
On 31.03.2016 20:39, Michael Van Canneyt wrote: On Thu, 31 Mar 2016, Ondrej Pokorny wrote: A quick question (sorry I haven't tested): is word breaking supported and is it possible to get the target rect of multiline and singleline text? It is possible to get a target rect of a single line

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 Ondrej Pokorny
On 31.03.2016 22:38, 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 the output path of

Re: [Lazarus] PDF generator, try 2

2016-03-31 Thread Ondrej Pokorny
A quick question (sorry I haven't tested): is word breaking supported and is it possible to get the target rect of multiline and singleline text? Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Merge request

2016-03-31 Thread Ondrej Pokorny
On 31.03.2016 12:59, Gabor Boros wrote: Please merge 52063, 52029, 51980, 51918, 51914 revisions (grid fixes) from trunk to fixes_1_6. Please add them into http://wiki.freepascal.org/Lazarus_1.6_fixes_branch section Merge requests/Submitted by others. Ondrej --

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

2016-03-29 Thread Ondrej Pokorny
On 29.03.2016 17:59, Dmitry Boyarintsev wrote: Why a patch instead of an IDE plugin? I don't care. It can also be a patch implementing an IDE plugin :) Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

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

2016-03-28 Thread Ondrej Pokorny
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 to create such a function and send a patch to mantis. A good place would be

Re: [Lazarus] Lazarus 1.6 crash

2016-03-27 Thread Ondrej Pokorny
On 27.03.2016 08:36, Ondrej Pokorny wrote: If you use 1.6.0 could you retest with 1_6_fixes? I found it: http://mantis.freepascal.org/view.php?id=29754 I forgot to add it to the merge list. Now it's there. Please retest with the fix. Ondrej

Re: [Lazarus] Lazarus 1.6 crash

2016-03-27 Thread Ondrej Pokorny
On 27.03.2016 03:35, Евгений Поликутин wrote: 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 showing me some kind of hint message

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

2016-03-23 Thread Ondrej Pokorny
The issue is solved. Now LCL includes only public domain images or images under the LCL license. No attribution is needed. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

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

2016-03-23 Thread Ondrej Pokorny
On 23.03.2016 10:22, Graeme Geldenhuys wrote: On 2016-03-23 08:30, Ondrej Pokorny wrote: There are still some icons with unknown origin. I created the following icons for the IDE: Source -> Comment Selection Source -> Uncomment Selection Source -> Toggle Comment in Selectio

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

2016-03-23 Thread Ondrej Pokorny
On 23.03.2016 11:11, Mark Morgan Lloyd wrote: Looking at this a different way, could the TApplication object have provision (not necessarily enabled by default) for displaying a splash form which either had a default set of acknowledgements embedded or could gather them from packages etc.?

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

2016-03-23 Thread Ondrej Pokorny
On 21.03.2016 9:54, Ondrej Pokorny wrote: For now, please take into consideration that your LCL application must acknowledge the Silk Icon Set http://www.famfamfam.com/lab/icons/silk/ I replaced all Silk icons with icons from Tango in r52023. The biggest advantage is that the tango icons

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

2016-03-22 Thread Ondrej Pokorny
On 22.03.2016 7:59, Péter Gábor wrote: Also Fugue Icons (http://p.yusukekamiyamane.com/) are under CC too (mentioned in acknowledgement window of Lazarus). There is a risk to use them in LCL (I don't know if already used), so don't forget about them... Don't worry, we are investigating all

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

2016-03-21 Thread Ondrej Pokorny
On 21.03.2016 10:49, Michael Van Canneyt wrote: Yes, but that does not tell me which of these icons are silk icons ? Or are they all silk icons ? I created a list of LCL icons grouped by license/origin in lcl/images/copyright.txt Ondrej -- ___

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

2016-03-21 Thread Ondrej Pokorny
On 21.03.2016 12:18, Juha Manninen wrote: Ondrej, what is the fuzz about icons now? No author of icons has complained. The famfam icons are free anyway. Lazarus project acknowledges their origin and thus does not violate anything. Correct. Yes, all applications using LCL must acknowledges

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

2016-03-21 Thread Ondrej Pokorny
On 21.03.2016 11:30, Ondrej Pokorny wrote: The problem are user-created LCL applications where the author may not be aware of this licensing issues. If he is, he can easily include the icons by compilingthe IDE with the appropriate define. Sorry, I meant LCL: *If he is, he can easily include

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

2016-03-21 Thread Ondrej Pokorny
On 21.03.2016 11:16, Michael Van Canneyt wrote: ? Will this not cripple the GUI ? Lazarus IDE GUI or your application's GUI? I don't want to end up with an empty button when I update my lazarus :) On 21.03.2016 11:21, Graeme Geldenhuys wrote: On 2016-03-21 10:16, Michael Van Canneyt

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

2016-03-21 Thread Ondrej Pokorny
On 21.03.2016 10:49, Michael Van Canneyt wrote: Yes, but that does not tell me which of these icons are silk icons ? Yes, this is also a problem. Or are they all silk icons ? No, they are not all form silk. Lazarus developers haven't been strict about icon usage both in LCL and Lazarus IDE

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

2016-03-21 Thread Ondrej Pokorny
On 21.03.2016 10:17, Graeme Geldenhuys wrote: On a similar note, the URL listed in the "About -> Acknowledgements" for Tango icons are invalid. I get a "Forbidden - permission denied error" in my web browser. This isn't a real problem because Tango icons are public domain and thus no

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

2016-03-21 Thread Ondrej Pokorny
On 21.03.2016 10:05, Michael Van Canneyt wrote: Can you please be a bit more specific ? Which silk icons are exported exactly ? It depends what units you use in your LCL application. Please see the "lcl/images" folder. All icons that are used by the LCL are located there. See e.g.

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

2016-03-21 Thread Ondrej Pokorny
Corresponding issue report: http://mantis.freepascal.org/view.php?id=29869 Every LCL application includes icons (at least) from the famfamfam (Silk icon set) that are licensed under Creative Commons Attribution 2.5/3.0 license. As a result every LCL application that does not acknowledge them,

Re: [Lazarus] Preview of minimized window on taskbar

2016-03-16 Thread Ondrej Pokorny
On 16.03.2016 9:45, Juha Manninen wrote: Could somebody with Windows knowledge please look at this: http://bugs.freepascal.org/view.php?id=13397 Is it a valid issue still? If yes, then try to apply the patch to current Lazarus trunk. It has been ignored for very long time. I'll check it.

Re: [Lazarus] Desktops ?

2016-03-12 Thread Ondrej Pokorny
On 11.03.2016 17:14, Michael Van Canneyt wrote: On Fri, 11 Mar 2016, Ondrej Pokorny wrote: The OI gets correctly hidden if you load the desktop after the start of the IDE. So the problem is in IDE startup procedure that forces the OI to show. I can confirm this behaviour, yes. Please open

Re: [Lazarus] Desktops ?

2016-03-11 Thread Ondrej Pokorny
The OI gets correctly hidden if you load the desktop after the start of the IDE. So the problem is in IDE startup procedure that forces the OI to show. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Desktops ?

2016-03-11 Thread Ondrej Pokorny
On 11.03.2016 14:18, Michael Van Canneyt wrote: Is the current desktops functionality supposed to restore windows that were hidden ? No. I have 1 desktop defined, "Default". I layouted my windows, closed the object inspector window, and used 'Save current desktop' to save it as default. I

Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Ondrej Pokorny
On 08.03.2016 15:51, Vojtěch Čihák wrote: Thanks, it's a nice idea. I think that selecting in listbox by arrow keys is annoying and slow. i would rather use RadioGroup where the option can be selected faster by Alt+Key. Done, I did even better. You don't need Alt+Key, just Key. Ondrej

Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Ondrej Pokorny
On 08.03.2016 16:00, Michael Van Canneyt wrote: Great. No more wishes from me then. Good job ! :-) Done in r51859, thanks. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Ondrej Pokorny
On 08.03.2016 15:51, Michael Van Canneyt wrote: I introduced the ctrl+shift+x shortcut for the "interactive Code Completion" (class code create). Aha. This was not clear to me ? Just read the very first email from this thread :) So would it be correct to say that ctrl-shift-x =

Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Ondrej Pokorny
Yep, will do. Ondrej On 08.03.2016 15:51, Vojtěch Čihák wrote: Thanks, it's a nice idea. I think that selecting in listbox by arrow keys is annoying and slow. i would rather use RadioGroup where the option can be selected faster by Alt+Key. V. --

Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Ondrej Pokorny
On 08.03.2016 15:20, Mattias Gaertner wrote: For example the interactive completion on a property could give options to add Getter, Setter or add code for an array property. Yes, this is also a valid enhancement. In the dialog there could be an option to create a "property x: Integer read

Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Ondrej Pokorny
On 08.03.2016 15:07, Mattias Gaertner wrote: ctrl-shift-x -> ctrl-shift-alt-x >ctrl-shift-space -> ctrl-shift-alt-space >etc. > >(btw those are some ugly short-cuts) Code completion is ctrl+shift+c. I thought Michael's X was a typo or placeholder. I introduced the ctrl+shift+x shortcut for

Re: [Lazarus] Ann: class code creation

2016-03-08 Thread Ondrej Pokorny
On 08.03.2016 14:15, Michael Van Canneyt wrote: Well. You take yourself as a reference I think. I don't think Jesus' idea wasn't really serious :) Some contra's: 1.) Lazarus IDE doesn't have an API for that. I don't think anybody has time/will to make it - it could be pretty/unnecessarily

Re: [Lazarus] Ann: class code creation

2016-03-07 Thread Ondrej Pokorny
On 08.03.2016 2:29, Luiz Americo Pereira Camara wrote: In the dialog title, i suggest to replace "variable" by "field" Will do! Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

  1   2   3   4   >