Re: [Lazarus] Error when copying to clipboard.

2017-11-08 Thread Ondrej Pokorny via Lazarus
https://bugs.freepascal.org/view.php?id=21453 Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Error in code explorer when using "dotted units"

2017-11-08 Thread Ondrej Pokorny via Lazarus
On 08.11.2017 15:06, African Wild Dog via Lazarus wrote: The code explorer does not display the name of the dotted units correctly. Only the first part of the unit name is displayed (portion before the first period). Please report to mantis. Thanks. Ondrej --

Re: [Lazarus] Why not to apply patch of TListView.CustomSort

2017-11-09 Thread Ondrej Pokorny via Lazarus
On 09.11.2017 11:25, Alexey via Lazarus wrote: Patch is ready and tested I hope Zeljko will look at it soon. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] IDE OI always-on-top: fix

2017-11-12 Thread Ondrej Pokorny via Lazarus
On 12.11.2017 19:53, Alexey via Lazarus wrote: I see reports about OI is always on top; I see it too. Here's simple fix, found it becoz I made patch for these lines, window-type-hints. ... and the saga of fixing Gtk2 window types continues ... :D Ondrej --

Re: [Lazarus] Center text in multi-line hints?

2017-11-15 Thread Ondrej Pokorny via Lazarus
On 15.11.2017 18:46, Donald Ziesig via Lazarus wrote: Hi All! This is just a minor annoyance fpr me (it grates on my sense of esthetics :-)), but is there any way to center the text in a multi-line hint?  In the current app, the hint is for a TPaintBox, but I've occasionally wanted to do this

Re: [Lazarus] Developing a WidgetSet

2017-11-26 Thread Ondrej Pokorny via Lazarus
On 26.11.2017 16:09, Martin Frb via Lazarus wrote: I am not 100% sure, but maybe this is because (afaik) there is a hidden form for the task button. This hidden form can be disabled somewhere, then the main form will be responsible for the task button. On 20/11/2017 09:54, Lubos Pintes via Laz

Re: [Lazarus] String Grid Component

2017-11-27 Thread Ondrej Pokorny via Lazarus
On 27.11.2017 13:43, Torsten Bonde Christiansen via Lazarus wrote: So i am asking if you know of a good string grid component that can handle both things equally well. TDrawGrid. Use a string/data storage of your choice. Ondrej -- ___ Lazarus mailing

Re: [Lazarus] Wish about Lazarus readme

2017-12-10 Thread Ondrej Pokorny via Lazarus
On 10.12.2017 16:44, Mattias Gaertner via Lazarus wrote: AlexeyT via Lazarus hat am 10. Dezember 2017 um 16:12 geschrieben: , because ...? because then users can find authors of Palette icons, menu icons, dialogs icons, and tell them feedback. Installed packages add icons too. All packages

Re: [Lazarus] Highlight matching brackets

2017-12-12 Thread Ondrej Pokorny via Lazarus
On 11.12.2017 21:30, Juha Manninen via Lazarus wrote: Yes. I reverted it in r56695. The change is already in 1.8 so I will mark this one to be merged to fixes_1_8. I thought only bug fixes should go to the fixes branch and not new bugs. Ondrej -- ___

Re: [Lazarus] CHM help package

2017-12-12 Thread Ondrej Pokorny via Lazarus
On 11.12.2017 18:32, Werner Pamler via Lazarus wrote: I cloned your repo on my HD, and went through it step by step while always trying to build lhelp, I could remove everything from the folder chm except for these units: chmfifimain, chmreader, chmsitemap, chmtypes (and chmobjinstance.inc). I

Re: [Lazarus] CHM help package

2017-12-12 Thread Ondrej Pokorny via Lazarus
On 12.12.2017 8:39, Sergey Bodrov via Lazarus wrote: I do dirty hack with HTML codepage coversion just because don't ready to make fixes in TIpHtmlPanel. This is the wrong attitude. Please don't do dirty hacks but make fixes in other components as well. Or ask somebody to help you with it (We

Re: [Lazarus] In trunk, cannot run app from IDE

2017-12-19 Thread Ondrej Pokorny via Lazarus
My problem. Expect a fix soon. Thanks for telling. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] In trunk, cannot run app from IDE

2017-12-19 Thread Ondrej Pokorny via Lazarus
On 20.12.2017 8:40, AlexeyT via Lazarus wrote: On 20.12.2017 10:31, Ondrej Pokorny via Lazarus wrote: My problem. I think last optimizing of Run function makes it Are you sure you use the latest trunk? AFAIK I already fixed that on Sunday in r56771. Ondrej

Re: [Lazarus] In trunk, cannot run app from IDE

2017-12-20 Thread Ondrej Pokorny via Lazarus
On 20.12.2017 9:09, AlexeyT via Lazarus wrote: >Are you sure you use the latest trunk? Updated now, still same bug, picture: Why do you show me a picture of the menu editor for "cannot run app from IDE"? Ondrej -- ___ Lazarus mailing list Lazarus@

Re: [Lazarus] TMSSQLConnection how to specify the server port?

2017-12-27 Thread Ondrej Pokorny via Lazarus
On 27.12.2017 19:00, Bo Berglund via Lazarus wrote: But this was not enough, I also had to do the following: constructor TSvnAuditer.Create; begin FConn := TMSSQLConnection.Create(nil); FQuery := TSQLQuery.Create(nil); FTrans := TSQLTransaction.Create(nil); FConn.Transaction := FTrans;

Re: [Lazarus] TMSSQLConnection how to specify the server port?

2017-12-28 Thread Ondrej Pokorny via Lazarus
On 28.12.2017 0:17, Bo Berglund via Lazarus wrote: As a side thing, I was not aware that Lazarus was building 64 bit applications as default. That is why the 32 bit dll:s would not work I assume. How do I set the project for a Win32 target? The easiest is to use 32bit FPC. But I have done no

Re: [Lazarus] Can the Lazarus IDE match parentheses and begin/ends?

2018-01-05 Thread Ondrej Pokorny via Lazarus
On 05.01.2018 18:41, Bo Berglund via Lazarus wrote: I wonder if it is possible (and if so how) to enable the Lazarus code editor to match the open/close parenthesis and begin/end block delimiters? I find that I often have trouble finding which level of these I am at... I am currently using Lazar

Re: [Lazarus] Package filenames with _package

2018-01-07 Thread Ondrej Pokorny via Lazarus
On 07.01.2018 20:02, Michael Van Canneyt via Lazarus wrote: On Sun, 7 Jan 2018, Mattias Gaertner via Lazarus wrote: On Sun, 7 Jan 2018 10:42:33 +0100 (CET) Michael Van Canneyt via Lazarus wrote: [...] The "problem" is that the pascal unit generated for a package has the same name as the pa

Re: [Lazarus] Package filenames with _package

2018-01-07 Thread Ondrej Pokorny via Lazarus
On 07.01.2018 20:29, Vojtěch Čihák via Lazarus wrote: Hi, click Package->New Package... it immediately opens Save dialog, where you choose filname. It saves xyz.lpk Then click Compile and xyz.pas is autogenerated. :D The question was: it saves xyz.lpk, where can I define that abc.pas is

Re: [Lazarus] Package filenames with _package

2018-01-07 Thread Ondrej Pokorny via Lazarus
On 07.01.2018 20:55, Mattias Gaertner via Lazarus wrote: On Sun, 7 Jan 2018 20:08:31 +0700 Ondrej Pokorny via Lazarus wrote: I didn't know this either. Where can the pas file name be changed? I can't find any entry in the Package Options dialog. Right click on an unit in the pack

Re: [Lazarus] Source | complete code - does nothing.

2018-01-09 Thread Ondrej Pokorny via Lazarus
On 09.01.2018 23:54, Donald Ziesig via Lazarus wrote: Hi All: I was just playing with text editing "toys" such as code completion, outlines, etc.  While doing this I discovered that clicking on the menu entry: Source   Complete Code (with Dialog)   Ctrl-Shift-X does nothing.  No dialog, no

[Lazarus] High-DPI TImageList

2018-01-10 Thread Ondrej Pokorny via Lazarus
I am happy to announce that I uploaded the first version of High-DPI TImageList. The LCL part should be complete, the win32 part as well. There is one backwards compatibility issue: adding sprites - their support is broken (the image is added as one and not cut into several images). I haven't d

Re: [Lazarus] High-DPI TImageList

2018-01-10 Thread Ondrej Pokorny via Lazarus
And the screenshots of a LCL application at 100% and 150%. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] High-DPI TImageList

2018-01-11 Thread Ondrej Pokorny via Lazarus
I added Qt, Qt5 and Gtk2 support. I also rewrote the IDE ImageList editor to support multiple resolutions. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] IDE needs lexers JSON, XML

2018-01-11 Thread Ondrej Pokorny via Lazarus
On 12.01.2018 12:53, Alexey via Lazarus wrote: But I don’t see that IDE supports file filters for xml/json/ini, and seems that these 3 syntaxes not activated for files on editor. Text not colored. XML and INI are supported directly, JSON is supported by JScript highlighter: When I open an

Re: [Lazarus] IDE needs lexers JSON, XML

2018-01-12 Thread Ondrej Pokorny via Lazarus
On 12.01.2018 14:54, AlexeyT via Lazarus wrote: Thank you, now i understand. Yes, xml/ini syntaxes work, only Im confused because ini default hiliting is all black (not nice colors for elements in def config). Feel free to improve it. You can also send a patch so that JSON files are recognize

Re: [Lazarus] Extended filter for Code Completion

2018-01-16 Thread Ondrej Pokorny via Lazarus
On 09.01.2018 0:55, Juha Manninen via Lazarus wrote: I applied the patch from here: https://bugs.freepascal.org/view.php?id=32974 It looks good to me. Please test everybody. Does it have negative side-effects of some kind? The highlight color of the keyword is hard coded and it doesn't change

Re: [Lazarus] Extended filter for Code Completion

2018-01-16 Thread Ondrej Pokorny via Lazarus
On 17.01.2018 13:00, Ondrej Pokorny via Lazarus wrote: On 09.01.2018 0:55, Juha Manninen via Lazarus wrote: I applied the patch from here: https://bugs.freepascal.org/view.php?id=32974 It looks good to me. Please test everybody. Does it have negative side-effects of some kind? The highlight

Re: [Lazarus] Extended filter for Code Completion

2018-01-17 Thread Ondrej Pokorny via Lazarus
On 17.01.2018 22:35, Juha Manninen via Lazarus wrote: Ondrej, please check my fix in r57109. Yeap, thanks. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] IDE Completion window border

2018-01-18 Thread Ondrej Pokorny via Lazarus
On 18.01.2018 16:37, AlexeyT via Lazarus wrote: Window has 1pixel black border. Wish: make border MedGray or LiteGray color, not sure option is needed here, so just change this color to liter. (reason: black border is too contrast with white backgnd). If possible, it will be fixed with https

Re: [Lazarus] IDE Completion window border

2018-01-18 Thread Ondrej Pokorny via Lazarus
On 18.01.2018 16:37, AlexeyT via Lazarus wrote: Window has 1pixel black border. Wish: make border MedGray or LiteGray color, not sure option is needed here, so just change this color to liter. I made the default border color lighter. You may override the color to whatever you like in IDE opti

Re: [Lazarus] High-DPI TImageList

2018-01-27 Thread Ondrej Pokorny via Lazarus
I merged the High-DPI (multi-resolution) ImageList into trunk. I'll document the changes in http://wiki.lazarus.freepascal.org/TImageList soon (tomorrow) and also in http://wiki.freepascal.org/Lazarus_1.10.0_release_notes Ondrej -- ___ Lazarus mailin

Re: [Lazarus] IDE focused window after app terminates

2018-01-27 Thread Ondrej Pokorny via Lazarus
On 28.01.2018 1:16, Graeme Geldenhuys via Lazarus wrote: The annoyance I never noticed before is that when my application terminates (run via F9 from within the IDE), the Main Window of Lazarus IDE always gets focus, instead of the Source Editor window. Do you use a different debug desktop? W

Re: [Lazarus] IDE focused window after app terminates

2018-01-28 Thread Ondrej Pokorny via Lazarus
On 28.01.2018 9:39, Graeme Geldenhuys via Lazarus wrote: On 2018-01-28 05:35, Ondrej Pokorny via Lazarus wrote: Do you use a different debug desktop? Do you mean as is "virtual desktop"? If so, no I don't. No, I mean Lazarus debug desktop: http://wiki.freepascal.org/IDE_W

Re: [Lazarus] High-DPI TImageList

2018-01-29 Thread Ondrej Pokorny via Lazarus
On 28.01.2018 15:33, C Western via Lazarus wrote: On 27/01/18 18:59, Ondrej Pokorny via Lazarus wrote: I merged the High-DPI (multi-resolution) ImageList into trunk. I'll document the changes in http://wiki.lazarus.freepascal.org/TImageList soon (tomorrow) and also in

Re: [Lazarus] High-DPI TImageList

2018-01-29 Thread Ondrej Pokorny via Lazarus
On 29.01.2018 10:02, C Western via Lazarus wrote: On 29/01/18 08:45, Ondrej Pokorny via Lazarus wrote: On 28.01.2018 15:33, C Western via Lazarus wrote: On 27/01/18 18:59, Ondrej Pokorny via Lazarus wrote: I merged the High-DPI (multi-resolution) ImageList into trunk. I'll documen

Re: [Lazarus] High-DPI TImageList

2018-01-29 Thread Ondrej Pokorny via Lazarus
On 29.01.2018 0:18, Werner Pamler via Lazarus wrote: Am 27.01.2018 um 19:59 schrieb Ondrej Pokorny via Lazarus: I merged the High-DPI (multi-resolution) ImageList into trunk. I'll document the changes in http://wiki.lazarus.freepascal.org/TImageList soon (tomorrow) and also in

Re: [Lazarus] Hi-dpi cursors in app?

2018-02-03 Thread Ondrej Pokorny via Lazarus
On 02.02.2018 11:59, AlexeyT via Lazarus wrote: I have cursors https://github.com/Alexey-T/ATSynEdit/tree/master/atsynedit/res they look very bad in win10 scale 150%. What to do here? I haven't looked into the hi-dpi cursors issue yet. But I assume you have to create several .cur files (one

Re: [Lazarus] Now some my icons paint from ImageList incorrect

2018-02-03 Thread Ondrej Pokorny via Lazarus
On 03.02.2018 10:34, AlexeyT via Lazarus wrote: In Laz trunk, 16x16 icons paint incorrect, stretched by x. Picture. Some icons paint ok, but 2nd toolbar icons - incorrect. I assume your icon size does not match the image list size. If this is correct, use AddSlice instead of Add. Ondrej --

Re: [Lazarus] Hi-dpi cursors in app?

2018-02-03 Thread Ondrej Pokorny via Lazarus
On 03.02.2018 10:37, AlexeyT via Lazarus wrote: >But I assume you have to create several .cur files (one file for every resolution you want to support) I don't know how to make .cur file for bigger DPI. It is bitmap with big size? it will paint same way too. Just create a .cur with a bigger

Re: [Lazarus] fpGUI WS update

2018-02-03 Thread Ondrej Pokorny via Lazarus
On 03.02.2018 16:33, AlexeyT via Lazarus wrote: https://bugs.freepascal.org/view.php?id=32647 is also fixed? cannot test yet. Yes. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Hi-dpi cursors in app?

2018-02-03 Thread Ondrej Pokorny via Lazarus
On 03.02.2018 14:11, José Mejuto via Lazarus wrote: The relations between DPI and the size of cursors are roughly as follows:     100% : 32×32 pixel     150% : 48×48 pixel     200% : 64×64 pixel Correct - I completely forgot about it. And Lazarus has High-DPI cursors already (and

Re: [Lazarus] High-DPI TImageList

2018-02-05 Thread Ondrej Pokorny via Lazarus
On 05.02.2018 14:07, Werner Pamler via Lazarus wrote: The high-DPI imagelist adds a new entry to the lfm file, "BitmapAdv". Is this really absolutely necessary in all cases, for example if the imagelist contains only standard-resolution images? The problem is that once a form with an image list

Re: [Lazarus] High-DPI TImageList

2018-02-05 Thread Ondrej Pokorny via Lazarus
On 05.02.2018 14:07, Werner Pamler via Lazarus wrote: The high-DPI imagelist adds a new entry to the lfm file, "BitmapAdv". Is this really absolutely necessary in all cases, for example if the imagelist contains only standard-resolution images? The problem is that once a form with an image list

Re: [Lazarus] High-DPI TImageList

2018-02-05 Thread Ondrej Pokorny via Lazarus
On 05.02.2018 22:29, Bart via Lazarus wrote: On Mon, Feb 5, 2018 at 8:04 PM, Werner Pamler via Lazarus mailto:lazarus@lists.lazarus-ide.org>> wrote: Whenever I see this dialog I go crazy. I never know which button to press, there's a 67% chance to hit the wrong one. The labels text

Re: [Lazarus] High-DPI TImageList

2018-02-05 Thread Ondrej Pokorny via Lazarus
On 05.02.2018 14:07, Werner Pamler via Lazarus wrote: The high-DPI imagelist adds a new entry to the lfm file, "BitmapAdv". Is this really absolutely necessary in all cases, for example if the imagelist contains only standard-resolution images? Fixed. The problem is that once a form with an i

Re: [Lazarus] High-DPI TImageList

2018-02-06 Thread Ondrej Pokorny via Lazarus
On 06.02.2018 7:00, Ondrej Pokorny via Lazarus wrote: On 05.02.2018 14:07, Werner Pamler via Lazarus wrote: The high-DPI imagelist adds a new entry to the lfm file, "BitmapAdv". Is this really absolutely necessary in all cases, for example if the imagelist contains only standard-

Re: [Lazarus] Internal error when compiling LCL

2018-02-06 Thread Ondrej Pokorny via Lazarus
On 06.02.2018 10:34, Lubos Pintes via Lazarus wrote: Hello, During compilation of my project, I encountered this: win32wsmenus.pp(253,1) Error: Internal error 200611031 I didn't touch the mentioned file. FPC version is Free Pascal Compiler version 3.0.4 [2017/10/06] OS Windows 10, SVN trunk 57257

Re: [Lazarus] High-DPI TImageList

2018-02-08 Thread Ondrej Pokorny via Lazarus
First of all, the image list became multi-resolution. You have the new class TCustomImageListResolution that is the new "TCustomImageList". You have to move your custom code there. On 08.02.2018 16:02, lainz via Lazarus wrote: Hi, I have a component BGRAImageList that fixes basically the alpha

Re: [Lazarus] Lazarus trunk: AV on rightClick on Component-pallette: ShowAll

2018-02-09 Thread Ondrej Pokorny via Lazarus
I resolved your report. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Multi-resolution cursors don't work on Win

2018-02-10 Thread Ondrej Pokorny via Lazarus
What about LCL specific cursors. Are the scaled? Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] LCL-fpGUI - SIGSEGV

2018-02-10 Thread Ondrej Pokorny via Lazarus
On 10.02.2018 10:30, Gabor Boros via Lazarus wrote: Hi All, I want to try LCL-fpGUI. Followed the instructions from the below wiki page, a new project compiled successfully but got error at application start. If start from the IDE got SIGSEGV, if start from command line got "Access violation"

Re: [Lazarus] LCL-fpGUI - SIGSEGV

2018-02-10 Thread Ondrej Pokorny via Lazarus
On 10.02.2018 16:43, Graeme Geldenhuys via Lazarus wrote: On 2018-02-10 09:42, Ondrej Pokorny via Lazarus wrote: Disable Application.Scaled - fpGUI doesn't support it yet. Is that for multi-DPI aware applications? If so, at least in the fpGUI 'develop' branch there is built

Re: [Lazarus] LCL-fpGUI - SIGSEGV

2018-02-11 Thread Ondrej Pokorny via Lazarus
On 10.02.2018 18:51, Graeme Geldenhuys via Lazarus wrote: On 2018-02-10 16:31, Ondrej Pokorny via Lazarus wrote: What is missing in LCL-fpGUI binding: TMonitor.PixelsPerInch. In fpGUI, you can grab that information from the global fpgApplication instance. That has been around for years, so

Re: [Lazarus] Nested Components in a Form at runtime

2018-02-15 Thread Ondrej Pokorny via Lazarus
On 15.02.2018 19:03, Andreas Frieß via Lazarus wrote: For testing purposes, i want to create a form at runtime with chained panels - to make it simple. I use this code // Create components ATestForm := TForm.Create(nil); ATestForm.Name:= 'Main'; // Create a Panel ATestPanel :=

Re: [Lazarus] Form events firing order and count

2018-02-18 Thread Ondrej Pokorny via Lazarus
On 18.02.2018 0:59, Graeme Geldenhuys via Lazarus wrote: Now comes the BIG question... Does LCL have a reference implementation? Yes, it does. It is Delphi. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.or

Re: [Lazarus] Form events firing order and count

2018-02-18 Thread Ondrej Pokorny via Lazarus
On 18.02.2018 11:44, Giuliano Colla wrote: Il 18/02/2018 11:09, Ondrej Pokorny via Lazarus ha scritto: On 18.02.2018 0:59, Graeme Geldenhuys via Lazarus wrote: Now comes the BIG question... Does LCL have a reference implementation? Yes, it does. It is Delphi. That's not true, as f

Re: [Lazarus] Form events firing order and count

2018-02-18 Thread Ondrej Pokorny via Lazarus
On 18.02.2018 19:08, Graeme Geldenhuys via Lazarus wrote: On 2018-02-18 10:44, Giuliano Colla via Lazarus wrote: To achieve the Delphi behavior in Lazarus I should code: MyLabel.Color := clRed; Application:ProcessMessages; MyLabel.Color := clGreen; If that's true No, it is not true. Ondrej

Re: [Lazarus] Form events firing order and count

2018-02-18 Thread Ondrej Pokorny via Lazarus
On 18.02.2018 17:19, Giuliano Colla wrote: Il 18/02/2018 11:54, Ondrej Pokorny ha scritto: What events are generated? onFormPaint Do you mean TForm.OnPaint? --- No, no, no, no. Setting MyLabel.Color and any other visual property does NOT fire any paint event/method/whatever - neither in

Re: [Lazarus] Form events firing order and count

2018-02-18 Thread Ondrej Pokorny via Lazarus
On 18.02.2018 19:06, Graeme Geldenhuys via Lazarus wrote: On 2018-02-18 10:09, Ondrej Pokorny via Lazarus wrote: Yes, it does. It is Delphi. 1) Not everybody owns a copy of Delphi to compare. Since when is it a good idea to have a Open Source project rely on a Commercial product. Come on

Re: [Lazarus] Form events firing order and count

2018-02-18 Thread Ondrej Pokorny via Lazarus
On 18.02.2018 19:48, Graeme Geldenhuys via Lazarus wrote: I understood that, I just wasn't sure if that was a "FPC goal" like the statement mentioned the D7 goal. I assumed any features post D7 was just a bonus - thanks to development contributions. Anyway, my original message was more targete

Re: [Lazarus] Form events firing order and count

2018-02-18 Thread Ondrej Pokorny via Lazarus
On 18.02.2018 20:39, Michael Van Canneyt via Lazarus wrote: On Sun, 18 Feb 2018, Ondrej Pokorny via Lazarus wrote: The FPC team just forgot to update an outdated page. It's already fixed in SVN :) I expected Graeme to send a patch and help a little bit but you were obviously eager t

Re: [Lazarus] Form events firing order and count

2018-02-19 Thread Ondrej Pokorny via Lazarus
On 19.02.2018 13:51, Michael Van Canneyt via Lazarus wrote: If your code relies on implementation details, it won't always work obviously. But if you spot differences in behaviour, you can notify the devs. There are then 2 options: - They try to fix the behaviour. - They explain why it works

Re: [Lazarus] Strange ComboBox behavior (Windows)

2018-02-20 Thread Ondrej Pokorny via Lazarus
On 20.02.2018 8:40, Rolf Wetjen(rolf.wetjen--- via Lazarus wrote: Is there any interest in a patch to solve MS Windows issues although the patch would add some windows specific code to stdctrls.pp and customcombobox.inc? I've a solution for the "AutoSelect=false" one and an idea for the second

Re: [Lazarus] Garbage writing to console

2018-02-22 Thread Ondrej Pokorny via Lazarus
On 22.02.2018 12:21, Luca Olivetti via Lazarus wrote: Lazarus 1.8.0, fpc 3.0.4, windows application (with "win32 gui application unchecked") or console application (using LazUTF8). File encoding utf-8 without bom. writeln('áéí') produces garbage, contrary to what's said in http://wiki.freepas

Re: [Lazarus] Garbage writing to console

2018-02-22 Thread Ondrej Pokorny via Lazarus
OK, sorry. I wrote bullshit. But still, you should ask on fpc-devel list regarding compiler issues - the right people are there. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Garbage writing to console

2018-02-23 Thread Ondrej Pokorny via Lazarus
On 23.02.2018 8:46, Mattias Gaertner via Lazarus wrote: But this is a Lazarus issue. Why? Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Garbage writing to console

2018-02-23 Thread Ondrej Pokorny via Lazarus
On 23.02.2018 9:23, Mattias Gaertner via Lazarus wrote: On Fri, 23 Feb 2018 08:56:55 +0100 Ondrej Pokorny via Lazarus wrote: On 23.02.2018 8:46, Mattias Gaertner via Lazarus wrote: But this is a Lazarus issue. Why? Because the wiki page is unclear. writeln('áéí'); // works

Re: [Lazarus] Garbage writing to console

2018-02-23 Thread Ondrej Pokorny via Lazarus
arbitrary bytes. Maybe some compiler guru can confirm this. Compiler gurus are reading fpc-devel :) On 22.02.2018 22:26, Ondrej Pokorny via Lazarus wrote: > It looks like writeln ignores the codepage for constant strings but checks it for "normal" strings. You should ask on fpc-d

Re: [Lazarus] Strange ComboBox behavior (Windows)

2018-03-02 Thread Ondrej Pokorny via Lazarus
On 28.02.2018 14:02, Rolf Wetjen(rolf.wet...@mail.de) wrote: I was in doubt but to my own surprise it's possible to patch only win32wsstdctrls.pp for both issues. Patch is attached. Are you the one to apply it or shall I do something else? Please create a bug report on http://mantis.freepascal

Re: [Lazarus] Color and transparancy selection ?

2018-03-22 Thread Ondrej Pokorny via Lazarus
On 22.03.2018 20:49, Michael Van Canneyt via Lazarus wrote: Is there a version of TColorDialog which allows to specify an Alpha channel ? Not in the LCL itself. Maybe you can try to build one using http://wiki.lazarus.freepascal.org/mbColorLib#RGB_color_pickers I didn't use it myself, it jus

Re: [Lazarus] Color and transparancy selection ?

2018-03-23 Thread Ondrej Pokorny via Lazarus
On 22.03.2018 21:41, Michael Van Canneyt via Lazarus wrote: On Thu, 22 Mar 2018, Ondrej Pokorny via Lazarus wrote: On 22.03.2018 20:49, Michael Van Canneyt via Lazarus wrote: Maybe you can try to build one using http://wiki.lazarus.freepascal.org/mbColorLib#RGB_color_pickers It looks like

Re: [Lazarus] Color and transparancy selection ?

2018-03-23 Thread Ondrej Pokorny via Lazarus
On 23.03.2018 1:25, Werner Pamler via Lazarus wrote: Looking at the demo of the mbColorLib again after some time I see now a terrible flicker on Windows. Ondrej, I fear your change in double-buffering killed a majority of third-party components. It may take some time until all authors will fix

Re: [Lazarus] Color and transparancy selection ?

2018-03-23 Thread Ondrej Pokorny via Lazarus
On 23.03.2018 8:11, Michael Van Canneyt via Lazarus wrote: Since I don't want dependencies on other packages - only the LCL can be used - this is not an option... Unfortunately LCL always uses native widgets - including dialogs. Non-native and custom widgets (that are not in the VCL) are left

Re: [Lazarus] Color and transparancy selection ?

2018-03-23 Thread Ondrej Pokorny via Lazarus
On 23.03.2018 10:51, Michael Van Canneyt via Lazarus wrote: I need it for FPReport, meaning it must be in Lazarus itself, so I will write a minimalistic dialog that supports Alpha and include it in the report designer package. Yes, that makes sense. In Lazarus itself the same problem is solve

Re: [Lazarus] Changes to bugreport #33331 completely changes long standing behaviour

2018-04-04 Thread Ondrej Pokorny via Lazarus
You have to list all LCL incompatibilities in the release notes. For 1.9/1.10 they are located at http://wiki.freepascal.org/Lazarus_1.10.0_release_notes Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/li

Re: [Lazarus] Autocompletion - ":" char spaces

2018-04-21 Thread Ondrej Pokorny via Lazarus
On 21.04.2018 10:58, AlexeyT via Lazarus wrote: In the pic you see that some vars shown with " : ", and some with ":", different number of spaces near ":". Pls make one style. Yes, that's true - the code style should be polished in the identifier completion window, including the parameters sec

Re: [Lazarus] A bitmap strange issue

2018-04-22 Thread Ondrej Pokorny via Lazarus
On 22.04.2018 12:38, Giuliano Colla via Lazarus wrote: Il 21/04/2018 18:07, Vojtěch Čihák via Lazarus ha scritto: @ MyBitmap := Image1.Picture.Bitmap; This line only copies pointer, but Image1.Picture.Bitmap belongs to Image1 and it should care itself. That's what I had guessed, but this

Re: [Lazarus] A bitmap strange issue

2018-04-22 Thread Ondrej Pokorny via Lazarus
On 22.04.2018 17:06, Giuliano Colla via Lazarus wrote: Il 22/04/2018 13:49, Ondrej Pokorny via Lazarus ha scritto: Do you really mean that Image1.Picture.Bitmap.SomeProperty := SomeValue; should apply SomeProperty := SomeValue on a copied object of Bitmap and produce a memory leak? No, I

Re: [Lazarus] Cool IDE add-on idea

2018-04-24 Thread Ondrej Pokorny via Lazarus
On 24.04.2018 19:28, Graeme Geldenhuys via Lazarus wrote: Back to Lazarus - there are some dialogs that totally annoying me because they were not designed with keyboard users in mind. ie: Wrong default actions, or no default actions, wrong default focus item, incorrect tab order etc. I am quite

Re: [Lazarus] Cool IDE add-on idea

2018-04-24 Thread Ondrej Pokorny via Lazarus
On 24.04.2018 21:41, Graeme Geldenhuys via Lazarus wrote: On 2018-04-24 19:36, Ondrej Pokorny via Lazarus wrote: The "Source -> Enclose in IFDEF" dialog comes to mind. I don't see a problem here. Can you be specific? I've just retested with Lazarus Trunk, and indeed

Re: [Lazarus] Cool IDE add-on idea

2018-04-24 Thread Ondrej Pokorny via Lazarus
On 24.04.2018 22:14, Ondrej Pokorny via Lazarus wrote: On 24.04.2018 21:41, Graeme Geldenhuys via Lazarus wrote: Currently I can't tab between toolbar buttons, can't trigger the "More" dropdown. Unfortunately that's how the TToolBar works. No chance to change it.

Re: [Lazarus] Canvas cannot draw properly if has an alpha channel?

2018-04-24 Thread Ondrej Pokorny via Lazarus
On 25.04.2018 2:35, Anthony Walter via Lazarus wrote: I'm not sure, but I think all TCanvas drawing operations on graphic objects with a pf32bit pixel format don't work. Essentially that are read only surfaces. Is this intended and a won't fix problem or is there a chance someone is willing to

Re: [Lazarus] Cool IDE add-on idea

2018-04-24 Thread Ondrej Pokorny via Lazarus
On 25.04.2018 0:03, Graeme Geldenhuys via Lazarus wrote: My other suggestion was to simply place a TActionList on each Package windows. Then define all the actions with associated shortcuts. The Captions of each TAction doesn't need to contain the & symbol for a hotkey (though highly recommended)

Re: [Lazarus] Canvas cannot draw properly if has an alpha channel?

2018-04-25 Thread Ondrej Pokorny via Lazarus
On 25.04.2018 12:18, Anthony Walter wrote: For years I have my own solution that works , but I am interested in LCL TCanvas someday working correctly without 3rd party add ins. Unfortunately, I have experienced the same issues. Ondrej --

Re: [Lazarus] Canvas cannot draw properly if has an alpha channel?

2018-04-25 Thread Ondrej Pokorny via Lazarus
On 25.04.2018 12:24, Ondrej Pokorny via Lazarus wrote: On 25.04.2018 12:18, Anthony Walter wrote: For years I have my own solution that works <https://www.youtube.com/watch?v=P5MPv_GOzRk>, but I am interested in LCL TCanvas someday working correctly without 3rd party add ins. Unfortu

Re: [Lazarus] Canvas cannot draw properly if has an alpha channel?

2018-04-25 Thread Ondrej Pokorny via Lazarus
On 25.04.2018 13:00, Giuliano Colla via Lazarus wrote: Il 25/04/2018 06:12, Ondrej Pokorny via Lazarus ha scritto: 2.) Use FPC graphics classes/functions without the LCL overhead. Where are they located? FPC\packages\fcl-image\src\ Ondrej

Re: [Lazarus] Canvas cannot draw properly if has an alpha channel?

2018-04-25 Thread Ondrej Pokorny via Lazarus
On 25.04.2018 16:30, Anthony Walter via Lazarus wrote: Suggestions? You obviously know much more in this topic than I do, so it's hard to comment for me. Just a note about win32: AFAIK the LCL supports only Windows XP and up officially since 1.8. So there is no problem to switch to GDI+.

Re: [Lazarus] What is the hot key to jump to the unit's implementation uses clause

2018-04-26 Thread Ondrej Pokorny via Lazarus
On 26.04.2018 12:00, Dennis via Lazarus wrote: From time to time, I need to add an unit to the uses clause of the implement section of the unit. Just use the search function of the Key Mappings IDE options... It has a tool button as well. Ondrej -- _

Re: [Lazarus] LCL TImageList method wish

2018-04-26 Thread Ondrej Pokorny via Lazarus
On 26.04.2018 11:00, AlexeyT via Lazarus wrote: this patch https://github.com/graemeg/lazarus/commit/0ff493e8cf2b6e4f1c971561db87d2579396eacd makes the same for 4 WS'es: it gets bitmap from imagelist for some resolution. Wish: make TImageList.GetBitmapForResulution and make this patch simpler.

Re: [Lazarus] Note about LCL GetDefaultGlyph

2018-05-01 Thread Ondrej Pokorny via Lazarus
On 01.05.2018 16:48, AlexeyT via Lazarus wrote: + +function GetDefaultGlyph(ResourceName: string; ScalePercent: Integer = 100): TCustomBitmap; +begin +  Result := TPortableNetworkGraphic.Create; +  if ScalePercent<>100 then +    ResourceName := ResourceName+'_'+IntToStr(ScalePercent); +  Result

Re: [Lazarus] Make of revision 57762 failing under Raspbian

2018-05-01 Thread Ondrej Pokorny via Lazarus
On 01.05.2018 19:25, Joe via Lazarus wrote: What's wrong? Is it a mistake of the operator or a software bug? Should I file a mantis report? It's my mistake. Please retest with r57764. I may have forgotten more places. Ondrej -- ___ Lazarus mailing

Re: [Lazarus] Boolean component Properties saved in *.lfm

2018-05-03 Thread Ondrej Pokorny via Lazarus
On 03.05.2018 10:10, Landmesser John via Lazarus wrote: i think thats not correct: set these AutoEncodeStrings settings save and restart Lazarus, reopen the project:AutoEncodeStrings is now false, despite the settings in ZConnection1.Properties to the right. ... and Strings like "Büdingen"

Re: [Lazarus] Boolean component Properties saved in *.lfm

2018-05-03 Thread Ondrej Pokorny via Lazarus
On 03.05.2018 10:35, Ondrej Pokorny via Lazarus wrote: On 03.05.2018 10:10, Landmesser John via Lazarus wrote: i think thats not correct: set these AutoEncodeStrings settings save and restart Lazarus, reopen the project:AutoEncodeStrings is now false, despite the settings in ZConnection1

Re: [Lazarus] wikirevenge - wikicare

2018-05-03 Thread Ondrej Pokorny via Lazarus
On 03.05.2018 19:57, Dmitry Boyarintsev via Lazarus wrote: I couldn't help but to search mentioning of mORMot on the wiki.freepascal.org . To the great surprise the page is there, but was populated with not a nice words towards the authors of the framework. It was c

Re: [Lazarus] Component Icons are gone with rev 57870

2018-05-09 Thread Ondrej Pokorny via Lazarus
On 09.05.2018 12:44, Landmesser John via Lazarus wrote: no component  icons anymore with Lazarus 1.9.0 r57870 FPC 3.0.4 i386-win32-win32/win64 Example ZeosLib, fpspreadsheet ... reverted to 57860 and all icons are back Fixed in r57871, if you mean "some component icons are not showing" and n

Re: [Lazarus] Lazarus Bugtracker/Issue 30544

2018-05-12 Thread Ondrej Pokorny via Lazarus
On 12.05.2018 12:09, Mattias Gaertner via Lazarus wrote: On Sat, 12 May 2018 12:04:32 +0200 Joe via Lazarus wrote: Am 12.05.2018 um 11:46 schrieb Mattias Gaertner via Lazarus: I tested with 57898, but i think, Ondrej already had fixed it one version earlier. I doubt that 57897 or 8 fixes the

Re: [Lazarus] New Image Lists question

2018-05-23 Thread Ondrej Pokorny via Lazarus
On 23.05.2018 16:07, Vojtěch Čihák via Lazarus wrote: I have application where user can choose size of toolbars, i.e. I have several image lists named IL16, IL20, IL24, IL32, IL48 and I switch them in property TToolBar.Images. In meanwhile, TImageList was redesigned to work with hi-DPI desktop

Re: [Lazarus] New Image Lists question

2018-05-23 Thread Ondrej Pokorny via Lazarus
I forgot: you will probably want to use TImageList.OnGetWidthForPPI so that the original resolution 32px is used for 20px images on 150% instead of 30px (20*1.5 = 30). See the examples/imagelist_highdpi_designtime demo. Ondrej -- ___ Lazarus mailing

Re: [Lazarus] New Image Lists question

2018-05-23 Thread Ondrej Pokorny via Lazarus
On 23.05.2018 19:18, Vojtěch Čihák via Lazarus wrote: Thanks, I saw the demos, I see now how it works. But how can I add multiple resolution to ImageList? Is it possible only with suffixes and all images must be in the same directory? I need to push 10 resolution to one ImageList. Default res

<    1   2   3   4   5   >