From listbox at martoks-place.de Mon Jan 1 20:17:31 2018 From: listbox at martoks-place.de (Martok) Date: Mon, 1 Jan 2018 20:17:31 +0100 Subject: [Lazarus] Byte-Alignment of TBitmap Message-ID: Hi all, this showed up in the Discussion around 32876 and 30509: > LCL Tbitmap supports 1,24 and 32 bit images from what I see. That is indeed true: luma.PixelFormat:= pf8bit; luma.SetSize(100, 100); // now: luma.RawImage.Description.Depth == 24 That of course means that the alignment for RawImage access (using Scanline) is wrong, and code ported from Delphi doesn't work at all. How is one supposed to do this? Or is that a not implemented feature? -- Regards, Martok Ceterum censeo b32079 esse sanandam. From marc at dommelstein.nl Mon Jan 1 20:22:15 2018 From: marc at dommelstein.nl (Marc Weustink) Date: Mon, 01 Jan 2018 20:22:15 +0100 Subject: [Lazarus] Byte-Alignment of TBitmap In-Reply-To: References: Message-ID: <1060F2C6-C000-4CEF-94A9-526E6642C8BA@dommelstein.nl> On January 1, 2018 8:17:31 PM GMT+01:00, Martok via Lazarus wrote: >Hi all, > >this showed up in the Discussion around 32876 and 30509: >> LCL Tbitmap supports 1,24 and 32 bit images from what I see. > >That is indeed true: > luma.PixelFormat:= pf8bit; > luma.SetSize(100, 100); > // now: luma.RawImage.Description.Depth == 24 > >That of course means that the alignment for RawImage access (using >Scanline) is >wrong, and code ported from Delphi doesn't work at all Why does than mean that the alignment is wrong? Based on what did you draw that conclusion? >How is one supposed to do this? Or is that a not implemented feature? Iirc it is compatible Marc From listbox at martoks-place.de Mon Jan 1 20:45:05 2018 From: listbox at martoks-place.de (Martok) Date: Mon, 1 Jan 2018 20:45:05 +0100 Subject: [Lazarus] Byte-Alignment of TBitmap In-Reply-To: <1060F2C6-C000-4CEF-94A9-526E6642C8BA@dommelstein.nl> References: <1060F2C6-C000-4CEF-94A9-526E6642C8BA@dommelstein.nl> Message-ID: Am 01.01.2018 um 20:22 schrieb Marc Weustink via Lazarus: > Why does than mean that the alignment is wrong? Based on what did you draw that conclusion? The value of PixelFormat has little relation to the actual pixel format, except for 1bpp and 32bpp. For example, a pf8bit bitmap should have 1 Byte per pixel, so the ScanLine is effectively a PByteArray. This is not the case for LCL-bitmaps... -- Regards, Martok Ceterum censeo b32079 esse sanandam. From nc-gaertnma at netcologne.de Tue Jan 2 12:23:10 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Tue, 2 Jan 2018 12:23:10 +0100 Subject: [Lazarus] LCL uses fcl-image In-Reply-To: <2b35f6f0-51d9-c2bc-27ae-9e5f362c7b75@ya.ru> References: <60aaddbb-c696-be47-f9ce-e039643a1edc@avidsoft.com.hk> <2b35f6f0-51d9-c2bc-27ae-9e5f362c7b75@ya.ru> Message-ID: <20180102122310.6bbb93f2@limapholos.matflo.wg> On Sun, 31 Dec 2017 16:33:30 +0300 AlexeyT via Lazarus wrote: > >simple LCL applications are so large: graphics drags in fcl-image, > which includes full support for JPEG, > > you are right, graphics.pp-- > > uses >   // RTL + FCL >   SysUtils, Math, Types, Classes, Contnrs, Laz_AVL_Tree, >   FPImage, FPCanvas, >   FPWriteBMP,              // bmp support >   FPWritePNG, PNGComn,     // png support >   FPReadPNM, FPWritePNM,   // PNM (Portable aNyMap) support >   FPReadJpeg, FPWriteJpeg, // jpg support >   FPReadTiff, FPTiffCmn,   // tiff support >   FPReadGif, > > > good to have ifdef-s here, to disable parts of fcl-image. I added ifdefs: -dDisableLCLGIF -dDisableLCLJPEG -dDisableLCLPNM -dDisableLCLTIFF Mattias From nc-gaertnma at netcologne.de Tue Jan 2 12:38:48 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Tue, 2 Jan 2018 12:38:48 +0100 Subject: [Lazarus] fix for issue 32894 In-Reply-To: <3fa8f1b7-172a-9a98-83a0-6583679e7cf9@ya.ru> References: <3fa8f1b7-172a-9a98-83a0-6583679e7cf9@ya.ru> Message-ID: <20180102123848.427647fe@limapholos.matflo.wg> On Sun, 31 Dec 2017 17:38:21 +0300 AlexeyT via Lazarus wrote: > +    // Duplicate logic in CreateFontIndirect > +    if not Win32WidgetSet.MetricsFailed and SameText(Font.Name, > DefFontData.Name) then > > Issue 32894 > please, change "and SameText(..)" to > > and IsFontNameDefault(Font.Name) > (func in LCLProc made by me) Applied. Mattias From giuliano.colla at fastwebnet.it Tue Jan 2 14:11:43 2018 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Tue, 2 Jan 2018 14:11:43 +0100 Subject: [Lazarus] Run parameters and Launching application bug? Message-ID: I seldom use launching applications from a terminal window, so I happened to notice only recently what appears to me to be a regression from older Lazarus versions. In the Run Parameters window, selecting "Use launching application" currently disables "Command line parameters" (Lazarus 1.6, 1.8 and trunk) This appears rather inconsistent with the fact that a $(TargetCmdLine) macro in the launching application parameters properly picks up the content of the disabled "Command line parameters". If you are using a launching application and need to change the command line parameters you're forced to deselect "Use launching application", edit your command line parameters, and then re-enable "Use launching application". Is there any rationale behind this rather odd behaviour, introduced somewhere after Lazarus 1.4.4? Giuliano From vojtech.cihak at atlas.cz Tue Jan 2 16:01:17 2018 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Tue, 02 Jan 2018 16:01:17 +0100 Subject: [Lazarus] =?utf-8?q?Rebuilding_IDE_Gtk/Qt?= Message-ID: <20180102160117.7DFA82CE@atlas.cz> Hi,   I sometimes experienced that IDE does not follow the value in combobox in Tools -> Configure "Build Lazarus". Setting Qt is ignored and IDE rebuilds to GTk. But when I change the value in Project Options -> Additions and Overrides -> LCL Widget Type and then I rebuild IDE, it rebuilds to correct widgetset. However, it is not reproducible always, so I'd like to ask if someone experienced this too.   Note that it is not new, it was there before 1.8.   Thanks, V. From zeljko at holobit.net Tue Jan 2 18:08:18 2018 From: zeljko at holobit.net (zeljko) Date: Tue, 2 Jan 2018 18:08:18 +0100 Subject: [Lazarus] Rebuilding IDE Gtk/Qt In-Reply-To: <20180102160117.7DFA82CE@atlas.cz> References: <20180102160117.7DFA82CE@atlas.cz> Message-ID: On 02.01.2018 16:01, Vojtěch Čihák via Lazarus wrote: > Hi, > > I sometimes experienced that IDE does not follow the value in combobox in Tools -> Configure "Build Lazarus". Setting Qt is ignored and IDE rebuilds to GTk. But when I change the value in Project Options -> Additions and Overrides -> LCL Widget Type and then I rebuild IDE, it rebuilds to correct widgetset. > However, it is not reproducible always, so I'd like to ask if someone experienced this too. > > Note that it is not new, it was there before 1.8. I can confirm that. Don't know how to reproduce - it just happens sometimes especially if current project ws is eg gtk2. Laz rebuild looks into project ws, not one mentioned in laz build dialog. Similar problem perists with build many modes. I've spotted that max 2 months ago ... eg I'm using linux 64bit qtlcl for my builds , all builds are qt based (win32, linux32,linux64) and for win32 & linux32 cpu = i386, for win32 os = win32, for linux32 and linux64 it's "Default", but sometimes when I rebuild all modes, after win32 is finished (note that win32 OS = win32, not "Default"), it tries to build next one as win32 OS - eg linux 64bit, and stops since I don't have win64 compiler ...do OS target isn't updated. zeljko From zeljko at holobit.net Tue Jan 2 18:08:18 2018 From: zeljko at holobit.net (zeljko) Date: Tue, 2 Jan 2018 18:08:18 +0100 Subject: [Lazarus] Rebuilding IDE Gtk/Qt In-Reply-To: <20180102160117.7DFA82CE@atlas.cz> References: <20180102160117.7DFA82CE@atlas.cz> Message-ID: On 02.01.2018 16:01, Vojtěch Čihák via Lazarus wrote: > Hi, > > I sometimes experienced that IDE does not follow the value in combobox in Tools -> Configure "Build Lazarus". Setting Qt is ignored and IDE rebuilds to GTk. But when I change the value in Project Options -> Additions and Overrides -> LCL Widget Type and then I rebuild IDE, it rebuilds to correct widgetset. > However, it is not reproducible always, so I'd like to ask if someone experienced this too. > > Note that it is not new, it was there before 1.8. I can confirm that. Don't know how to reproduce - it just happens sometimes especially if current project ws is eg gtk2. Laz rebuild looks into project ws, not one mentioned in laz build dialog. Similar problem perists with build many modes. I've spotted that max 2 months ago ... eg I'm using linux 64bit qtlcl for my builds , all builds are qt based (win32, linux32,linux64) and for win32 & linux32 cpu = i386, for win32 os = win32, for linux32 and linux64 it's "Default", but sometimes when I rebuild all modes, after win32 is finished (note that win32 OS = win32, not "Default"), it tries to build next one as win32 OS - eg linux 64bit, and stops since I don't have win64 compiler ...do OS target isn't updated. zeljko From vojtech.cihak at atlas.cz Tue Jan 2 22:21:04 2018 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Tue, 02 Jan 2018 22:21:04 +0100 Subject: [Lazarus] =?utf-8?q?Rebuilding_IDE_Gtk/Qt?= In-Reply-To: 0000000083680000c0d001524ff8 References: 0000000083680000c0d001524ff8 Message-ID: <20180102222104.D14A16F5@atlas.cz> Thanks to zeljko for confirming.   I was able to reproduce right now:   I have my Lazarus 1.9.0 r56925M FPC 3.0.4 x86_64-linux-qt. I started new project. I saved it. I open Project Options -> Addition and Overrides and added LCLWidgetType "gtk2". I run the project once just to see it is really GTk2 - it is. Now I enter Tools -> Configure Bulid Lazarus. Options are Debug IDE, LCL WIdgetType = qt. I don't change them. I switch to "Clean common files" and click Build. After restart I have Lazarus 1.9.0 r56925M FPC 3.0.4 x86_64-linux-gtk2.   V.   ______________________________________________________________ > Od: Vojtěch Čihák via Lazarus > Komu: Lazarus mailing list > Datum: 02.01.2018 16:01 > Předmět: [Lazarus] Rebuilding IDE Gtk/Qt > Hi,   I sometimes experienced that IDE does not follow the value in combobox in Tools -> Configure "Build Lazarus". Setting Qt is ignored and IDE rebuilds to GTk. But when I change the value in Project Options -> Additions and Overrides -> LCL Widget Type and then I rebuild IDE, it rebuilds to correct widgetset. However, it is not reproducible always, so I'd like to ask if someone experienced this too.   Note that it is not new, it was there before 1.8.   Thanks, V. -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From vojtech.cihak at atlas.cz Fri Jan 5 02:59:56 2018 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Fri, 05 Jan 2018 02:59:56 +0100 Subject: [Lazarus] =?utf-8?q?Rebuilding_IDE_Gtk/Qt?= In-Reply-To: 00000000836e0000cd1c01525059 References: 00000000836e0000cd1c01525059 Message-ID: <20180105025956.84F22103@atlas.cz> I found the reason but to make a patch is beyond my powers. When I used the steps described below, I got this in console:   NOTE: Window with stalled focus found!, faking focus-out event NOTE: Window with stalled focus found!, faking focus-out event Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-linux-gtk2 New=x86_64-linux-qt FPC=False LCL=True HERE1 lpQT Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-linux-qt New=x86_64-linux-gtk2 FPC=False LCL=True HERE2 lpQT HERE3 lpQT Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-linux-gtk2 New=x86_64-linux-qt FPC=False LCL=True Note: (lazarus) deleted backup "/home/v1/Lazarus_Qt/lazarus/lazarus.old" Note: (lazarus) renamed file "/home/v1/Lazarus_Qt/lazarus/lazarus" to "/home/v1/Lazarus_Qt/lazarus/lazarus.old" Info: (lazarus) Execute Title="Build IDE" Info: (lazarus) Working Directory="/home/v1/Lazarus_Qt/lazarus/" Info: (lazarus) Executable="/usr/bin/make" Info: (lazarus) Param[0]="idepkg" Info: (lazarus) Param[1]="-w" HERE4 lpQT Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-linux-qt New=x86_64-linux-gtk2 FPC=False LCL=True HERE5 lpQT Hint: (lazarus) TMainIDE.DoRestart  LAZARUS END - cleaning up ... Hint: (lazarus) [TMainIDE.Destroy] B  -> inherited Destroy... TMainIDE Hint: (lazarus) [TMainIDE.Destroy] END Heap dump by heaptrc unit 3185022 memory blocks allocated : 308622317/315523376 3185022 memory blocks freed     : 308622317/315523376 0 unfreed memory blocks : 0 True heap size : 1572864 True free heap : 1572864 TLazarusManager.Run starting /home/v1/Lazarus_Qt/lazarus/lazarus ... Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] PrimaryConfigPath="/home/v1/.lazarus" Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] SecondaryConfigPath="/etc/lazarus" Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-linux-gtk2 New=x86_64-linux-gtk2 FPC=True LCL=False TComponentTreeView.SetSelection: Updating component node values. TLazSourceFileManager.InitOpenedProjectFile select form in designer: Form1:TForm1 TDesigner NOTE: Window with stalled focus found!, faking focus-out event NOTE: Window with stalled focus found!, faking focus-out event See several "Hint: (lazarus) [TBuildManager.SetBuildTarget]..." about changing widgetset.Lines "HEREx lpQt" are from me, they indicates that state of MiscellaneousOptions.BuildLazProfiles.Current.TargetPlatform); is unchangedThe changes come from method MainBuildBoss.SetBuildTargetProject1 which is called several times in main.pp, mainly in TMainIDE.mnuToolConfigBuildLazClicked at line 4595.It calls TBuildManager.SetBuildTarget and nested function GetEffectiveLCLWidgetType where is line: Result:=FBuildTarget.CompilerOptions.GetEffectiveLCLWidgetTypeIt is probably the reason why combobox in "Configure Build Lazarus" is ignored and is replaced by value from Compiler Options.V.______________________________________________________________ > Od: Vojtěch Čihák via Lazarus > Komu: Lazarus mailing list > Datum: 02.01.2018 22:21 > Předmět: Re: [Lazarus] Rebuilding IDE Gtk/Qt > Thanks to zeljko for confirming.   I was able to reproduce right now:   I have my Lazarus 1.9.0 r56925M FPC 3.0.4 x86_64-linux-qt. I started new project. I saved it. I open Project Options -> Addition and Overrides and added LCLWidgetType "gtk2". I run the project once just to see it is really GTk2 - it is. Now I enter Tools -> Configure Bulid Lazarus. Options are Debug IDE, LCL WIdgetType = qt. I don't change them. I switch to "Clean common files" and click Build. After restart I have Lazarus 1.9.0 r56925M FPC 3.0.4 x86_64-linux-gtk2.   V.   _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus ---------- -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From bo.berglund at gmail.com Fri Jan 5 12:41:44 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Fri, 05 Jan 2018 12:41:44 +0100 Subject: [Lazarus] Can the Lazarus IDE match parentheses and begin/ends? Message-ID: <7tou4dd2gk7avlkncorjcu9ftvdhqu2l2v@4ax.com> 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 Lazarus 1.8.0 with FPC 3.0.4 on a Windows 7 X64 laptop. -- Bo Berglund Developer in Sweden From lazarus at kluug.net Fri Jan 5 13:03:58 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Fri, 5 Jan 2018 19:03:58 +0700 Subject: [Lazarus] Can the Lazarus IDE match parentheses and begin/ends? In-Reply-To: <7tou4dd2gk7avlkncorjcu9ftvdhqu2l2v@4ax.com> References: <7tou4dd2gk7avlkncorjcu9ftvdhqu2l2v@4ax.com> Message-ID: <78851a74-1c94-29ac-3211-c19fd24d1b63@kluug.net> 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 Lazarus 1.8.0 with FPC 3.0.4 on a Windows 7 X64 > laptop. http://wiki.lazarus.freepascal.org/IDE_Window:_Editor_Options_Markup Ondrej From nc-gaertnma at netcologne.de Fri Jan 5 13:05:26 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Fri, 5 Jan 2018 13:05:26 +0100 Subject: [Lazarus] Can the Lazarus IDE match parentheses and begin/ends? In-Reply-To: <7tou4dd2gk7avlkncorjcu9ftvdhqu2l2v@4ax.com> References: <7tou4dd2gk7avlkncorjcu9ftvdhqu2l2v@4ax.com> Message-ID: <20180105130526.037a3f19@limapholos.matflo.wg> On Fri, 05 Jan 2018 12:41:44 +0100 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 Since a long time. It is enabled by default. http://wiki.lazarus.freepascal.org/IDE_Window:_Editor_Options_Markup#Bracket_Highlight > and begin/end block delimiters? Same: http://wiki.lazarus.freepascal.org/IDE_Window:_Editor_Options_Markup#Current_Word Full colors came with 1.8: http://wiki.lazarus.freepascal.org/Lazarus_IDE_Tools#Outline Mattias From nc-gaertnma at netcologne.de Fri Jan 5 13:11:03 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Fri, 5 Jan 2018 13:11:03 +0100 Subject: [Lazarus] Rebuilding IDE Gtk/Qt In-Reply-To: <20180105025956.84F22103@atlas.cz> References: <20180105025956.84F22103@atlas.cz> Message-ID: <20180105131103.47abc2dc@limapholos.matflo.wg> On Fri, 05 Jan 2018 02:59:56 +0100 Vojtěch Čihák via Lazarus wrote: > I found the reason but to make a patch is beyond my powers. > When I used the steps described below, I got this in console: >[...]is unchangedThe changes come from method MainBuildBoss.SetBuildTargetProject1 which is called several times in main.pp, mainly in TMainIDE.mnuToolConfigBuildLazClicked at line 4595. Yes, these are the switches between project and IDE settings. > It calls TBuildManager.SetBuildTarget and nested function GetEffectiveLCLWidgetType where is line: Result:=FBuildTarget.CompilerOptions.GetEffectiveLCLWidgetTypeIt is probably the reason why combobox in "Configure Build Lazarus" is ignored and is replaced by value from Compiler Options. No, when building the IDE the FBuildTarget is nil. See TBuildManager.SetBuildTargetIDE. Please start the IDE with -v -v to get more output. Mattias From lazarus at mfriebe.de Fri Jan 5 14:12:59 2018 From: lazarus at mfriebe.de (Martin Frb) Date: Fri, 5 Jan 2018 14:12:59 +0100 Subject: [Lazarus] Can the Lazarus IDE match parentheses and begin/ends? In-Reply-To: <7tou4dd2gk7avlkncorjcu9ftvdhqu2l2v@4ax.com> References: <7tou4dd2gk7avlkncorjcu9ftvdhqu2l2v@4ax.com> Message-ID: <9cdc66a6-ae68-009b-5891-31bafc66d1ff@mfriebe.de> On 05/01/18 12: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? brackets are already answered in the other mails. begin/end is not on the wiki (yet), but it is in the Options dialog under > Editor > Display > Markup and Matches It is called "Word Brackets on caret" There is a listbox with: "Procedure","Begin/end", "repeat" ..... you can select each entry and check "Markup (on caret), to get the highlight eg *  "Procedure" will highlight 3 keyword: Procedure, begin, end, * "Begin/end (procedure)" highlights only the begin and end of a procedure block You can choose the kind of highlight (eg change back color, instead of frame) in the "Colors" page of the option dialog. From lazarus at mfriebe.de Fri Jan 5 14:20:14 2018 From: lazarus at mfriebe.de (Martin Frb) Date: Fri, 5 Jan 2018 14:20:14 +0100 Subject: [Lazarus] Can the Lazarus IDE match parentheses and begin/ends? In-Reply-To: <9cdc66a6-ae68-009b-5891-31bafc66d1ff@mfriebe.de> References: <7tou4dd2gk7avlkncorjcu9ftvdhqu2l2v@4ax.com> <9cdc66a6-ae68-009b-5891-31bafc66d1ff@mfriebe.de> Message-ID: On 05/01/18 14:12, Martin Frb via Lazarus wrote: > > eg > *  "Procedure" will highlight 3 keyword: Procedure, begin, end, > * "Begin/end (procedure)" highlights only the begin and end of a > procedure block My mistake "Procedure"  is just Procedure ...end And both of the above, will highlight all three together. From vojtech.cihak at atlas.cz Fri Jan 5 14:54:35 2018 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Fri, 05 Jan 2018 14:54:35 +0100 Subject: [Lazarus] =?utf-8?q?Rebuilding_IDE_Gtk/Qt?= In-Reply-To: 00000000838d00010bc401525029 References: <20180105025956.84F22103@atlas.cz> 00000000838d00010bc401525029 Message-ID: <20180105145435.0321CD1F@atlas.cz> Hi, so I reproduced again unwanted qt to gtk2 rebuild. Now the -v -v output is bigger:   https://pastebin.com/MCPe8FE7   Thanks, V. ______________________________________________________________ > Od: Mattias Gaertner via Lazarus > Komu: lazarus at lists.lazarus-ide.org > Datum: 05.01.2018 13:11 > Předmět: Re: [Lazarus] Rebuilding IDE Gtk/Qt > On Fri, 05 Jan 2018 02:59:56 +0100 Vojtěch Čihák via Lazarus wrote: > I found the reason but to make a patch is beyond my powers. > When I used the steps described below, I got this in console: >[...]is unchangedThe changes come from method MainBuildBoss.SetBuildTargetProject1 which is called several times in main.pp, mainly in TMainIDE.mnuToolConfigBuildLazClicked at line 4595. Yes, these are the switches between project and IDE settings. > It calls TBuildManager.SetBuildTarget and nested function GetEffectiveLCLWidgetType where is line: Result:=FBuildTarget.CompilerOptions.GetEffectiveLCLWidgetTypeIt is probably the reason why combobox in "Configure Build Lazarus" is ignored and is replaced by value from Compiler Options. No, when building the IDE the FBuildTarget is nil. See TBuildManager.SetBuildTargetIDE. Please start the IDE with -v -v to get more output. Mattias -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From info at papier.host4free.ovh Fri Jan 5 15:38:12 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Fri, 05 Jan 2018 15:38:12 +0100 Subject: [Lazarus] Moin mOIi Message-ID: <0730ae02d6083806d6ec68b34dbc61b6@papier.host4free.ovh> Hallöchen ! From info at papier.host4free.ovh Fri Jan 5 15:38:16 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Fri, 5 Jan 2018 15:38:16 +0100 (CET) Subject: [Lazarus] Moin mOIi Message-ID: <20180105143816.B14931EF0A4@plesk02.itefg.de> Hallo, dies ist eine automatische Antwort. Von meinem iPhone gesendet From vojtech.cihak at atlas.cz Fri Jan 5 17:16:25 2018 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Fri, 05 Jan 2018 17:16:25 +0100 Subject: [Lazarus] =?utf-8?q?Rebuilding_IDE_Gtk/Qt?= In-Reply-To: 00000000838d00010bc401525029 References: <20180105025956.84F22103@atlas.cz> 00000000838d00010bc401525029 Message-ID: <20180105171625.E39A09A1@atlas.cz> Hi,   I see now, FBuildTarget.CompilerOptions.GetEffectiveLCLWidgetType is never called. Result depends on parameter LCLWidgetType of function TBuildManager.SetBuildTarget(). This code: procedure TMainIDE.mnuToolConfigBuildLazClicked(Sender: TObject); var   ... begin   //if ToolStatus<>itNone then exit;   if fBuilder=Nil then     fBuilder:=TLazarusBuilder.Create;    // Will be freed in the very end.   MainBuildBoss.SetBuildTargetIDE;   try     DlgResult:=fBuilder.ShowConfigureBuildLazarusDlg(MiscellaneousOptions.BuildLazProfiles);   finally     MainBuildBoss.SetBuildTargetProject1(true);   end;   SetBuildTargetIDE calls SetBuildTarget with correct parameters but in turn in finally section SetBuildTargetProject1 calls: SetBuildTarget('','','',ScanFPCSrc,Quiet);   //note that empty strings It later calls:   function GetDefaultLCLWidgetType: TLCLPlatform; begin   if (WidgetSet<>nil) and (WidgetSet.LCLPlatform<>lpNoGUI) then     Result:=WidgetSet.LCLPlatform   else     Result:=BuildLCLWidgetType; end;   where WidgetSet is always assigned and Result is always gtk2.   V. ______________________________________________________________ > Od: Mattias Gaertner via Lazarus > Komu: lazarus at lists.lazarus-ide.org > Datum: 05.01.2018 13:11 > Předmět: Re: [Lazarus] Rebuilding IDE Gtk/Qt > On Fri, 05 Jan 2018 02:59:56 +0100 Vojtěch Čihák via Lazarus wrote: > I found the reason but to make a patch is beyond my powers. > When I used the steps described below, I got this in console: >[...]is unchangedThe changes come from method MainBuildBoss.SetBuildTargetProject1 which is called several times in main.pp, mainly in TMainIDE.mnuToolConfigBuildLazClicked at line 4595. Yes, these are the switches between project and IDE settings. > It calls TBuildManager.SetBuildTarget and nested function GetEffectiveLCLWidgetType where is line: Result:=FBuildTarget.CompilerOptions.GetEffectiveLCLWidgetTypeIt is probably the reason why combobox in "Configure Build Lazarus" is ignored and is replaced by value from Compiler Options. No, when building the IDE the FBuildTarget is nil. See TBuildManager.SetBuildTargetIDE. Please start the IDE with -v -v to get more output. Mattias -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaa5500 at ya.ru Fri Jan 5 18:12:03 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Fri, 5 Jan 2018 20:12:03 +0300 Subject: [Lazarus] Package filenames with _package Message-ID: 1. packager/globallinks/lclextensions_package-0.6.1.lpl 2. +1 −0 packager/globallinks/virtualtreeview_package-5.5.3.1.lpl (trunk) It is good filenames, with _package suffix, easy to see filenames from all filenames in big dir. AT* packages also use this suffix. i suggest to add this suffix to ALL default packages. -- Regards, Alexey -------------- next part -------------- An HTML attachment was scrubbed... URL: From bo.berglund at gmail.com Sat Jan 6 10:25:36 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Sat, 06 Jan 2018 10:25:36 +0100 Subject: [Lazarus] Can the Lazarus IDE match parentheses and begin/ends? References: <7tou4dd2gk7avlkncorjcu9ftvdhqu2l2v@4ax.com> <9cdc66a6-ae68-009b-5891-31bafc66d1ff@mfriebe.de> Message-ID: <04315d98irnrm8b14hlo8lm0b9gvacon5p@4ax.com> On Fri, 5 Jan 2018 14:12:59 +0100, Martin Frb via Lazarus wrote: >On 05/01/18 12: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? Martin, thanks for your detailed description! It made it possible for me to at least partially solve the problem! > >brackets are already answered in the other mails. But the links in these replies go to a webpage that says a bit down: "Bracket Highlight If the cursor is behind or in front of a bracket, highlight matching bracket" And that is all. No description on *how* to actually activate this function, which was clearly not working in my Lazarus... Also the definition of a "bracket" is a bit muddy. Does it refer to square parenthesis [ ] or normal ( ) or begin end or all of these? Furthermore the webpage directs me to the "Automatic feature" page of the editor option, which in fact does not exist in my Lazarus. Under Editor there are 8 subpages, none named "Automatic feature". If one expands the Display node there are Colors, Markup and Matches, User defined markup. So the wiki page is misleading. >begin/end is not on the wiki (yet), but it is in the Options dialog >under > Editor > Display > Markup and Matches > >It is called "Word Brackets on caret" > >There is a listbox with: "Procedure","Begin/end", "repeat" ..... >you can select each entry and check "Markup (on caret), to get the highlight In my case these are all checked except for the last 4 boxes. Additionally the checkbox to the right "Markup (on caret)" is checked as is the top "Word Brackets on caret" and yet I did not see anything in the IDE... Do I have to use some kind of hot key to make it display? Well, it seems to be a mis-match in the default settings where the feature is enabled by default but the colors are set by default to completely hide the highlight.... Seems like a strange way to set the defaults. >eg >*  "Procedure" will highlight 3 keyword: Procedure, begin, end, >* "Begin/end (procedure)" highlights only the begin and end of a >procedure block > >You can choose the kind of highlight (eg change back color, instead of >frame) in the "Colors" page of the option dialog. After a lot of fiddling I managed to get the following working: begin-end: A red box pink background via "Word-brackets" color [ ]: basically the same, but via "Brackets highlights" color if-then-else: same via "Word-brackets" color Not working: ( ): Controlled by what? And this is what I originally was looking for because I frequently make ( ) errors.... -- Bo Berglund Developer in Sweden From lazarus at mfriebe.de Sat Jan 6 12:33:43 2018 From: lazarus at mfriebe.de (Martin Frb) Date: Sat, 6 Jan 2018 12:33:43 +0100 Subject: [Lazarus] Can the Lazarus IDE match parentheses and begin/ends? In-Reply-To: <04315d98irnrm8b14hlo8lm0b9gvacon5p@4ax.com> References: <7tou4dd2gk7avlkncorjcu9ftvdhqu2l2v@4ax.com> <9cdc66a6-ae68-009b-5891-31bafc66d1ff@mfriebe.de> <04315d98irnrm8b14hlo8lm0b9gvacon5p@4ax.com> Message-ID: On 06/01/18 10:25, Bo Berglund via Lazarus wrote: > On Fri, 5 Jan 2018 14:12:59 +0100, Martin Frb via Lazarus > wrote: > >> On 05/01/18 12: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? > Martin, thanks for your detailed description! It made it possible for > me to at least partially solve the problem! which part (about begin/end) is NOT solved? (Or does "partly" refer to brackets?) >> brackets are already answered in the other mails. > But the links in these replies go to a webpage that says a bit down: > > "Bracket Highlight > > If the cursor is behind or in front of a bracket, highlight matching > bracket" > > And that is all. No description on *how* to actually activate this > function, which was clearly not working in my Lazarus... Same options dialog/page as above "Markup and Matches" There is a dropdown "Bracket highlight" (below the 1st divider / unamed divider)  with options such as "on both sides", "Left of cursor", .... "no highlight" I am not sure, it may require that the text has some highlighter active (but pascal sources always have this). If you load plain text, then it may not work on that file... It matches (), {}, [], and single quotes. It toggles between bold and not bold, and applies a frame (at least for me, I may have changed settings) But again in color options you can change what highlight to apply: Editor > Display > Colors:    Entry "Bracket Highlights" (1st in section "Text"). > Furthermore the webpage directs me to the "Automatic feature" page of > the editor option, which in fact does not exist in my Lazarus. > Under Editor there are 8 subpages, none named "Automatic feature". If > one expands the Display node there are Colors, Markup and Matches, > User defined markup. So the wiki page is misleading. The wiki is indeed outdated. (If anyone has time...) "Automatic ..." was probably the name of a sub page in an older Lazarus version. >> begin/end is not on the wiki (yet), but it is in the Options dialog >> under > Editor > Display > Markup and Matches >> >> It is called "Word Brackets on caret" >> >> There is a listbox with: "Procedure","Begin/end", "repeat" ..... >> you can select each entry and check "Markup (on caret), to get the highlight > In my case these are all checked except for the last 4 boxes. > Additionally the checkbox to the right "Markup (on caret)" is checked > as is the top "Word Brackets on caret" and yet I did not see anything > in the IDE... > Do I have to use some kind of hot key to make it display? > Well, it seems to be a mis-match in the default settings where the > feature is enabled by default but the colors are set by default to > completely hide the highlight.... Which color profile are you using? (Default, Delphi, Ocean....) In the Default it should have a red frame (for begin/end pairs) You can always check the default by deleting (BACK UP !) your editor_options.xml This is in the primary config path (View Menu > Ide Internals > About IDE > After a lot of fiddling I managed to get the following working: > > begin-end: A red box pink background via "Word-brackets" color > [ ]: basically the same, but via "Brackets highlights" color > if-then-else: same via "Word-brackets" color > > Not working: > ( ): Controlled by what? Should be the same as () Just remember, I think there is a bug in 1.8 (already fixed for the not yet released 1.8.2) brackets only work if they are surrounded by spaces (or maybe it was NOT surrounded...) https://bugs.freepascal.org/view.php?id=32803 svn rev 56695 rebuild ide with this patch Index: components/synedit/synedit.pp =================================================================== --- components/synedit/synedit.pp    (revision 56694) +++ components/synedit/synedit.pp    (revision 56695) @@ -8945,7 +8945,7 @@        while not Highlighter.GetEol do begin          Start := Highlighter.GetTokenPos + 1;          Token := Highlighter.GetToken; -        if (PosX >= Start) and (PosX <= Start + Length(Token)) then begin +        if (PosX >= Start) and (PosX < Start + Length(Token)) then begin            Attri := Highlighter.GetTokenAttribute;            TokenType := Highlighter.GetTokenKind;            exit(True); @@ -8990,7 +8990,7 @@          //TokenType := Highlighter.GetTokenKind;          Attri := Highlighter.GetTokenAttribute;          //DebugLn(['  TCustomSynEdit.CaretAtIdentOrString: Start=', Start, ', Token=', Token]); -        if (PosX >= Start) and (PosX <= Start + Length(Token)) then +        if (PosX >= Start) and (PosX < Start + Length(Token)) then          begin            AtIdent := Attri = Highlighter.IdentifierAttribute;            NearString := (Attri = Highlighter.StringAttribute) From info at papier.host4free.ovh Sat Jan 6 12:33:52 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:33:52 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?q?in/ends=3F?= Message-ID: <20180106113352.027961EC8FC@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:33:59 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:33:59 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CWluL2VuZHM/?= Message-ID: <20180106113359.14E4D1EC901@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:34:07 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:34:07 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?q?=09=09in/ends=3F?= Message-ID: <20180106113407.DE2DA1EC902@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:34:18 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:34:18 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJaW4vZW5kcz8=?= Message-ID: <20180106113418.7A70A1EC903@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:34:30 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:34:30 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCWluL2VuZHM/?= Message-ID: <20180106113430.B512D1EC903@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:34:40 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:34:40 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQlpbi9lbmRzPw==?= Message-ID: <20180106113440.2577C1EC8EB@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:34:49 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:34:49 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJaW4vZW5kcz8=?= Message-ID: <20180106113449.1FB421EC908@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:34:59 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:34:59 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCWluL2VuZHM/?= Message-ID: <20180106113459.1BCF81EC909@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:35:09 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:35:09 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQlpbi9lbmRzPw==?= Message-ID: <20180106113509.9FA751EC90A@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:35:19 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:35:19 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJaW4vZW5kcz8=?= Message-ID: <20180106113519.837861EC90B@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:35:28 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:35:28 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCWluL2VuZHM/?= Message-ID: <20180106113528.9FB141EC903@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:35:38 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:35:38 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQlpbi9lbmRzPw==?= Message-ID: <20180106113538.25A501EC903@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:35:48 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:35:48 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJaW4vZW5kcz8=?= Message-ID: <20180106113548.A2A681EC90D@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:36:00 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:36:00 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCWluL2VuZHM/?= Message-ID: <20180106113600.23A781EC90E@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:36:12 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:36:12 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQlpbi9lbmRzPw==?= Message-ID: <20180106113612.46B0D1EC90F@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:36:23 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:36:23 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJaW4vZW5kcz8=?= Message-ID: <20180106113623.B71C61EC910@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:36:33 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:36:33 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCWluL2VuZHM/?= Message-ID: <20180106113633.0342F1EC910@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:36:41 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:36:41 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQlpbi9lbmRzPw==?= Message-ID: <20180106113642.017541EA7FA@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:36:51 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:36:51 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJaW4vZW5kcz8=?= Message-ID: <20180106113651.E503E1EC911@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:37:02 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:37:02 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCWluL2VuZHM/?= Message-ID: <20180106113702.8368A1EC913@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:37:14 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:37:14 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQlpbi9lbmRzPw==?= Message-ID: <20180106113714.4D7681E4086@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:37:26 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:37:26 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJaW4vZW5kcz8=?= Message-ID: <20180106113726.C3BAF1E4089@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:37:37 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:37:37 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCWluL2VuZHM/?= Message-ID: <20180106113737.67EAC1E408A@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:37:46 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:37:46 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQlpbi9lbmRzPw==?= Message-ID: <20180106113746.6FCEA1E408C@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:37:56 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:37:56 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJaW4vZW5kcz8=?= Message-ID: <20180106113756.C58EB1E4091@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:38:08 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:38:08 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCWluL2VuZHM/?= Message-ID: <20180106113808.B320A1E4092@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:38:20 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:38:20 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQlpbi9lbmRzPw==?= Message-ID: <20180106113820.2871E1E4094@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:38:29 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:38:29 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJaW4vZW5kcz8=?= Message-ID: <20180106113829.1C3AE1E4096@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:38:38 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:38:38 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCWluL2VuZHM/?= Message-ID: <20180106113838.537881E408E@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:38:48 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:38:48 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQlpbi9lbmRzPw==?= Message-ID: <20180106113848.0160F1E4094@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:38:58 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:38:58 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJaW4vZW5kcz8=?= Message-ID: <20180106113858.A29881E409A@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:39:09 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:39:09 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCWluL2VuZHM/?= Message-ID: <20180106113909.71C231E409A@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:39:21 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:39:21 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQlpbi9lbmRzPw==?= Message-ID: <20180106113921.4FA291E4092@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:39:32 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:39:32 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJaW4vZW5kcz8=?= Message-ID: <20180106113932.7D9F81E409A@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:39:44 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:39:44 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCWluL2VuZHM/?= Message-ID: <20180106113944.0F0BB1E4096@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:39:56 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:39:56 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQlpbi9lbmRz?= =?utf-8?q?=3F?= Message-ID: <20180106113956.B71FF1EA7FB@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:40:10 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:40:10 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJaW4vZW5k?= =?utf-8?b?cwk/?= Message-ID: <20180106114010.3F3F11EC8E5@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:40:22 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:40:22 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCWluL2Vu?= =?utf-8?b?ZAlzCT8=?= Message-ID: <20180106114022.69F3D1EC8E5@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:40:32 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:40:32 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQlpbi9l?= =?utf-8?b?bglkCXMJPw==?= Message-ID: <20180106114032.3414D1EC8E7@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:40:42 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:40:42 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJaW4v?= =?utf-8?b?ZQluCWQJcwk/?= Message-ID: <20180106114042.49C711E4097@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:40:52 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:40:52 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCWlu?= =?utf-8?b?LwllCW4JZAlzCT8=?= Message-ID: <20180106114052.749BA1E4418@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:41:02 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:41:02 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQlp?= =?utf-8?b?bgkvCWUJbglkCXMJPw==?= Message-ID: <20180106114102.AF2BA1EC8FF@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:41:12 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:41:12 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?aQluCS8JZQluCWQJcwk/?= Message-ID: <20180106114112.E4EA11EC900@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:41:22 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:41:22 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQlpCW4JLwllCW4JZAlzCT8=?= Message-ID: <20180106114122.3EFB71EC900@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:41:32 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:41:32 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCWkJbgkvCWUJbglkCXMJPw==?= Message-ID: <20180106114132.334E01EC900@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:41:43 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:41:43 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJaQluCS8JZQluCWQJcwk/?= Message-ID: <20180106114143.2B7AD1E4418@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:41:54 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:41:54 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQlpCW4JLwllCW4JZAlzCT8=?= Message-ID: <20180106114154.DE2F71EC906@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:42:04 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:42:04 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJCWkJbgkvCWUJbglkCXMJPw==?= Message-ID: <20180106114204.EAE711EC914@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:42:14 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:42:14 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJCQkJaQluCS8JZQluCWQJcwk/?= Message-ID: <20180106114214.AD3841EC915@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:42:23 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:42:23 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJCQkJCQlpCW4JLwllCW4JZAlzCT8=?= Message-ID: <20180106114223.559FC1EC916@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:42:33 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:42:33 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCWkJbgkvCWUJbglkCXMJPw==?= Message-ID: <20180106114233.EBD811EC903@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:42:44 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:42:44 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJaQluCS8JZQluCWQJcwk/?= Message-ID: <20180106114244.5E2041EC900@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:42:54 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:42:54 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQlpCW4JLwllCW4JZAlzCT8=?= Message-ID: <20180106114254.3D0941EC903@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:43:03 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:43:03 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCWkJbgkvCWUJbglkCXMJPw==?= Message-ID: <20180106114303.D65EB1EC919@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:43:12 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:43:12 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJaQluCS8JZQluCWQJcwk/?= Message-ID: <20180106114312.EDCE11EC91A@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:43:23 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:43:23 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQlpCW4JLwllCW4JZAlzCT8=?= Message-ID: <20180106114323.661A91EC917@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:43:34 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:43:34 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCWkJbgkvCWUJbglkCXMJ?= =?utf-8?q?=3F?= Message-ID: <20180106114334.7B8AA1EC91A@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:43:44 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:43:44 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJaQluCS8JZQluCWQJ?= =?utf-8?b?cwkJPw==?= Message-ID: <20180106114344.AE4E61EC903@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:43:54 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:43:54 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQlpCW4JLwllCW4J?= =?utf-8?b?ZAkJcwkJPw==?= Message-ID: <20180106114354.D563C1EC916@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:44:04 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:44:04 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCWkJbgkvCWUJ?= =?utf-8?b?bgkJZAkJcwkJPw==?= Message-ID: <20180106114404.BA18F1EC91E@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:44:12 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:44:12 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJaQluCS8J?= =?utf-8?b?ZQkJbgkJZAkJcwkJPw==?= Message-ID: <20180106114412.F2BAC1EC91F@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:44:21 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:44:21 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQlpCW4J?= =?utf-8?b?LwkJZQkJbgkJZAkJcwkJPw==?= Message-ID: <20180106114421.093931EC920@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:44:30 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:44:30 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCWkJ?= =?utf-8?b?bgkJLwkJZQkJbgkJZAkJcwkJPw==?= Message-ID: <20180106114430.2669F1EC921@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:44:41 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:44:41 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?aQkJbgkJLwkJZQkJbgkJZAkJcwkJPw==?= Message-ID: <20180106114441.BBD7A1EC923@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:44:53 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:44:53 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJaQkJbgkJLwkJZQkJbgkJZAkJcwkJPw==?= Message-ID: <20180106114453.279151EC921@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:45:02 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:45:02 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJaQkJbgkJLwkJZQkJbgkJZAkJcwkJPw==?= Message-ID: <20180106114502.5F16A1EC928@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:45:11 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:45:11 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJaQkJbgkJLwkJZQkJbgkJZAkJcwkJPw==?= Message-ID: <20180106114511.7F6F51EC92A@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:45:22 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:45:22 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJCQkJaQkJbgkJLwkJZQkJbgkJZAkJcwkJPw==?= Message-ID: <20180106114522.98BD51EC92B@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:45:31 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:45:31 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJaQkJbgkJLwkJZQkJbgkJZAkJcwkJPw==?= Message-ID: <20180106114531.B90B51EC92C@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:45:40 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:45:40 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJaQkJbgkJLwkJZQkJbgkJZAkJcwkJPw==?= Message-ID: <20180106114540.5C37A1EC91C@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From info at papier.host4free.ovh Sat Jan 6 12:45:50 2018 From: info at papier.host4free.ovh (info at papier.host4free.ovh) Date: Sat, 6 Jan 2018 12:45:50 +0100 (CET) Subject: [Lazarus] =?utf-8?q?Can_the_Lazarus_IDE_match_parentheses_and_beg?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJ?= =?utf-8?b?CQkJCQkJCQkJCQkJCQkJCQkJCQkJaQkJbgkJLwkJZQkJbgkJZAkJcwkJ?= =?utf-8?q?=3F?= Message-ID: <20180106114550.5F12F1EC921@plesk02.itefg.de> Hallöchen! Von meinem iPhone gesendet From aaa5500 at ya.ru Sat Jan 6 16:47:51 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Sat, 6 Jan 2018 18:47:51 +0300 Subject: [Lazarus] Carbon WS strange crash Message-ID: <8cc3a72c-8302-ade6-6800-ada0eee21335@ya.ru> I test CudaText carbon build. i do this: - call Plugins/ AddonManager/ Install - choose plugin "Config Toolbar", install it, close app then - call Plugins/ AddonManager/ Update (list of plugins) - check here item of Config Toolbar, OK, plugin updates but app shows er with SIGBUS in carbonobject.inc:276           if CarbonMenu.Parent.Dismissed=kHIMenuDismissedBySelection then begin             FillChar(Msg{%H-}, SizeOf(Msg), 0);             Msg.msg := LM_ACTIVATE;             DeliverMessage(CarbonMenu.LCLMenuItem, Msg);             if assigned(CarbonMenu.Parent) then  // if parent not closed               CarbonMenu.Parent.Dismissed:=0; //--------------here             Result := noErr;             Exit;           end else             Result:=CallNextEventHandler(ANextHandler, AEvent); who can help with with er in WS? macOS 10.8.5. -- Regards, Alexey From alexander.hofmann at new-h.de Sat Jan 6 20:14:30 2018 From: alexander.hofmann at new-h.de (Alexander Hofmann) Date: Sat, 6 Jan 2018 20:14:30 +0100 Subject: [Lazarus] GTK2/X Appcrash when TPen.Pattern has invalid value Message-ID: <5ac52d44-4a8b-bad4-f494-2108943a5850@new-h.de> Dear all, I spend some time debugging a programming error (read: misinterpretation of available documentation) and though I should share my findings... I wanted to have a TChart series drawn with a dashed line, the pen-style "psDashed" had two short dashes for my eyes, so I used "psPattern" and set the Pen-Pattern as such: const   Pattern:array [0..7] of longint=(1, 1, 1, 1, 0, 0, 0, 0) This is wrong of course; however reading some google I thought that each array element in the TPenPattern array describes one pixel. The problem now was, that Qt produces quite reasonable results: a 4-pixel dashed line. Also GTK2 did the job - if the line was drawn _outside_ any Paint-Message. In that case (e.g. when actually setting this as a Pen-Pattern for a Chart series), the X-Function 58 (SetDashes) produced the Errorcode 2 (Out of range) and the Program ended directly at the 1st Paint-Event - leaving Lazarus and GDB in the wild with no backtrace or alike. Of course it works now with the Pattern const   Pattern:array [0..1] of longint=(4, 4) But: I think that, if this is the correct way to do it, and the value "0" for any portion of the pattern is indeed not allowed (as stated in the X-Documentation e.g. here: https://www.x.org/releases/X11R7.7/doc/xproto/x11protocol.html#requests:SetDashes), shouldn't TPen.SetPattern raise an exception when an invalid pattern is given? I don't know about other OSes / Widgestsets, if there are the same "rules". I could try to file a bugreport / try to provide a patch; but maybe it's enough to cite the X-Docs somewhere in the Lazarus-Documentation? What do you think? Regards, Alex From donald at ziesig.org Sun Jan 7 03:07:02 2018 From: donald at ziesig.org (Donald Ziesig) Date: Sat, 6 Jan 2018 21:07:02 -0500 Subject: [Lazarus] lazarus-ccr (or other) TBufDataSet Documentation? Message-ID: Hi All! I have been trying to find documentation for the TBufDataSet (or TMemDataSet) as is available for most other components in the Lazarus Code and Component Repository Documentation.  So far I have had no success.  Do I have to use the source alone? Thanks, Don Ziesig From michael at freepascal.org Sun Jan 7 09:32:39 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 7 Jan 2018 09:32:39 +0100 (CET) Subject: [Lazarus] lazarus-ccr (or other) TBufDataSet Documentation? In-Reply-To: References: Message-ID: On Sat, 6 Jan 2018, Donald Ziesig via Lazarus wrote: > Hi All! > > I have been trying to find documentation for the TBufDataSet (or > TMemDataSet) as is available for most other components in the Lazarus > Code and Component Repository Documentation.  So far I have had no > success.  Do I have to use the source alone? Yes, for the time being... BufDataset is one of the next units on my list of units to document. Michael. From leledumbo_cool at yahoo.co.id Sun Jan 7 09:33:12 2018 From: leledumbo_cool at yahoo.co.id (leledumbo) Date: Sun, 7 Jan 2018 01:33:12 -0700 (MST) Subject: [Lazarus] lazarus-ccr (or other) TBufDataSet Documentation? In-Reply-To: References: Message-ID: <1515313992865-0.post@n3.nabble.com> > So far I have had no success. Do I have to use the source alone? I think there's none officially, but google gives me these: - http://wiki.lazarus.freepascal.org/How_to_write_in-memory_database_applications_in_Lazarus/FPC - http://www.pp4s.co.uk/main/tu-db-bufdataset.html -- Sent from: http://free-pascal-lazarus.989080.n3.nabble.com/ From leledumbo_cool at yahoo.co.id Sun Jan 7 09:35:48 2018 From: leledumbo_cool at yahoo.co.id (leledumbo) Date: Sun, 7 Jan 2018 01:35:48 -0700 (MST) Subject: [Lazarus] Package filenames with _package In-Reply-To: References: Message-ID: <1515314148732-0.post@n3.nabble.com> > It is good filenames, with _package suffix, easy to see filenames from all filenames in big dir I don't agree, that's what file extension is for. Filtering and sorting should easily be done to distinguish package files from others. -- Sent from: http://free-pascal-lazarus.989080.n3.nabble.com/ From michael at freepascal.org Sun Jan 7 09:41:03 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 7 Jan 2018 09:41:03 +0100 (CET) Subject: [Lazarus] Package filenames with _package In-Reply-To: <1515314148732-0.post@n3.nabble.com> References: <1515314148732-0.post@n3.nabble.com> Message-ID: On Sun, 7 Jan 2018, leledumbo via Lazarus wrote: >> It is good filenames, with _package suffix, easy to see filenames from all > filenames in big dir > > I don't agree, that's what file extension is for. Filtering and sorting > should easily be done to distinguish package files from others. I am glad to read this, I also think the _package is completely redundant. Michael. From aaa5500 at ya.ru Sun Jan 7 10:08:44 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Sun, 7 Jan 2018 12:08:44 +0300 Subject: [Lazarus] Package filenames with _package In-Reply-To: <1515314148732-0.post@n3.nabble.com> References: <1515314148732-0.post@n3.nabble.com> Message-ID: <56e20e29-ae94-7695-62f9-dbf0bf4c5ffb@ya.ru> > I don't agree, that's what file extension is for. Filtering and sorting > should easily be done to distinguish package files from others. There is one moment: ATSynedit has - atsynedit.pas (main unit) - atsynedit_package.pas (with suffix) You see suffix is useful here. -- Regards, Alexey From aaa5500 at ya.ru Sun Jan 7 10:10:05 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Sun, 7 Jan 2018 12:10:05 +0300 Subject: [Lazarus] Package filenames with _package In-Reply-To: References: <1515314148732-0.post@n3.nabble.com> Message-ID: > I am glad to read this, I also think the _package is completely > redundant. many Laz packages have suffix anyway: Dsgn, Pkg, pkg, maybe others. -- Regards, Alexey From michael at freepascal.org Sun Jan 7 10:42:33 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 7 Jan 2018 10:42:33 +0100 (CET) Subject: [Lazarus] Package filenames with _package In-Reply-To: References: <1515314148732-0.post@n3.nabble.com> Message-ID: On Sun, 7 Jan 2018, AlexeyT via Lazarus wrote: > >> I am glad to read this, I also think the _package is completely >> redundant. > > many Laz packages have suffix anyway: Dsgn, Pkg, pkg, maybe others. True. And this is unfortunate, because it is not functional at all. The "problem" is that the pascal unit generated for a package has the same name as the package and often conflicts with a unit in the package. IMO it would be better to prefix it automatically. (fpmake does this when it makes a build unit) MyPackage.lpk -> build_Mypackage.pas or maybe MyPackage.lpk -> run_Mypackage.pas MyPackage.lpk -> ide_Mypackage.pas Depending on what you chose for package options. That way you would not need to prefix your package name with anything, unless you split your package in a design and runtime package. In the latter case the prefix (or suffix) is still functional: it tells you that it is run or design... Michael. From werner.pamler at freenet.de Sun Jan 7 10:41:43 2018 From: werner.pamler at freenet.de (Werner Pamler) Date: Sun, 7 Jan 2018 10:41:43 +0100 Subject: [Lazarus] Package filenames with _package In-Reply-To: References: Message-ID: Am 05.01.2018 um 18:12 schrieb AlexeyT via Lazarus: > > 1. packager/globallinks/lclextensions_package-0.6.1.lpl > > > 2. +1 −0 > > packager/globallinks/virtualtreeview_package-5.5.3.1.lpl > > > > (trunk) > > It is good filenames, with _package suffix, easy to see filenames from > all filenames in big dir. AT* packages also use this suffix. i suggest > to add this suffix to ALL default packages > Again, we had this already in a similar context, but now it will break EVERY project out there. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaa5500 at ya.ru Sun Jan 7 10:58:34 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Sun, 7 Jan 2018 12:58:34 +0300 Subject: [Lazarus] Package filenames with _package In-Reply-To: References: <1515314148732-0.post@n3.nabble.com> Message-ID: <5a2152a0-b14e-4eb0-9fd3-4531eed1e672@ya.ru> > conflicts with a unit in the package. IMO it would be better to prefix > it automatically. I agree: better to auto add prefix or suffix (i like suffix _package). good wish. -- Regards, Alexey From nc-gaertnma at netcologne.de Sun Jan 7 10:59:19 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sun, 7 Jan 2018 10:59:19 +0100 Subject: [Lazarus] Package filenames with _package In-Reply-To: References: <1515314148732-0.post@n3.nabble.com> Message-ID: <20180107105919.264e1578@limapholos.matflo.wg> 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 package and often conflicts with a unit in the package. The package unit can have a different name as the package. See for example synedit. Mattias From marc at dommelstein.nl Sun Jan 7 11:39:11 2018 From: marc at dommelstein.nl (Marc Weustink) Date: Sun, 07 Jan 2018 11:39:11 +0100 Subject: [Lazarus] GTK2/X Appcrash when TPen.Pattern has invalid value In-Reply-To: <5ac52d44-4a8b-bad4-f494-2108943a5850@new-h.de> References: <5ac52d44-4a8b-bad4-f494-2108943a5850@new-h.de> Message-ID: <3DA21ABB-D412-4633-82F3-F0ED34D149D3@dommelstein.nl> On January 6, 2018 8:14:30 PM GMT+01:00, Alexander Hofmann via Lazarus wrote: >Dear all, > >I spend some time debugging a programming error (read: >misinterpretation >of available documentation) and though I should share my findings... > >I wanted to have a TChart series drawn with a dashed line, the >pen-style >"psDashed" had two short dashes for my eyes, so I used "psPattern" and >set the Pen-Pattern as such: > >const >  Pattern:array [0..7] of longint=(1, 1, 1, 1, 0, 0, 0, 0) > >This is wrong of course; however reading some google I thought that >each >array element in the TPenPattern array describes one pixel. The problem >now was, that Qt produces quite reasonable results: a 4-pixel dashed >line. Also GTK2 did the job - if the line was drawn _outside_ any >Paint-Message. > >In that case (e.g. when actually setting this as a Pen-Pattern for a >Chart series), the X-Function 58 (SetDashes) produced the Errorcode 2 >(Out of range) and the Program ended directly at the 1st Paint-Event - >leaving Lazarus and GDB in the wild with no backtrace or alike. > >Of course it works now with the Pattern > >const >  Pattern:array [0..1] of longint=(4, 4) > >But: I think that, if this is the correct way to do it, and the value >"0" for any portion of the pattern is indeed not allowed (as stated in >the X-Documentation e.g. here: >https://www.x.org/releases/X11R7.7/doc/xproto/x11protocol.html#requests:SetDashes), >shouldn't TPen.SetPattern raise an exception when an invalid pattern is >given? Don't think so. The gtk implementation should have checked this and probably skip the 0 >I don't know about other OSes / Widgestsets, if there are the same >"rules". Imo the QT implementation should be adapted to behave the same. Wat does Delphi in this case? >I could try to file a bugreport / try to provide a patch; but maybe >it's >enough to cite the X-Docs somewhere in the Lazarus-Documentation? What >do you think? We shouldn't "copy"the x behaviour, but behave the same as Delphi. Marc From mailinglists at geldenhuys.co.uk Sun Jan 7 12:06:03 2018 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Sun, 7 Jan 2018 11:06:03 +0000 Subject: [Lazarus] Package filenames with _package In-Reply-To: <1515314148732-0.post@n3.nabble.com> References: <1515314148732-0.post@n3.nabble.com> Message-ID: <19793d6a-739b-3e14-5657-4a811ec700f5@geldenhuys.co.uk> On 2018-01-07 08:35, leledumbo via Lazarus wrote: > I don't agree, that's what file extension is for. Fully agree. I feel I should also add that DOS is not the mainstream OS any more like it was in the early 90's (some 26 years ago), so why is everybody still limiting file extensions to 3 letters?? Some of my fpGUI included applications use file extensions like *.project etc. Hell, even Microsoft is catching up with that idea (although minor) and now use 4 letter extensions like *.docx etc. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp From mailinglists at geldenhuys.co.uk Sun Jan 7 12:12:11 2018 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Sun, 7 Jan 2018 11:12:11 +0000 Subject: [Lazarus] Package filenames with _package In-Reply-To: References: <1515314148732-0.post@n3.nabble.com> Message-ID: <7948b493-d788-b005-7033-173bbfb02514@geldenhuys.co.uk> On 2018-01-07 09:42, Michael Van Canneyt via Lazarus wrote: >> many Laz packages have suffix anyway: Dsgn, Pkg, pkg, maybe others. > True. And this is unfortunate, because it is not functional at all. Well, I think it is very important to distinguish between "runtime" and "design time" packages. One has very different dependencies and meaning compared to the other one. Your idea of fpmake using automatic prefixes is good and all, but when a developer creates a package using Lazarus IDE, there is no "automatic naming" in play. The "pkg" suffix is pointless indeed, that is what the file extension is for. But the "dsgn" suffix is commonly used to distinguish between runtime (no suffix) and design time usage. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp From aaa5500 at ya.ru Sun Jan 7 13:20:34 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Sun, 7 Jan 2018 15:20:34 +0300 Subject: [Lazarus] Package filenames with _package In-Reply-To: <7948b493-d788-b005-7033-173bbfb02514@geldenhuys.co.uk> References: <1515314148732-0.post@n3.nabble.com> <7948b493-d788-b005-7033-173bbfb02514@geldenhuys.co.uk> Message-ID: <5084b2ec-7b50-355c-9172-2e1564eb8f57@ya.ru> >idea of fpmake using automatic prefixes is good and all, but when a developer creates a package using Lazarus IDE, there is no "automatic naming" in play. You are right, and i suggest this - make auto prefixes in IDE (when creating lpk?) -- Regards, Alexey From michael at freepascal.org Sun Jan 7 14:02:17 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 7 Jan 2018 14:02:17 +0100 (CET) Subject: [Lazarus] Package filenames with _package In-Reply-To: <20180107105919.264e1578@limapholos.matflo.wg> References: <1515314148732-0.post@n3.nabble.com> <20180107105919.264e1578@limapholos.matflo.wg> Message-ID: 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 package and often conflicts with a unit in the package. > > The package unit can have a different name as the package. See > for example synedit. I didn't know this, and this is good to know ! Should not the IDE do this automatically by default then ? Michael. From lazarus at kluug.net Sun Jan 7 14:08:31 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Sun, 7 Jan 2018 20:08:31 +0700 Subject: [Lazarus] Package filenames with _package In-Reply-To: References: <1515314148732-0.post@n3.nabble.com> <20180107105919.264e1578@limapholos.matflo.wg> Message-ID: <43ca6dd8-ad7f-4873-0ebe-8b294e3cd572@kluug.net> 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 package and often conflicts with a unit in the >>> package. >> >> The package unit can have a different name as the package. See >> for example synedit. > > I didn't know this, and this is good to know ! 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. Ondrej From vojtech.cihak at atlas.cz Sun Jan 7 14:29:20 2018 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Sun, 07 Jan 2018 14:29:20 +0100 Subject: [Lazarus] =?utf-8?q?Package_filenames_with_=5Fpackage?= In-Reply-To: 0000000083d700016bfc01535061 References: , <1515314148732-0.post@n3.nabble.com>, , , , <20180107105919.264e1578@limapholos.matflo.wg>, 0000000083d700016bfc01535061 Message-ID: <20180107142920.5A634ADD@atlas.cz> 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.   V. ______________________________________________________________ > Od: Ondrej Pokorny via Lazarus > Komu: lazarus at lists.lazarus-ide.org > Datum: 07.01.2018 14:08 > Předmět: Re: [Lazarus] Package filenames with _packag > I didn't know this, and this is good to know ! 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. Ondrej -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From vojtech.cihak at atlas.cz Sun Jan 7 14:41:53 2018 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Sun, 07 Jan 2018 14:41:53 +0100 Subject: [Lazarus] =?utf-8?q?Package_filenames_with_=5Fpackage?= In-Reply-To: 0000000083ca00014fc80153505e References: , <1515314148732-0.post@n3.nabble.com> 0000000083ca00014fc80153505e Message-ID: <20180107144153.6422CBD5@atlas.cz> This issue seems to be only about the case one package = one component. I have 28 components in package where each component has unique name and I never needed any pre/suffix.   V. ______________________________________________________________ > Od: AlexeyT via Lazarus > Komu: leledumbo via Lazarus > Datum: 07.01.2018 10:08 > Předmět: Re: [Lazarus] Package filenames with _package > > I don't agree, that's what file extension is for. Filtering and sorting > should easily be done to distinguish package files from others. There is one moment: ATSynedit has - atsynedit.pas (main unit) - atsynedit_package.pas (with suffix) You see suffix is useful here. -- Regards, Alexey -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at kluug.net Sun Jan 7 14:35:04 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Sun, 7 Jan 2018 20:35:04 +0700 Subject: [Lazarus] Package filenames with _package In-Reply-To: <20180107142920.5A634ADD@atlas.cz> References: <1515314148732-0.post@n3.nabble.com> <20180107105919.264e1578@limapholos.matflo.wg> <20180107142920.5A634ADD@atlas.cz> Message-ID: <33598441-b79a-cd29-bbfb-db242d41bf6f@kluug.net> 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 autogenerated/used for xyz.lpk instead of xyz.pas? Ondrej -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at mfriebe.de Sun Jan 7 14:55:00 2018 From: lazarus at mfriebe.de (Martin Frb) Date: Sun, 7 Jan 2018 14:55:00 +0100 Subject: [Lazarus] Package filenames with _package In-Reply-To: <33598441-b79a-cd29-bbfb-db242d41bf6f@kluug.net> References: <1515314148732-0.post@n3.nabble.com> <20180107105919.264e1578@limapholos.matflo.wg> <20180107142920.5A634ADD@atlas.cz> <33598441-b79a-cd29-bbfb-db242d41bf6f@kluug.net> Message-ID: <818c9e1c-8864-98da-cdc5-90eb2f8aa68a@mfriebe.de> On 07/01/18 14:35, Ondrej Pokorny via Lazarus wrote: > 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 > autogenerated/used for xyz.lpk instead of xyz.pas? I think, add a unit, select it in the list, right click it, and in "file type" make it the "main unit" Maybe there is an easier way SynEditDsgn has this the auto generated unit is allsyneditdsgn.pas and the unit with registration is "syneditlazdsgn.pas" (see checkbox at the bottom of package dialog. So this as afaik why the unit will be called from the autogenerated unit. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nc-gaertnma at netcologne.de Sun Jan 7 14:55:03 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sun, 7 Jan 2018 14:55:03 +0100 Subject: [Lazarus] Package filenames with _package In-Reply-To: <43ca6dd8-ad7f-4873-0ebe-8b294e3cd572@kluug.net> References: <1515314148732-0.post@n3.nabble.com> <20180107105919.264e1578@limapholos.matflo.wg> <43ca6dd8-ad7f-4873-0ebe-8b294e3cd572@kluug.net> Message-ID: <20180107145503.553de588@limapholos.matflo.wg> On Sun, 7 Jan 2018 20:08:31 +0700 Ondrej Pokorny via Lazarus wrote: >[...] > >> The package unit can have a different name as the package. See > >> for example synedit. > > > > I didn't know this, and this is good to know ! > > 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 package editor and set File Type to "Main Unit". That is then the auto generated unit. Here is how to create a new package with this: http://wiki.freepascal.org/Lazarus_Packages#Create_a_package_with_a_unit_that_has_the_same_name_as_the_package If you often need to create packages a custom main unit name, feel free to create a new package type or an initial setup dialog. Mattias From lazarus at kluug.net Sun Jan 7 15:01:15 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Sun, 7 Jan 2018 21:01:15 +0700 Subject: [Lazarus] Package filenames with _package In-Reply-To: <20180107145503.553de588@limapholos.matflo.wg> References: <1515314148732-0.post@n3.nabble.com> <20180107105919.264e1578@limapholos.matflo.wg> <43ca6dd8-ad7f-4873-0ebe-8b294e3cd572@kluug.net> <20180107145503.553de588@limapholos.matflo.wg> Message-ID: <3571dd24-ec29-c1ae-d663-8e2bb2594372@kluug.net> 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 package editor and set File Type to "Main > Unit". That is then the auto generated unit. > > Here is how to create a new package with this: > http://wiki.freepascal.org/Lazarus_Packages#Create_a_package_with_a_unit_that_has_the_same_name_as_the_package > > If you often need to create packages a custom main unit name, feel free > to create a new package type or an initial setup dialog. Great, thank you! IMO it's perfectly sufficient as it is now. And I don't think the IDE should add any prefixes/suffixes by default. Ondrej From vojtech.cihak at atlas.cz Sun Jan 7 15:02:18 2018 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Sun, 07 Jan 2018 15:02:18 +0100 Subject: [Lazarus] =?utf-8?q?Package_filenames_with_=5Fpackage?= In-Reply-To: 0000000083dc000177c801535035 References: , <1515314148732-0.post@n3.nabble.com>, , , , <20180107105919.264e1578@limapholos.matflo.wg>, , <43ca6dd8-ad7f-4873-0ebe-8b294e3cd572@kluug.net> 0000000083dc000177c801535035 Message-ID: <20180107150218.AA59A2EA@atlas.cz> I noticed: if the main package file has the same name as the lpk than it is not listed in that lpk, right? V. ______________________________________________________________ > Od: Mattias Gaertner via Lazarus > Komu: lazarus at lists.lazarus-ide.org > Datum: 07.01.2018 14:55 > Předmět: Re: [Lazarus] Package filenames with _package > On Sun, 7 Jan 2018 20:08:31 +0700 Ondrej Pokorny via Lazarus wrote: >[...] > >> The package unit can have a different name as the package. See > >> for example synedit.   > > > > I didn't know this, and this is good to know !   > > 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 package editor and set File Type to "Main Unit". That is then the auto generated unit. Here is how to create a new package with this: http://wiki.freepascal.org/Lazarus_Packages#Create_a_package_with_a_unit_that_has_the_same_name_as_the_package If you often need to create packages a custom main unit name, feel free to create a new package type or an initial setup dialog. Mattias -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From nc-gaertnma at netcologne.de Sun Jan 7 15:07:43 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sun, 7 Jan 2018 15:07:43 +0100 Subject: [Lazarus] Package filenames with _package In-Reply-To: <20180107150218.AA59A2EA@atlas.cz> References: <1515314148732-0.post@n3.nabble.com> <20180107105919.264e1578@limapholos.matflo.wg> <43ca6dd8-ad7f-4873-0ebe-8b294e3cd572@kluug.net> <20180107150218.AA59A2EA@atlas.cz> Message-ID: <20180107150743.67670a6d@limapholos.matflo.wg> On Sun, 07 Jan 2018 15:02:18 +0100 Vojtěch Čihák via Lazarus wrote: > I noticed: if the main package file has the same name as the lpk than it is not listed in that lpk, right? Correct. Not every package needs such a file. Mattias From alexander.hofmann at new-h.de Sun Jan 7 17:36:44 2018 From: alexander.hofmann at new-h.de (Alexander Hofmann) Date: Sun, 7 Jan 2018 17:36:44 +0100 Subject: [Lazarus] GTK2/X Appcrash when TPen.Pattern has invalid value In-Reply-To: <3DA21ABB-D412-4633-82F3-F0ED34D149D3@dommelstein.nl> References: <5ac52d44-4a8b-bad4-f494-2108943a5850@new-h.de> <3DA21ABB-D412-4633-82F3-F0ED34D149D3@dommelstein.nl> Message-ID: <5ea1360c-6a30-627e-878a-f32c1e04f0af@new-h.de> Hi, Am 07.01.2018 um 11:39 schrieb Marc Weustink via Lazarus: > Imo the QT implementation should be adapted to behave the same. > Wat does Delphi in this case? Thank's for your reply. I only have an old Delphi 7 version here - they all don't have the Pattern option for TPen. When done manually, the ExtCreatePen function of the Windows GDI also expects an array with the length(s) of individual strokes in the pattern (see https://msdn.microsoft.com/en-us/library/windows/desktop/dd162705(v=vs.85).aspx ), so I would expect newer Delphi versions to implement it that way (same as on X). Of course this is still MY failure, not any of the LCL... Best regards, Alex From vojtech.cihak at atlas.cz Sun Jan 7 18:47:03 2018 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Sun, 07 Jan 2018 18:47:03 +0100 Subject: [Lazarus] =?utf-8?q?Strip_symbols_in_IDE?= Message-ID: <20180107184703.579D35CF@atlas.cz> Hi,   does the checkbox [X] Strip symbols from executble works well for you? It does nothing here. If I then do: >strip project1 in xterm, it works. I have "strip" installed in /usr/bin. It seems that other options have no efect to it, except -Xg [X] Use external debug file.   V. From bo.berglund at gmail.com Sun Jan 7 22:31:04 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Sun, 07 Jan 2018 22:31:04 +0100 Subject: [Lazarus] Can the Lazarus IDE match parentheses and begin/ends? References: <7tou4dd2gk7avlkncorjcu9ftvdhqu2l2v@4ax.com> <9cdc66a6-ae68-009b-5891-31bafc66d1ff@mfriebe.de> <04315d98irnrm8b14hlo8lm0b9gvacon5p@4ax.com> Message-ID: On Sat, 6 Jan 2018 12:33:43 +0100, Martin Frb via Lazarus wrote: >On 06/01/18 10:25, Bo Berglund via Lazarus wrote: >> Not working: >> ( ): Controlled by what? >Should be the same as () > >Just remember, I think there is a bug in 1.8 (already fixed for the not >yet released 1.8.2) > >brackets only work if they are surrounded by spaces (or maybe it was NOT >surrounded...) >https://bugs.freepascal.org/view.php?id=32803 > OK, I see.... There are strange highlighting going on, example: Parms.Add(IntToStr(Rev)); Here if I put the cursor left of the ; I get hightlight properly. But any place before or after any other ( or ) no highlight! In another code line if I do the same and put the cursorat the end ); between the last chars, then the highlight comes on and boxes the last ) paired with a ( on 7 lines above when there are a lot of both ( and ) inbetween.... Clearly an erroneous highlight. Well, the other highlightings seem to work at least. -- Bo Berglund Developer in Sweden From lazarus at mfriebe.de Sun Jan 7 22:45:09 2018 From: lazarus at mfriebe.de (Martin Frb) Date: Sun, 7 Jan 2018 22:45:09 +0100 Subject: [Lazarus] Can the Lazarus IDE match parentheses and begin/ends? In-Reply-To: References: <7tou4dd2gk7avlkncorjcu9ftvdhqu2l2v@4ax.com> <9cdc66a6-ae68-009b-5891-31bafc66d1ff@mfriebe.de> <04315d98irnrm8b14hlo8lm0b9gvacon5p@4ax.com> Message-ID: <67268322-0cc5-9ba2-38e1-79efc57d939e@mfriebe.de> On 07/01/18 22:31, Bo Berglund via Lazarus wrote: > In another code line if I do the same and put the cursorat the end ); > between the last chars, then the highlight comes on and boxes the last > ) paired with a ( on 7 lines above when there are a lot of both ( and > ) inbetween.... > Clearly an erroneous highlight. Please check this kind of errors, with 1.8.2 (once released) or the bug fix patch applied. If an incorrect bracket is highlighted with the fix, then please report it. Note that, brackets in strings or comments, will/should not be matched with brackets in code.    if (a = '(' ) then // (         a := ')';  // ) should match - the 2 brackets in code - AND the 2 brackets inside the 2 strings - AND the 2 brackets inside the 2 comments It should also match the correct quotes '. Bracket matching only ever looks at one kind of brackets. When matching (), it will totally ignore any []. So erroneous code like   if (a[1]] = 2) then will match the (). As well as the [] directly around the 1. And the extra ] will not match anything. From donald at ziesig.org Mon Jan 8 02:28:36 2018 From: donald at ziesig.org (Donald Ziesig) Date: Sun, 7 Jan 2018 20:28:36 -0500 Subject: [Lazarus] lazarus-ccr (or other) TBufDataSet Documentation? In-Reply-To: <1515313992865-0.post@n3.nabble.com> References: <1515313992865-0.post@n3.nabble.com> Message-ID: On 01/07/2018 03:33 AM, leledumbo via Lazarus wrote: >> So far I have had no success. Do I have to use the source alone? > I think there's none officially, but google gives me these: > - > http://wiki.lazarus.freepascal.org/How_to_write_in-memory_database_applications_in_Lazarus/FPC > - http://www.pp4s.co.uk/main/tu-db-bufdataset.html > > > > -- > Sent from: http://free-pascal-lazarus.989080.n3.nabble.com/ Thanks, I found both of those.  Unfortunately, they don't describe the api (especially the protected methods). From donald at ziesig.org Mon Jan 8 02:29:36 2018 From: donald at ziesig.org (Donald Ziesig) Date: Sun, 7 Jan 2018 20:29:36 -0500 Subject: [Lazarus] lazarus-ccr (or other) TBufDataSet Documentation? In-Reply-To: References: Message-ID: On 01/07/2018 03:32 AM, Michael Van Canneyt via Lazarus wrote: > > > On Sat, 6 Jan 2018, Donald Ziesig via Lazarus wrote: > >> Hi All! >> >> I have been trying to find documentation for the TBufDataSet (or >> TMemDataSet) as is available for most other components in the Lazarus >> Code and Component Repository Documentation.  So far I have had no >> success.  Do I have to use the source alone? > > Yes, for the time being... > > BufDataset is one of the next units on my list of units to document. > > Michael. > > Michael, I'm looking forward to that.  Keep up the good work. Don -------------- next part -------------- An HTML attachment was scrubbed... URL: From juha.manninen62 at gmail.com Mon Jan 8 18:55:11 2018 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Mon, 8 Jan 2018 19:55:11 +0200 Subject: [Lazarus] Extended filter for Code Completion Message-ID: 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? Juha From aaa5500 at ya.ru Mon Jan 8 19:30:42 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Mon, 8 Jan 2018 21:30:42 +0300 Subject: [Lazarus] Extended filter for Code Completion In-Reply-To: References: Message-ID: <0d747bc3-eae9-5b7f-a7cf-d51c80f03331@ya.ru> patch makes red hilite of current ID in the listbox. Can you tell how to make listbox 2x-3x wider? it's narrow. > Please test everybody. Does it have negative side-effects of some kind? -- Regards, Alexey From vojtech.cihak at atlas.cz Mon Jan 8 21:09:37 2018 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Mon, 08 Jan 2018 21:09:37 +0100 Subject: [Lazarus] =?utf-8?q?Extended_filter_for_Code_Completion?= In-Reply-To: 0000000083f90001b4d801535036 References: 0000000083f90001b4d801535036 Message-ID: <20180108210937.031A5C79@atlas.cz> It can be resized by mouse, by the small handle in bottom-rigth corner.   V. ______________________________________________________________ > Od: AlexeyT via Lazarus > Komu: Juha Manninen via Lazarus > Datum: 08.01.2018 19:30 > Předmět: Re: [Lazarus] Extended filter for Code Completion > patch makes red hilite of current ID in the listbox. Can you tell how to make listbox 2x-3x wider? it's narrow. > Please test everybody. Does it have negative side-effects of some kind? -- Regards, Alexey -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From badsectoracula at gmail.com Mon Jan 8 22:30:09 2018 From: badsectoracula at gmail.com (Kostas Michalopoulos) Date: Mon, 8 Jan 2018 23:30:09 +0200 Subject: [Lazarus] Package filenames with _package In-Reply-To: <19793d6a-739b-3e14-5657-4a811ec700f5@geldenhuys.co.uk> References: <1515314148732-0.post@n3.nabble.com> <19793d6a-739b-3e14-5657-4a811ec700f5@geldenhuys.co.uk> Message-ID: On Sun, Jan 7, 2018 at 1:06 PM, Graeme Geldenhuys via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > so why is everybody still limiting file extensions to 3 letters?? Some of my fpGUI included applications use file extensions like *.project etc. Hell, even Microsoft is catching up with that idea (although minor) and now use 4 letter extensions like *.docx etc. One reason is simply habit, but also because these extensions are visible to the user more often than not and having long extensions in filename lists (like, e.g, when using version control) become redundant noise and in some cases it takes space (like in file managers). Up to 4 letters is fine for me, 5 is stretching it and anything above that is only something i'd use for file types that i wont see often in a list and even then only if i can't avoid it (but really even just 4 characters gives you a lot of variation). -------------- next part -------------- An HTML attachment was scrubbed... URL: From mailinglists at geldenhuys.co.uk Mon Jan 8 22:38:23 2018 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Mon, 8 Jan 2018 21:38:23 +0000 Subject: [Lazarus] Package filenames with _package In-Reply-To: References: <1515314148732-0.post@n3.nabble.com> <19793d6a-739b-3e14-5657-4a811ec700f5@geldenhuys.co.uk> Message-ID: <9e5395b9-c04c-1acb-7b56-a1daa8742b45@geldenhuys.co.uk> On 2018-01-08 21:30, Kostas Michalopoulos via Lazarus wrote: > some cases it takes space (like in file managers). Up to 4 letters is fine > for me, 5 is stretching it and anything above that is only something i'd > use for file types that i wont see often in a list and even then only if i > can't avoid it (but really even just 4 characters gives you a lot of > variation). Then it seems Windows Explorer is right up your alley. :) They hide the file extension by default. Users (like me) have to explicitly go into the settings and enable "show file extensions" option. Even better, Linux and FreeBSD don't even need file extensions. File Extensions are simply for [some] human benefit (unlike Windows that requires them). Linux and FreeBSD OS's query the first 4-8 bytes of a file to accurately determine the file type and use the appropriate application to open them. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp From wkitty42 at windstream.net Mon Jan 8 22:51:01 2018 From: wkitty42 at windstream.net (wkitty42 at windstream.net) Date: Mon, 8 Jan 2018 16:51:01 -0500 Subject: [Lazarus] Package filenames with _package In-Reply-To: <9e5395b9-c04c-1acb-7b56-a1daa8742b45@geldenhuys.co.uk> References: <1515314148732-0.post@n3.nabble.com> <19793d6a-739b-3e14-5657-4a811ec700f5@geldenhuys.co.uk> <9e5395b9-c04c-1acb-7b56-a1daa8742b45@geldenhuys.co.uk> Message-ID: On 01/08/2018 04:38 PM, Graeme Geldenhuys via Lazarus wrote: > Even better, Linux and FreeBSD don't even need file extensions. File Extensions > are simply for [some] human benefit (unlike Windows that requires them). Linux > and FreeBSD OS's query the first 4-8 bytes of a file to accurately determine the > file type and use the appropriate application to open them. yup! i have a ton-load of scripts in perl, python, python3, bash, and just plain commands as if i were to type them manually... none of them have extensions on them... i don't even know what they are written in unless i go into them with an editor to modify them for some reason ;) -- NOTE: No off-list assistance is given without prior approval. *Please keep mailing list traffic on the list unless* *a signed and pre-paid contract is in effect with us.* From aaa5500 at ya.ru Tue Jan 9 08:05:39 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Tue, 9 Jan 2018 10:05:39 +0300 Subject: [Lazarus] LazUtils/LazUtf16 - why "widestring" Message-ID: function UTF16CharacterLength(p: PWideChar): integer; function UTF16Length(const s: widestring): PtrInt; overload; function UTF16Length(p: PWideChar; WordCount: PtrInt): PtrInt; overload; function UTF16Copy(const s: UnicodeString; StartCharIndex, CharCount: PtrInt): Unicodestring; function UTF16CharStart(P: PWideChar; Len, CharIndex: PtrInt): PWideChar; function UTF16Pos(const SearchForText, SearchInText: UnicodeString; StartPos: PtrInt = 1): PtrInt; function UTF16CharacterToUnicode(p: PWideChar; out CharLen: integer): Cardinal; function UnicodeToUTF16(u: cardinal): widestring; function IsUTF16CharValid(AChar, ANextChar: WideChar): Boolean; function IsUTF16StringValid(AWideStr: widestring): Boolean; function Utf16StringReplace(const S, OldPattern, NewPattern: WideString; Flags: TReplaceFlags): WideString; Pls, use UnicodeString type here -- Regards, Alexey From dezlov at gmail.com Tue Jan 9 09:50:46 2018 From: dezlov at gmail.com (Denis Kozlov) Date: Tue, 9 Jan 2018 08:50:46 +0000 Subject: [Lazarus] Extended filter for Code Completion In-Reply-To: References: Message-ID: <7f2d7f1a-9c00-885a-e899-d63b3bf072d0@gmail.com> This feature is awesome! Works perfect so far, even with unit names. It was on my wishlist since Lazarus 0.9 days. Denis On 08/01/2018 17: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? > > Juha From jmlandmesser at gmx.de Tue Jan 9 16:10:51 2018 From: jmlandmesser at gmx.de (John Landmesser) Date: Tue, 9 Jan 2018 16:10:51 +0100 Subject: [Lazarus] error on compiling trunk Message-ID: <44b6bc7a-9781-f17e-4e29-bfe58446d428@gmx.de> /lazarus/components/codetools/identcompletiontool.pas(634,31) Error: (3205) Illegal qualifier Lazarus 1.9.0 r56520M FPC 3.0.0 x86_64-linux-gtk2 From nc-gaertnma at netcologne.de Tue Jan 9 16:17:31 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Tue, 9 Jan 2018 16:17:31 +0100 Subject: [Lazarus] error on compiling trunk In-Reply-To: <44b6bc7a-9781-f17e-4e29-bfe58446d428@gmx.de> References: <44b6bc7a-9781-f17e-4e29-bfe58446d428@gmx.de> Message-ID: <20180109161731.3aa5607b@limapholos.matflo.wg> On Tue, 9 Jan 2018 16:10:51 +0100 John Landmesser via Lazarus wrote: > /lazarus/components/codetools/identcompletiontool.pas(634,31) Error: > (3205) Illegal qualifier > > > Lazarus 1.9.0 r56520M FPC 3.0.0 x86_64-linux-gtk2 Current version is 57024. Please update. Mattias From jmlandmesser at gmx.de Tue Jan 9 17:21:43 2018 From: jmlandmesser at gmx.de (John Landmesser) Date: Tue, 9 Jan 2018 17:21:43 +0100 Subject: [Lazarus] error on compiling trunk In-Reply-To: <20180109161731.3aa5607b@limapholos.matflo.wg> References: <44b6bc7a-9781-f17e-4e29-bfe58446d428@gmx.de> <20180109161731.3aa5607b@limapholos.matflo.wg> Message-ID: <023ebf66-5d35-1ffd-d012-c58ef1ac8c05@gmx.de> Am 09.01.2018 um 16:17 schrieb Mattias Gaertner via Lazarus: > On Tue, 9 Jan 2018 16:10:51 +0100 > John Landmesser via Lazarus wrote: > >> /lazarus/components/codetools/identcompletiontool.pas(634,31) Error: >> (3205) Illegal qualifier >> >> >> Lazarus 1.9.0 r56520M FPC 3.0.0 x86_64-linux-gtk2 > Current version is 57024. Please update. > > Mattias somehow strange svn update && make all clear Lazarus-Quelltext aufräumen: Erfolg Kompiliere Package CodeTools 1.0.1: Exit code 256, Fehler: 1, Hinweise: 1 codebeautifier.pas(241,54) Hint: Parameter "SrcPos" not used identcompletiontool.pas(634,31) Error: Illegal qualifier code:     if not CurItem.Identifier.IsEmpty then whats the cause? Lazarus 1.9.0 r56902M FPC 3.0.4 x86_64-linux-gtk2 thats on: System:    Host: MintBox Kernel: 4.10.0-42-generic x86_64 (64 bit gcc: 5.4.0)            Desktop: Cinnamon 3.6.7 (Gtk 2.24.30) dm: mdm Distro: Linux Mint 18.3 Sylvia No probs on Win10!! From donald at ziesig.org Tue Jan 9 17:54:41 2018 From: donald at ziesig.org (Donald Ziesig) Date: Tue, 9 Jan 2018 11:54:41 -0500 Subject: [Lazarus] Source | complete code - does nothing. Message-ID: <8c6bfcbd-8815-0e26-8a8e-0c7b677c1763@ziesig.org> 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 changes to text in editor. I  then tried Ctrl-Shift-X with similar (no) results. This is not a major issue for me, I was just being curious, but I would think that a main menu entry should do *something* ;-). What is it supposed to do? I am using the release version of Lazarus 1.8 (dated 2017-12-13) on Linux Mint 18.3 with gtk2. Thanks, Don Ziesig -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at kluug.net Tue Jan 9 17:59:11 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Tue, 9 Jan 2018 23:59:11 +0700 Subject: [Lazarus] Source | complete code - does nothing. In-Reply-To: <8c6bfcbd-8815-0e26-8a8e-0c7b677c1763@ziesig.org> References: <8c6bfcbd-8815-0e26-8a8e-0c7b677c1763@ziesig.org> Message-ID: <2ea089bf-7cad-4849-afa8-5a04f9281454@kluug.net> 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 changes to text in editor. > > I  then tried Ctrl-Shift-X with similar (no) results. > > This is not a major issue for me, I was just being curious, but I > would think that a main menu entry should do *something* ;-). > > What is it supposed to do? > > I am using the release version of Lazarus 1.8 (dated 2017-12-13) on > Linux Mint 18.3 with gtk2. > See http://wiki.lazarus.freepascal.org/Lazarus_1.8.0_release_notes IDE Changes -> Code creation. Ondrej -------------- next part -------------- An HTML attachment was scrubbed... URL: From vojtech.cihak at atlas.cz Tue Jan 9 18:03:35 2018 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Tue, 09 Jan 2018 18:03:35 +0100 Subject: [Lazarus] =?utf-8?q?Source_=7C_complete_code_-_does_nothing=2E?= In-Reply-To: 00000000840c0001dd180153502a References: 00000000840c0001dd180153502a Message-ID: <20180109180335.251D8F56@atlas.cz> Hi,   example - you write: i:=5; and hit Ctrl+Shift+X on that line and it will open dialog where you can choose if you want to create "i" as a local or class variable.   V. ______________________________________________________________ > Od: Donald Ziesig via Lazarus > Komu: lazarus at lists.lazarus-ide.org > Datum: 09.01.2018 17:54 > Předmět: [Lazarus] Source | complete code - does nothing. > 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 changes to text in editor. I  then tried Ctrl-Shift-X with similar (no) results. This is not a major issue for me, I was just being curious, but I would think that a main menu entry should do something ;-). What is it supposed to do? I am using the release version of Lazarus 1.8 (dated 2017-12-13) on Linux Mint 18.3 with gtk2. Thanks, Don Ziesig   ---------- -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From donald at ziesig.org Tue Jan 9 18:18:13 2018 From: donald at ziesig.org (Donald Ziesig) Date: Tue, 9 Jan 2018 12:18:13 -0500 Subject: [Lazarus] Source | complete code - does nothing. In-Reply-To: <20180109180335.251D8F56@atlas.cz> References: <20180109180335.251D8F56@atlas.cz> Message-ID: <8b1b316c-b970-2bf6-51ad-2e925c6dc46a@ziesig.org> On 01/09/2018 12:03 PM, Vojtěch Čihák via Lazarus wrote: > > Hi, > > example - you write: > > i:=5; > > and hit Ctrl+Shift+X on that line and it will open dialog where you > can choose if you want to create "i" as a local or class variable. > > V. > > ______________________________________________________________ > > Od: Donald Ziesig via Lazarus > > Komu: lazarus at lists.lazarus-ide.org > > Datum: 09.01.2018 17:54 > > Předmět: [Lazarus] Source | complete code - does nothing. > > > > 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 changes to text in editor. > > I  then tried Ctrl-Shift-X with similar (no) results. > > This is not a major issue for me, I was just being curious, but I > would think that a main menu entry should do *something* ;-). > > What is it supposed to do? > > I am using the release version of Lazarus 1.8 (dated 2017-12-13) on > Linux Mint 18.3 with gtk2. > > Thanks, > > Don Ziesig > > > > ---------- > > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > > Thanks, got it.  I thought if I entered "i :=" then ctrl-shift-x it would ask for a value and type, but it just throws an error in the messages form. Don -------------- next part -------------- An HTML attachment was scrubbed... URL: From nc-gaertnma at netcologne.de Tue Jan 9 19:12:08 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Tue, 9 Jan 2018 19:12:08 +0100 Subject: [Lazarus] error on compiling trunk In-Reply-To: <023ebf66-5d35-1ffd-d012-c58ef1ac8c05@gmx.de> References: <44b6bc7a-9781-f17e-4e29-bfe58446d428@gmx.de> <20180109161731.3aa5607b@limapholos.matflo.wg> <023ebf66-5d35-1ffd-d012-c58ef1ac8c05@gmx.de> Message-ID: <20180109191208.31fc4fd8@limapholos.matflo.wg> On Tue, 9 Jan 2018 17:21:43 +0100 John Landmesser via Lazarus wrote: > Am 09.01.2018 um 16:17 schrieb Mattias Gaertner via Lazarus: > > On Tue, 9 Jan 2018 16:10:51 +0100 > > John Landmesser via Lazarus wrote: > > > >> /lazarus/components/codetools/identcompletiontool.pas(634,31) Error: > >> (3205) Illegal qualifier > >> > >> > >> Lazarus 1.9.0 r56520M FPC 3.0.0 x86_64-linux-gtk2 > > Current version is 57024. Please update. > > > > Mattias > > somehow strange > > svn update && make all clear > > Lazarus-Quelltext aufräumen: Erfolg > Kompiliere Package CodeTools 1.0.1: Exit code 256, Fehler: 1, Hinweise: 1 > codebeautifier.pas(241,54) Hint: Parameter "SrcPos" not used > identcompletiontool.pas(634,31) Error: Illegal qualifier > > code: > >     if not CurItem.Identifier.IsEmpty then > > > whats the cause? That's not line 634 of identcompletiontool.pas of trunk. > Lazarus 1.9.0 r56902M FPC 3.0.4 x86_64-linux-gtk2 svn status components/codetools/identcompletiontool.pas Mattias From nc-gaertnma at netcologne.de Tue Jan 9 19:18:14 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Tue, 9 Jan 2018 19:18:14 +0100 Subject: [Lazarus] error on compiling trunk In-Reply-To: <20180109191208.31fc4fd8@limapholos.matflo.wg> References: <44b6bc7a-9781-f17e-4e29-bfe58446d428@gmx.de> <20180109161731.3aa5607b@limapholos.matflo.wg> <023ebf66-5d35-1ffd-d012-c58ef1ac8c05@gmx.de> <20180109191208.31fc4fd8@limapholos.matflo.wg> Message-ID: <20180109191814.2b1fef6e@limapholos.matflo.wg> On Tue, 9 Jan 2018 19:12:08 +0100 Mattias Gaertner via Lazarus wrote: >[...] > >     if not CurItem.Identifier.IsEmpty then > > > > > > whats the cause? > > That's not line 634 of identcompletiontool.pas of trunk. Sorry. My fault. It is the correct line. Mattias From nc-gaertnma at netcologne.de Tue Jan 9 19:22:23 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Tue, 9 Jan 2018 19:22:23 +0100 Subject: [Lazarus] error on compiling trunk In-Reply-To: <44b6bc7a-9781-f17e-4e29-bfe58446d428@gmx.de> References: <44b6bc7a-9781-f17e-4e29-bfe58446d428@gmx.de> Message-ID: <20180109192223.22c82c6f@limapholos.matflo.wg> On Tue, 9 Jan 2018 16:10:51 +0100 John Landmesser via Lazarus wrote: > /lazarus/components/codetools/identcompletiontool.pas(634,31) Error: > (3205) Illegal qualifier > > > Lazarus 1.9.0 r56520M FPC 3.0.0 x86_64-linux-gtk2 Fixed. Mattias From nc-gaertnma at netcologne.de Tue Jan 9 19:44:59 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Tue, 9 Jan 2018 19:44:59 +0100 Subject: [Lazarus] Extended filter for Code Completion In-Reply-To: References: Message-ID: <20180109194459.797982de@limapholos.matflo.wg> On Mon, 8 Jan 2018 19:55:11 +0200 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 name ExtendedFilter sounds as if it gives more options. Instead it adds identifiers that contains the identifier, behind the usual list of identifiers that starts with the identifiers. What would be a good name for this option? "AddContainsPrefix" or (not) "OnlyBeginsWithPrefix"? Mattias From jmlandmesser at gmx.de Tue Jan 9 20:01:20 2018 From: jmlandmesser at gmx.de (John Landmesser) Date: Tue, 9 Jan 2018 20:01:20 +0100 Subject: [Lazarus] error on compiling trunk In-Reply-To: <20180109192223.22c82c6f@limapholos.matflo.wg> References: <44b6bc7a-9781-f17e-4e29-bfe58446d428@gmx.de> <20180109192223.22c82c6f@limapholos.matflo.wg> Message-ID: <196000c1-72dd-e2a7-6a8b-a721aaa4c96e@gmx.de> Am 09.01.2018 um 19:22 schrieb Mattias Gaertner via Lazarus: > On Tue, 9 Jan 2018 16:10:51 +0100 > John Landmesser via Lazarus wrote: > >> /lazarus/components/codetools/identcompletiontool.pas(634,31) Error: >> (3205) Illegal qualifier >> >> >> Lazarus 1.9.0 r56520M FPC 3.0.0 x86_64-linux-gtk2 > Fixed. > > Mattias ok with: Lazarus 1.9.0 r57029 FPC 3.0.0 x86_64-linux-gtk2 thank you Mattias! From juha.manninen62 at gmail.com Tue Jan 9 23:09:07 2018 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Wed, 10 Jan 2018 00:09:07 +0200 Subject: [Lazarus] Source | complete code - does nothing. In-Reply-To: <2ea089bf-7cad-4849-afa8-5a04f9281454@kluug.net> References: <8c6bfcbd-8815-0e26-8a8e-0c7b677c1763@ziesig.org> <2ea089bf-7cad-4849-afa8-5a04f9281454@kluug.net> Message-ID: BTW, it shows a dialog only for variables. With methods it works like Ctrl-Shift-C. When I add a method in implementation section and press Ctrl-Shift-X, it could ask about visibily in the class. Now it makes it private always. On the other hand, the same dialog cannot be reused. It would require a new dialog. Juha From tc at epidata.info Wed Jan 10 09:20:06 2018 From: tc at epidata.info (Torsten Bonde Christiansen) Date: Wed, 10 Jan 2018 09:20:06 +0100 Subject: [Lazarus] Identifier completion broken in r57037? Message-ID: Hi All. After updating trunk today the identifier completion seems broken for me: 1) Using CTRL+Space in empty space, does nothing - it used to bring up a complete list of identifiers/keywords/etc... 2) Using CTRL+Space on 1+ characters correctly brings up a list of identifiers matching already typed characters 3) Using CTRL+Space after . (dot) does nothing - it used to bring up a list of methods/properties related to the class of the variable I am using: Lazarus 1.9.0 r57037 FPC 3.0.0 x86_64-linux-gtk2 Regards, Torsten. From nc-gaertnma at netcologne.de Wed Jan 10 09:30:21 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Wed, 10 Jan 2018 09:30:21 +0100 Subject: [Lazarus] Identifier completion broken in r57037? In-Reply-To: References: Message-ID: <20180110093021.30a1180c@limapholos.matflo.wg> On Wed, 10 Jan 2018 09:20:06 +0100 Torsten Bonde Christiansen via Lazarus wrote: > Hi All. > > After updating trunk today the identifier completion seems broken for me: > > 1) Using CTRL+Space in empty space, does nothing - it used to bring up a > complete list of identifiers/keywords/etc... > 2) Using CTRL+Space on 1+ characters correctly brings up a list of > identifiers matching already typed characters > 3) Using CTRL+Space after . (dot) does nothing - it used to bring up a > list of methods/properties related to the class of the variable > > I am using: > Lazarus 1.9.0 r57037 FPC 3.0.0 x86_64-linux-gtk2 My fault. Sorry. Fixed. Mattias From svaa at ciberpiula.net Wed Jan 10 13:13:07 2018 From: svaa at ciberpiula.net (Santiago A.) Date: Wed, 10 Jan 2018 13:13:07 +0100 Subject: [Lazarus] SIGSEGV executing SqlDb Message-ID: <366247eb-be25-0372-97cb-630138cafada@ciberpiula.net> Hello: --------------  TestDb.Open;  sqlScript1.Execute; // ==> SIGSEGV -------------- It uses SQLlite3 connector. No matter what are the contents of the script I get "External: SIGSEGV" and jumps to debug assembler with a lot of ??????. I can't enter step by step into function, or check anything., I only get SIGSEGV. The SQL3lite.dll is in the executable directory and in the lazarus.exe directory. I have installed the package "sqlite3laz" v 0.4. I have changed the SqlScript by an SQLQuery, the same error I have attached the form. This is the first time I try to work with SQldb and probably I'm doing something stupid or missing something evident, but I can't see what. Nevertheless SIGSEGV is not very informative. Any hint? Lazarus V.1.8.0 FPC 3.0.4 SVN: 56594 i386-win32/win64 Runing on windows 7 -- Saludos Santiago A. -------------- next part -------------- object Form1: TForm1 Left = 256 Height = 322 Top = 128 Width = 558 Caption = 'Form1' ClientHeight = 322 ClientWidth = 558 LCLVersion = '1.8.0.6' object Button1: TButton Left = 129 Height = 25 Top = 181 Width = 75 Caption = 'Button1' OnClick = Button1Click TabOrder = 0 end object CabdiariTb: TDbf FilePath = 'G:\OBJECT\001\' IndexDefs = <> ReadOnly = True TableName = 'CABDIARI.DBF' TableLevel = 4 FilterOptions = [] left = 22 top = 17 end object LinDiariTb: TDbf FilePath = 'G:\OBJECT\001\' IndexDefs = <> ReadOnly = True TableName = 'LINDIARI.DBF' TableLevel = 4 FilterOptions = [] left = 96 top = 17 object LinDiariTbF_ANNOASI: TStringField FieldKind = fkData FieldName = 'F_ANNOASI' Index = 0 LookupCache = False ProviderFlags = [pfInUpdate, pfInWhere] ReadOnly = False Required = False Size = 4 end object LinDiariTbF_NUMASI: TStringField FieldKind = fkData FieldName = 'F_NUMASI' Index = 1 LookupCache = False ProviderFlags = [pfInUpdate, pfInWhere] ReadOnly = False Required = False Size = 6 end object LinDiariTbF_FECHASI: TDateField FieldKind = fkData FieldName = 'F_FECHASI' Index = 2 LookupCache = False ProviderFlags = [pfInUpdate, pfInWhere] ReadOnly = False Required = False end object LinDiariTbF_NUMDOC: TStringField FieldKind = fkData FieldName = 'F_NUMDOC' Index = 3 LookupCache = False ProviderFlags = [pfInUpdate, pfInWhere] ReadOnly = False Required = False Size = 12 end object LinDiariTbF_FECHDOC: TDateField FieldKind = fkData FieldName = 'F_FECHDOC' Index = 4 LookupCache = False ProviderFlags = [pfInUpdate, pfInWhere] ReadOnly = False Required = False end object LinDiariTbF_CUENTA: TStringField FieldKind = fkData FieldName = 'F_CUENTA' Index = 5 LookupCache = False ProviderFlags = [pfInUpdate, pfInWhere] ReadOnly = False Required = False Size = 10 end object LinDiariTbF_IMPORTE: TFloatField FieldKind = fkData FieldName = 'F_IMPORTE' Index = 6 LookupCache = False ProviderFlags = [pfInUpdate, pfInWhere] ReadOnly = False Required = False MaxValue = 0 MinValue = 0 Precision = 2 end object LinDiariTbF_DH: TStringField FieldKind = fkData FieldName = 'F_DH' Index = 7 LookupCache = False ProviderFlags = [pfInUpdate, pfInWhere] ReadOnly = False Required = False Size = 1 end object LinDiariTbF_OBSERLIN: TStringField FieldKind = fkData FieldName = 'F_OBSERLIN' Index = 8 LookupCache = False ProviderFlags = [pfInUpdate, pfInWhere] ReadOnly = False Required = False Size = 50 end object LinDiariTbF_CONCILIA: TBooleanField FieldKind = fkData FieldName = 'F_CONCILIA' Index = 9 LookupCache = False ProviderFlags = [pfInUpdate, pfInWhere] ReadOnly = False Required = False DisplayValues = 'True;False' end object LinDiariTbF_LIBROIVA: TStringField FieldKind = fkData FieldName = 'F_LIBROIVA' Index = 10 LookupCache = False ProviderFlags = [pfInUpdate, pfInWhere] ReadOnly = False Required = False Size = 1 end object LinDiariTbF_TIPOCOD: TStringField FieldKind = fkData FieldName = 'F_TIPOCOD' Index = 11 LookupCache = False ProviderFlags = [pfInUpdate, pfInWhere] ReadOnly = False Required = False Size = 1 end object LinDiariTbF_CODPERSO: TStringField FieldKind = fkData FieldName = 'F_CODPERSO' Index = 12 LookupCache = False ProviderFlags = [pfInUpdate, pfInWhere] ReadOnly = False Required = False Size = 6 end object LinDiariTbF_NUMIVA: TStringField FieldKind = fkData FieldName = 'F_NUMIVA' Index = 13 LookupCache = False ProviderFlags = [pfInUpdate, pfInWhere] ReadOnly = False Required = False Size = 6 end object LinDiariTbF_TIPIVA: TStringField FieldKind = fkData FieldName = 'F_TIPIVA' Index = 14 LookupCache = False ProviderFlags = [pfInUpdate, pfInWhere] ReadOnly = False Required = False Size = 1 end object LinDiariTbF_C90: TStringField FieldKind = fkData FieldName = 'F_C90' Index = 15 LookupCache = False ProviderFlags = [pfInUpdate, pfInWhere] ReadOnly = False Required = False Size = 10 end end object SaldosTb: TDbf FilePath = 'G:\OBJECT\001\' IndexDefs = <> ReadOnly = True TableName = 'SALDOS.DBF' TableLevel = 4 FilterOptions = [] left = 176 top = 17 end object CuentasTb: TDbf FilePath = 'G:\OBJECT\001\' IndexDefs = <> ReadOnly = True TableName = 'CUENTAS.DBF' TableLevel = 4 FilterOptions = [] left = 240 top = 17 end object ContabDb: TSQLite3Connection Connected = False LoginPrompt = False DatabaseName = 'C:\temp\importadbf\datos\CONTAB.DAT' KeepConnection = False Transaction = SQLTransaction1 left = 386 top = 29 end object SQLTransaction1: TSQLTransaction Active = False Database = ContabDb left = 472 top = 29 end object SQLScript1: TSQLScript DataBase = ContabDb Transaction = SQLTransaction1 UseDollarString = False Directives.Strings = ( 'SET TERM' 'COMMIT WORK' 'COMMIT RETAIN' 'COMMIT' '#IFDEF' '#IFNDEF' '#ELSE' '#ENDIF' '#DEFINE' '#UNDEF' '#UNDEFINE' ) Script.Strings = ( 'create table cuentas' '(cuenta varchar(10) not null,' ' nombre varchar(40) not null,' ' private key (cuenta));' '' 'create table apunte' '(numasi integer not null' ' linea integer not null,' ' refasi integer not null,' ' fecha date not null,' ' cuenta varchar(10) not null,' ' importe numeric(15,2) not null,' ' observacion varchar(60) not null,' ' private key (numasi,linea));' ) Terminator = ';' CommentsinSQL = True UseSetTerm = True UseCommit = True UseDefines = True left = 384 top = 104 end object SQLQuery1: TSQLQuery FieldDefs = <> Database = ContabDb Transaction = SQLTransaction1 SQL.Strings = ( 'create table cuentas' '(cuenta varchar(10) not null,' ' nombre varchar(40) not null,' ' private key (cuenta));' '' ) Params = <> left = 331 top = 189 end end -------------- next part -------------- unit main; {$mode objfpc}{$H+} interface uses Classes, SysUtils, dbf, sqldb, db, sqlite3conn, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls; type { TForm1 } TForm1 = class(TForm) Button1: TButton; CabdiariTb: TDbf; LinDiariTb: TDbf; LinDiariTbF_ANNOASI: TStringField; LinDiariTbF_C90: TStringField; LinDiariTbF_CODPERSO: TStringField; LinDiariTbF_CONCILIA: TBooleanField; LinDiariTbF_CUENTA: TStringField; LinDiariTbF_DH: TStringField; LinDiariTbF_FECHASI: TDateField; LinDiariTbF_FECHDOC: TDateField; LinDiariTbF_IMPORTE: TFloatField; LinDiariTbF_LIBROIVA: TStringField; LinDiariTbF_NUMASI: TStringField; LinDiariTbF_NUMDOC: TStringField; LinDiariTbF_NUMIVA: TStringField; LinDiariTbF_OBSERLIN: TStringField; LinDiariTbF_TIPIVA: TStringField; LinDiariTbF_TIPOCOD: TStringField; SaldosTb: TDbf; CuentasTb: TDbf; ContabDb: TSQLite3Connection; SQLQuery1: TSQLQuery; SQLScript1: TSQLScript; SQLTransaction1: TSQLTransaction; procedure Button1Click(Sender: TObject); private { private declarations } public { public declarations } end; var Form1: TForm1; implementation {$R *.lfm} { TForm1 } procedure TForm1.Button1Click(Sender: TObject); begin ContabDb.Open; SQLQuery1.ExecSQL; // sqlScript1.Execute; end; end. From lazarus at kluug.net Wed Jan 10 14:40:20 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Wed, 10 Jan 2018 20:40:20 +0700 Subject: [Lazarus] High-DPI TImageList Message-ID: 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 done the design-time part yet either. That means that the ImageList dialog doesn't support multiple resolutions. But everything else should be good. + Good news: I was able to add interpolation support with alpha chanel (did you know FPC supports it? :) ) !!! So images are scaled smoothly and nicely without any external library evolved - and it is supported on all OS/WS. Obviously scaling down works better than scaling up. For now I tested Win32 only - other widgetsets will be probably broken. I'll take a look into them later. Issue report with a test project: https://bugs.freepascal.org/view.php?id=32967 Branch to test: https://svn.freepascal.org/svn/lazarus/branches/HiDPIImageList Please test and comment - especially component vendors. To take advantage of the new PPI features in your control you have to replace all ImgList.Width, ImgList.Height, ImgList.Draw* etc. methods with PPI-aware properties/constructs. Like: ImgList.Width -> ImgList.WidthForImagePPI[DesiredWidthAt96PPI, Font.PixelsPerInch] - or - ImgResolution := ImgList.ResolutionForImagePPI[DesiredWidthAt96PPI, Font.PixelsPerInch]; ImgResolution := ImgList.Resolution[DesiredWidthRegardlessOfPPI]; ImageWidth := ImgResolution.Width; ImageHeight := ImgResolution.Height; ImgResolution.Draw(...); ImgResolution.GetBitmap(...); etc. Ondrej _______________________________________________ Lazarusdev mailing list Lazarusdev at freepascal.org https://idefix.freepascal.org/cgi-bin/mailman/listinfo/lazarusdev -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at kluug.net Wed Jan 10 14:42:49 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Wed, 10 Jan 2018 20:42:49 +0700 Subject: [Lazarus] High-DPI TImageList In-Reply-To: References: Message-ID: <56c43169-95d9-9d08-bd0b-04f87df261dd@kluug.net> And the screenshots of a LCL application at 100% and 150%. -------------- next part -------------- A non-text attachment was scrubbed... Name: HiDPIImageList-150.png Type: image/png Size: 22134 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: HiDPIImageList-100.png Type: image/png Size: 12141 bytes Desc: not available URL: From aaa5500 at ya.ru Wed Jan 10 17:20:54 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Wed, 10 Jan 2018 19:20:54 +0300 Subject: [Lazarus] IDE needs lexers JSON, XML Message-ID: IMO it's good to install JSON/XML syntaxes in IDE. many apps have res in such formats. Useful to edit files in IDE. PS. I found that SynEdit is bad optimized for 4M length lines in XML files. editor shows freezes. ATSynEdit is better optimized for 4M len lines - now -- Regards, Alexey From mlnglsts at bgss.hu Wed Jan 10 17:47:51 2018 From: mlnglsts at bgss.hu (Gabor Boros) Date: Wed, 10 Jan 2018 17:47:51 +0100 Subject: [Lazarus] fixes_1_8 - DBLookupComboBox broken Message-ID: <08db8ddf-bc72-2579-902b-445ce3c60879@bgss.hu> Hi All, I have a Linux-Qt application and if compile with fixes_1_8 rev 56990 or later the DBLookupComboBox not working as before. Can drop down it and select from the items with the mouse but the selection not showed. The problem not appears with rev 56987. Gabor From juha.manninen62 at gmail.com Wed Jan 10 18:50:23 2018 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Wed, 10 Jan 2018 19:50:23 +0200 Subject: [Lazarus] fixes_1_8 - DBLookupComboBox broken In-Reply-To: <08db8ddf-bc72-2579-902b-445ce3c60879@bgss.hu> References: <08db8ddf-bc72-2579-902b-445ce3c60879@bgss.hu> Message-ID: On Wed, Jan 10, 2018 at 6:47 PM, Gabor Boros via Lazarus wrote: > I have a Linux-Qt application and if compile with fixes_1_8 rev 56990 or > later the DBLookupComboBox not working as before. Can drop down it and > select from the items with the mouse but the selection not showed. The > problem not appears with rev 56987. Is it related to this? https://bugs.freepascal.org/view.php?id=32943 Rev 56987 in 1_8_fixes is: "Translations: updated all LazReport translations from trunk" and does not affect DBLookupComboBox. Juha From juha.manninen62 at gmail.com Wed Jan 10 18:59:29 2018 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Wed, 10 Jan 2018 19:59:29 +0200 Subject: [Lazarus] Extended filter for Code Completion In-Reply-To: <20180109194459.797982de@limapholos.matflo.wg> References: <20180109194459.797982de@limapholos.matflo.wg> Message-ID: On Tue, Jan 9, 2018 at 8:44 PM, Mattias Gaertner via Lazarus wrote: > "AddContainsPrefix" or (not) "OnlyBeginsWithPrefix"? Or "IncludeContainsPrefix"? The GUI checkbox caption would be "Include items containing typed text". Or something ... Juha From bo.berglund at gmail.com Wed Jan 10 19:29:24 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Wed, 10 Jan 2018 19:29:24 +0100 Subject: [Lazarus] Can the Lazarus IDE match parentheses and begin/ends? References: <7tou4dd2gk7avlkncorjcu9ftvdhqu2l2v@4ax.com> <9cdc66a6-ae68-009b-5891-31bafc66d1ff@mfriebe.de> <04315d98irnrm8b14hlo8lm0b9gvacon5p@4ax.com> <67268322-0cc5-9ba2-38e1-79efc57d939e@mfriebe.de> Message-ID: On Sun, 7 Jan 2018 22:45:09 +0100, Martin Frb via Lazarus wrote: >Please check this kind of errors, with 1.8.2 (once released) or the bug >fix patch applied. I guess I will have to get around to learning how to build fpc and lazarus on Windows then... On my Linux boxes it is a simple matter of svn update (or co) and then make clean, make bigide and make install (with some parameters). I have written an installation script for this and it works everytime on my Linux boxes (RPi mostly). But on Windows I am lost, so I have used the binary installer, which makes my installation a lot harder to modify for various configurations... -- Bo Berglund Developer in Sweden From werner.pamler at freenet.de Wed Jan 10 20:06:47 2018 From: werner.pamler at freenet.de (Werner Pamler) Date: Wed, 10 Jan 2018 20:06:47 +0100 Subject: [Lazarus] fixes_1_8 - DBLookupComboBox broken In-Reply-To: <08db8ddf-bc72-2579-902b-445ce3c60879@bgss.hu> References: <08db8ddf-bc72-2579-902b-445ce3c60879@bgss.hu> Message-ID: <1da6ff8b-f0e4-a537-ebf2-ea2c5c3b1c57@freenet.de> Am 10.01.2018 um 17:47 schrieb Gabor Boros via Lazarus: > Hi All, > > I have a Linux-Qt application and if compile with fixes_1_8 rev 56990 > or later the DBLookupComboBox not working as before. Can drop down it > and select from the items with the mouse but the selection not showed. > The problem not appears with rev 56987. Could you check out the attached demo? It works for me with Laz trunk and fixes (both r57032) on Windows and Linux GTK2/QT (trunk tested only). The left grid shows the main dataset, the right grid is the lookup dataset. The lookup combo is at the bottom. Select an item from the combo and the CountryCode field should update accordingly. Also rotating the mouse wheel over the combobox works. -------------- next part -------------- A non-text attachment was scrubbed... Name: dblookupcombo_mousewheel.zip Type: application/x-zip-compressed Size: 2421 bytes Desc: not available URL: From mlnglsts at bgss.hu Wed Jan 10 20:21:18 2018 From: mlnglsts at bgss.hu (Gabor Boros) Date: Wed, 10 Jan 2018 20:21:18 +0100 Subject: [Lazarus] fixes_1_8 - DBLookupComboBox broken In-Reply-To: References: <08db8ddf-bc72-2579-902b-445ce3c60879@bgss.hu> Message-ID: 2018. 01. 10. 18:50 keltezéssel, Juha Manninen via Lazarus írta: > > Is it related to this? > https://bugs.freepascal.org/view.php?id=32943 I don't know. Attached a simple example. With it I can reproduce the problem on Windows too. So the problem is not Qt specific. > > Rev 56987 in 1_8_fixes is: > "Translations: updated all LazReport translations from trunk" > and does not affect DBLookupComboBox. Yes. 56987 is the last revision which works as expected. Gabor -------------- next part -------------- A non-text attachment was scrubbed... Name: DBLookupComboBox.tar.gz Type: application/x-gzip Size: 1570 bytes Desc: not available URL: From lazarus at mfriebe.de Wed Jan 10 20:22:22 2018 From: lazarus at mfriebe.de (Martin Frb) Date: Wed, 10 Jan 2018 19:22:22 +0000 Subject: [Lazarus] Can the Lazarus IDE match parentheses and begin/ends? In-Reply-To: References: <7tou4dd2gk7avlkncorjcu9ftvdhqu2l2v@4ax.com> <9cdc66a6-ae68-009b-5891-31bafc66d1ff@mfriebe.de> <04315d98irnrm8b14hlo8lm0b9gvacon5p@4ax.com> <67268322-0cc5-9ba2-38e1-79efc57d939e@mfriebe.de> Message-ID: On 10/01/2018 18:29, Bo Berglund via Lazarus wrote: > On Sun, 7 Jan 2018 22:45:09 +0100, Martin Frb via Lazarus > wrote: > >> Please check this kind of errors, with 1.8.2 (once released) or the bug >> fix patch applied. > I guess I will have to get around to learning how to build fpc and > lazarus on Windows then... Install fpc from the fpc installer. Or keep the fpc as installed by the lazarus installer. (If you move the directory, you need to edit fpc.cfg) Keep a lazarus.exe Get the lazarus source (svn or otherwise; or patch the existing one). - Copy the lazarus.exe into the top level of your source folder. - Optional: create a lazarus.cfg file with the primary conf path http://wiki.freepascal.org/Multiple_Lazarus#Using_lazarus.cfg_file - Run it (make sure all pathes are correct in Tools Options / or run with --setup) - choose menu Tools > build lazarus Open and build the ide/startlazarus project. From mlnglsts at bgss.hu Wed Jan 10 21:07:41 2018 From: mlnglsts at bgss.hu (Gabor Boros) Date: Wed, 10 Jan 2018 21:07:41 +0100 Subject: [Lazarus] fixes_1_8 - DBLookupComboBox broken In-Reply-To: <1da6ff8b-f0e4-a537-ebf2-ea2c5c3b1c57@freenet.de> References: <08db8ddf-bc72-2579-902b-445ce3c60879@bgss.hu> <1da6ff8b-f0e4-a537-ebf2-ea2c5c3b1c57@freenet.de> Message-ID: <9e705243-49ef-7e4d-b16c-c6a028b1a9f7@bgss.hu> 2018. 01. 10. 20:06 keltezéssel, Werner Pamler via Lazarus írta: > Could you check out the attached demo? It works for me with Laz trunk > and fixes (both r57032) on Windows and Linux GTK2/QT (trunk tested > only). The left grid shows the main dataset, the right grid is the > lookup dataset. The lookup combo is at the bottom. Select an item from > the combo and the CountryCode field should update accordingly. Also > rotating the mouse wheel over the combobox works. Tried with fixes_1_8 56990 on Windows. Works as expected. Gabor From werner.pamler at freenet.de Wed Jan 10 21:57:40 2018 From: werner.pamler at freenet.de (Werner Pamler) Date: Wed, 10 Jan 2018 21:57:40 +0100 Subject: [Lazarus] fixes_1_8 - DBLookupComboBox broken In-Reply-To: References: <08db8ddf-bc72-2579-902b-445ce3c60879@bgss.hu> Message-ID: <705eed12-390a-e200-b262-c5d8ff214310@freenet.de> Am 10.01.2018 um 20:21 schrieb Gabor Boros via Lazarus: > I don't know. Attached a simple example. With it I can reproduce the > problem on Windows too. So the problem is not Qt specific. You did not assign a Datasource to the DBLookupCombo. This is where the value picked from the combo is stored to. Without a Datasource I consider the present hehavior to be correct. Maybe another dev can comment who is more familiar with databases than me. From werner.pamler at freenet.de Wed Jan 10 22:18:19 2018 From: werner.pamler at freenet.de (Werner Pamler) Date: Wed, 10 Jan 2018 22:18:19 +0100 Subject: [Lazarus] fixes_1_8 - DBLookupComboBox broken In-Reply-To: <705eed12-390a-e200-b262-c5d8ff214310@freenet.de> References: <08db8ddf-bc72-2579-902b-445ce3c60879@bgss.hu> <705eed12-390a-e200-b262-c5d8ff214310@freenet.de> Message-ID: Am 10.01.2018 um 21:57 schrieb Werner Pamler via Lazarus: > Am 10.01.2018 um 20:21 schrieb Gabor Boros via Lazarus: >> I don't know. Attached a simple example. With it I can reproduce the >> problem on Windows too. So the problem is not Qt specific. > > You did not assign a Datasource to the DBLookupCombo. This is where > the value picked from the combo is stored to. Without a Datasource I > consider the present hehavior to be correct. > > Maybe another dev can comment who is more familiar with databases than > me. And I should mention this: The code which I had to merge manually in r56990 was the same code which Juha had added in 55911 to dblookupcombobox.inc in order to "respect ReadOnly property in TDBLookupComboBox and TDBLookupListBox". And a data-aware control which is not linked to a DataSource is readonly, isn't it? From donald at ziesig.org Thu Jan 11 01:16:25 2018 From: donald at ziesig.org (Donald Ziesig) Date: Wed, 10 Jan 2018 19:16:25 -0500 Subject: [Lazarus] Recommended practices for Win / Linux development. Message-ID: <304b5552-5d6e-f17c-f3ea-52ddb6a8d832@ziesig.org> Hi Everyone! A long time ago, I tried to develop common software for Windows and Linux.  I remember having problems keeping the object files, etc, separated so that the two versions of Lazarus would re-compile the appropriate files.  I have been working almost exclusively on Linux since then, but now I need to use both with shared source code files. Are there any recommended practices for setting up Lazarus and various directories that would make this easier? Thanks, Don Ziesig From mike.cornflake at gmail.com Thu Jan 11 03:05:05 2018 From: mike.cornflake at gmail.com (Michael Thompson) Date: Thu, 11 Jan 2018 10:05:05 +0800 Subject: [Lazarus] fixes_1_8 - DBLookupComboBox broken Message-ID: On 11 January 2018 at 05:18, Werner Pamler via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > Am 10.01.2018 um 21:57 schrieb Werner Pamler via Lazarus: > >> Am 10.01.2018 um 20:21 schrieb Gabor Boros via Lazarus: >> >>> I don't know. Attached a simple example. With it I can reproduce the >>> problem on Windows too. So the problem is not Qt specific. >>> >> >> You did not assign a Datasource to the DBLookupCombo. This is where the >> value picked from the combo is stored to. Without a Datasource I consider >> the present hehavior to be correct. >> >> Maybe another dev can comment who is more familiar with databases than me. >> > I'm experiencing issues with this control as well. I'm also not assigning Datasource. Not assigned Datasource is a valid use for this control, with several Delphi and Lazarus examples out there, including on our wiki. Unbound use is used for keeping the active record in a dataset syncronised with the contents of the DBLookupCombobox. The code I'm using was derived from here: http://wiki.freepascal.org/TDBLookupComboBox#Unbound_use I've not investigated the code supplied by by Gabor Boros, but in my case the combobox looks fine, until you change selection, then all entries in the Combobox are cleared and no OnScroll is fired in the List Datasource. For now I've worked around this by adding a Dummy TBufDataset. I'm pointing the DBLookupCombo.Datasource to the TBufDataset, and the datafield to a variant field in TBufDataset. This kind of works, though I'm now experiencing a random AccessViolation. The code I've quickly inserted the TBufDataset workaround into is complex (I'm cascading multiple DBLookupCombobox's, changing one affects all others after it), and I inserted the TBufDataset workaround in a hurry. For now, I'm assuming the memory issue is mine. I plan on looking at Gabor's code tonight, see if we're experiencing the same issue. Cheers Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From badsectoracula at gmail.com Thu Jan 11 08:36:03 2018 From: badsectoracula at gmail.com (Kostas Michalopoulos) Date: Thu, 11 Jan 2018 09:36:03 +0200 Subject: [Lazarus] Package filenames with _package In-Reply-To: <9e5395b9-c04c-1acb-7b56-a1daa8742b45@geldenhuys.co.uk> References: <1515314148732-0.post@n3.nabble.com> <19793d6a-739b-3e14-5657-4a811ec700f5@geldenhuys.co.uk> <9e5395b9-c04c-1acb-7b56-a1daa8742b45@geldenhuys.co.uk> Message-ID: On Mon, Jan 8, 2018 at 11:38 PM, Graeme Geldenhuys via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > Then it seems Windows Explorer is right up your alley. :) They hide the file extension by default. Users (like me) have to explicitly go into the settings and enable "show file extensions" option. I do the same as i dislike having the extensions hidden. I want them to be short, not hidden. Also you see file lists in more places than a file manager - a common one being version control programs. > Even better, Linux and FreeBSD don't even need file extensions. File Extensions are simply for [some] human benefit (unlike Windows that requires them). Linux and FreeBSD OS's query the first 4-8 bytes of a file to accurately determine the file type and use the appropriate application to open them. Not really. Linux, FreeBSD or any other Unix OS have no idea about file types beyond executable files (and that is set via the executable bit). Application association is something desktop environments concern themselves with. KDE and GNOME back in the 90s decided to use MIME types together with an association database based on globs and eventually they decided to create a common database through the freedesktop.org project. Today most (but not all) desktop environments tend to simply use this shared database which does the association from file to MIME type using several approaches, including globs and magic byte sniffing, depending on each type. In fact the recommended approach is to first match by glob and if that fails or produces conflicting results (e.g. two types claim a single file) only then to try to check the file's contents. You can read the full spec here: https://specifications.freedesktop.org/shared-mime-info-spec/0.18/ar01s02.html#idm139750558222816 Although note that this is just a convention and not a standard (freedesktop is not a standards body, it just happens to be popular enough due to being made by KDE and GNOME during their most popular days) - other desktop environments or programs do their own thing and more often than not this thing is based on pattern matching filenames for their extensions. It makes sense after all since opening a file to read its contents would be much slower - especially when done through network filesystems - than simply checking the filename, which is why the content checking part is used as a fallback instead of the primary way to determine the file contents (some file managers even ignore the magic part if they are browsing a network FS). And magic data do not really help with multipurpose file formats like containers - how are you going to tell the difference between a Java JAR, Java WAR and a LibreOffice ODT file when all are ZIP files? - or text files like JSON, Plist, INI and several others that are used for special purpose storage. Hell, you don't even need to look much further than Lazarus here: packages, projects and session files (and perhaps other stuff) are simple XML files and all of them even have the same root node and no namespace configuration, so you cannot really separate them from each other from anything else than the extension. This "extension isn't a unix thing" wasn't even true in the days of the original Unix - extensions were used all over the place there too as they often were useful for shell scripts. The only system (that i know of) that really didn't need extensions was the classic MacOS which simply stored the file type as metadata and used that to decide what to do with the file. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nc-gaertnma at netcologne.de Thu Jan 11 09:21:55 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 11 Jan 2018 09:21:55 +0100 Subject: [Lazarus] Recommended practices for Win / Linux development. In-Reply-To: <304b5552-5d6e-f17c-f3ea-52ddb6a8d832@ziesig.org> References: <304b5552-5d6e-f17c-f3ea-52ddb6a8d832@ziesig.org> Message-ID: <20180111092155.1b993e2a@limapholos.matflo.wg> On Wed, 10 Jan 2018 19:16:25 -0500 Donald Ziesig via Lazarus wrote: > Hi Everyone! > > A long time ago, I tried to develop common software for Windows and > Linux.  I remember having problems keeping the object files, etc, > separated so that the two versions of Lazarus would re-compile the > appropriate files.  I have been working almost exclusively on Linux > since then, but now I need to use both with shared source code files. Shared by svn/git or shared on disk/network share? > Are there any recommended practices for setting up Lazarus and various > directories that would make this easier? By default Lazarus projects use lib/$(TargetCPU)-$(TargetOS) as unit output directory. Mattias From mlnglsts at bgss.hu Thu Jan 11 10:14:37 2018 From: mlnglsts at bgss.hu (Gabor Boros) Date: Thu, 11 Jan 2018 10:14:37 +0100 Subject: [Lazarus] fixes_1_8 - DBLookupComboBox broken In-Reply-To: <705eed12-390a-e200-b262-c5d8ff214310@freenet.de> References: <08db8ddf-bc72-2579-902b-445ce3c60879@bgss.hu> <705eed12-390a-e200-b262-c5d8ff214310@freenet.de> Message-ID: 2018. 01. 10. 21:57 keltezéssel, Werner Pamler via Lazarus írta: > You did not assign a Datasource to the DBLookupCombo. This is where the > value picked from the combo is stored to. Without a Datasource I > consider the present hehavior to be correct. I use the DBLookupComboBox without DataSource always in the past 10-20 years with Lazarus and Delphi. From the TDBLookupComboBox's wiki page: "Unbound use - You can get the combobox to look up values from one table without storing the results in another by leaving the DataSource and the KeyField properties empty." http://wiki.freepascal.org/TDBLookupComboBox#Unbound_use From my POV, unacceptable if a fix broke a feature in a fixes_* branch after x.y.0 version released from it. Gabor From werner.pamler at freenet.de Thu Jan 11 12:22:18 2018 From: werner.pamler at freenet.de (Werner Pamler) Date: Thu, 11 Jan 2018 12:22:18 +0100 Subject: [Lazarus] fixes_1_8 - DBLookupComboBox broken In-Reply-To: References: <08db8ddf-bc72-2579-902b-445ce3c60879@bgss.hu> <705eed12-390a-e200-b262-c5d8ff214310@freenet.de> Message-ID: Am 11.01.2018 um 10:14 schrieb Gabor Boros via Lazarus: > From my POV, unacceptable if a fix broke a feature in a fixes_* branch > after x.y.0 version released from it. Sorry for the inconvenience. Call it "unacceptable" or not - that's the way things are, nobody is perfect. Please open "dblookupcombobox.inc" (in (lazarus)/lcl/include), find the method TDBLookupCombobox.Select and replace it by the following code which restores the code before r56990/r55911 for the case that the lookupcombobox is not ReadOnly. Your demo works here. Please test carefully - as you see I don't have any experience with that ominous Unbound mode... procedure TDBLookupComboBox.Select; begin   FDataLink.OnDataChange := nil;   try     if FDataLink.Edit then     begin        FDataLink.Modified;        FDataLink.UpdateData;        inherited Select;     end     else     begin        // if cannot modify, let it reset        if ReadOnly then begin          FDatalink.Reset;          DataChange(Self);        end else begin          FDataLink.Modified;          inherited Select;        end;     end;   finally     FDataLink.OnDataChange := @DataChange;   end; end; From lazarus at kluug.net Thu Jan 11 14:55:54 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Thu, 11 Jan 2018 20:55:54 +0700 Subject: [Lazarus] High-DPI TImageList In-Reply-To: References: Message-ID: <028f420b-2719-5010-93fb-796d1cc4fb31@kluug.net> I added Qt, Qt5 and Gtk2 support. I also rewrote the IDE ImageList editor to support multiple resolutions. Ondrej From mlnglsts at bgss.hu Thu Jan 11 15:24:59 2018 From: mlnglsts at bgss.hu (Gabor Boros) Date: Thu, 11 Jan 2018 15:24:59 +0100 Subject: [Lazarus] fixes_1_8 - DBLookupComboBox broken In-Reply-To: References: <08db8ddf-bc72-2579-902b-445ce3c60879@bgss.hu> <705eed12-390a-e200-b262-c5d8ff214310@freenet.de> Message-ID: 2018. 01. 11. 12:22 keltezéssel, Werner Pamler via Lazarus írta: > Am 11.01.2018 um 10:14 schrieb Gabor Boros via Lazarus: >> From my POV, unacceptable if a fix broke a feature in a fixes_* branch >> after x.y.0 version released from it. > > Sorry for the inconvenience. Call it "unacceptable" or not - that's the > way things are, nobody is perfect. I have no problem with you just with the broken feature. ;-) > > Please open "dblookupcombobox.inc" (in (lazarus)/lcl/include), find the > method TDBLookupCombobox.Select and replace it by the following code > which restores the code before r56990/r55911 for the case that the > lookupcombobox is not ReadOnly. Your demo works here. Please test > carefully - as you see I don't have any experience with that ominous > Unbound mode... I switched to the latest fixes_1_8 (57037) and replaced TDBLookupCombobox.Select with the provided code. After that DBLookupCombobox works as expected for me at first try. I use it daily and will report if see problem with it. Thank you! Gabor From dec12 at avidsoft.com.hk Thu Jan 11 16:13:15 2018 From: dec12 at avidsoft.com.hk (Dennis) Date: Thu, 11 Jan 2018 23:13:15 +0800 Subject: [Lazarus] Any tips to speed up Lazarus->GDB debugger? Message-ID: <9a1d2da4-2ac3-514e-658c-48cc923e833a@avidsoft.com.hk> I am using Lazarus 1.8 Win64 , FPC 3.0.4. As with older versions, debugger is very slow (compared to Delphi). Is there any tricks I can use to speed up the debugger e.g. turn off debug info of all lazarus units/object files? I remember in Delphi 5, they had an option of whether to use Debug dcu (of the main VCL units/objects files). Is there a similar switch I can use to disable debugger in all, except my own source code so as to speed up the debugger? Dennis -------------- next part -------------- An HTML attachment was scrubbed... URL: From donald at ziesig.org Thu Jan 11 16:25:24 2018 From: donald at ziesig.org (Donald Ziesig) Date: Thu, 11 Jan 2018 10:25:24 -0500 Subject: [Lazarus] Recommended practices for Win / Linux development. In-Reply-To: <20180111092155.1b993e2a@limapholos.matflo.wg> References: <304b5552-5d6e-f17c-f3ea-52ddb6a8d832@ziesig.org> <20180111092155.1b993e2a@limapholos.matflo.wg> Message-ID: <3be026c6-f8e4-acc6-83ce-a883b99a1754@ziesig.org> On 01/11/2018 03:21 AM, Mattias Gaertner via Lazarus wrote: > On Wed, 10 Jan 2018 19:16:25 -0500 > Donald Ziesig via Lazarus wrote: > >> Hi Everyone! >> >> A long time ago, I tried to develop common software for Windows and >> Linux.  I remember having problems keeping the object files, etc, >> separated so that the two versions of Lazarus would re-compile the >> appropriate files.  I have been working almost exclusively on Linux >> since then, but now I need to use both with shared source code files. > Shared by svn/git or shared on disk/network share? Shared Folders on Dropbox (for now).  GitHub later. >> Are there any recommended practices for setting up Lazarus and various >> directories that would make this easier? > By default Lazarus projects use > lib/$(TargetCPU)-$(TargetOS) > as unit output directory. Got It. How about Line Endings? > > Mattias Thanks, Don From luizamericop at gmail.com Thu Jan 11 17:19:50 2018 From: luizamericop at gmail.com (Luiz Americo Pereira Camara) Date: Thu, 11 Jan 2018 13:19:50 -0300 Subject: [Lazarus] Any tips to speed up Lazarus->GDB debugger? In-Reply-To: <9a1d2da4-2ac3-514e-658c-48cc923e833a@avidsoft.com.hk> References: <9a1d2da4-2ac3-514e-658c-48cc923e833a@avidsoft.com.hk> Message-ID: 2018-01-11 12:13 GMT-03:00 Dennis via Lazarus : > I am using Lazarus 1.8 Win64 , FPC 3.0.4. > As with older versions, debugger is very slow (compared to Delphi). > By slow you mean slow to compile or slow when stepping the code? If the later, close the callstack window while stepping in the code Luiz -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at mfriebe.de Thu Jan 11 17:59:40 2018 From: lazarus at mfriebe.de (Martin Frb) Date: Thu, 11 Jan 2018 16:59:40 +0000 Subject: [Lazarus] Any tips to speed up Lazarus->GDB debugger? In-Reply-To: <9a1d2da4-2ac3-514e-658c-48cc923e833a@avidsoft.com.hk> References: <9a1d2da4-2ac3-514e-658c-48cc923e833a@avidsoft.com.hk> Message-ID: On 11/01/2018 15:13, Dennis via Lazarus wrote: > I am using Lazarus 1.8 Win64 , FPC 3.0.4. > As with older versions, debugger is very slow (compared to Delphi). > > Is there any tricks I can use to speed up the debugger e.g. turn off > debug info of all lazarus units/object files? > > I remember in Delphi 5, they had an option of whether to use Debug dcu > (of the main VCL units/objects files). > Is there a similar switch I can use to disable debugger in all, except > my own source code so as to speed up the debugger? Not really... There is the fpdebug package (its part of the install). It is faster, but very basic, and many things do not work at all. Well depends what you want to speed up. The time F9 needs to start your app? Sorry nothing can be done. Same for stepping with F7/F8. Note, you can do the next step, before all your watches have been evaluated. If you find it irritating to wait for those, you can open the history, stack and watches window, and use the power button to power them off. Evaluation of watches. You can compile with DBG_WITH_GDB_WATCHES Then you can add watches as follow >-data-evaluate-expression SomeVariable If you have lots of watches, you should notice that they evaluate faster. But the IDE will no longer try to deal with the pascal syntax. So you may have to add deref of some hidden refs yourself. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nc-gaertnma at netcologne.de Thu Jan 11 18:41:55 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 11 Jan 2018 18:41:55 +0100 Subject: [Lazarus] Recommended practices for Win / Linux development. In-Reply-To: <3be026c6-f8e4-acc6-83ce-a883b99a1754@ziesig.org> References: <304b5552-5d6e-f17c-f3ea-52ddb6a8d832@ziesig.org> <20180111092155.1b993e2a@limapholos.matflo.wg> <3be026c6-f8e4-acc6-83ce-a883b99a1754@ziesig.org> Message-ID: <20180111184155.705e4fd7@limapholos.matflo.wg> On Thu, 11 Jan 2018 10:25:24 -0500 Donald Ziesig via Lazarus wrote: >[...] > How about Line Endings? Lazarus and FPC support LF, CRLF and CR. Mattias From lazarus at mfriebe.de Thu Jan 11 18:45:01 2018 From: lazarus at mfriebe.de (Martin Frb) Date: Thu, 11 Jan 2018 17:45:01 +0000 Subject: [Lazarus] Any tips to speed up Lazarus->GDB debugger? In-Reply-To: <9a1d2da4-2ac3-514e-658c-48cc923e833a@avidsoft.com.hk> References: <9a1d2da4-2ac3-514e-658c-48cc923e833a@avidsoft.com.hk> Message-ID: On 11/01/2018 15:13, Dennis via Lazarus wrote: > > I remember in Delphi 5, they had an option of whether to use Debug dcu > (of the main VCL units/objects files). > Is there a similar switch I can use to disable debugger in all, except > my own source code so as to speed up the debugger? To add to my other reply You can compile LCL, and package without debug info. See package options for each package, or additions and overrides. (and you can modify lib path, so maybe keep several versions...) If you do, you may save 1 second of the start time. (actually not sure if the time is saved during start, or at some later point) Depends on the gdb version. And your computer speed. With the latest gdb savings will be way below a second.... You can also try gdb 8. That may save half a second. -------------- next part -------------- An HTML attachment was scrubbed... URL: From leledumbo_cool at yahoo.co.id Fri Jan 12 00:02:15 2018 From: leledumbo_cool at yahoo.co.id (leledumbo) Date: Thu, 11 Jan 2018 16:02:15 -0700 (MST) Subject: [Lazarus] IDE needs lexers JSON, XML In-Reply-To: References: Message-ID: <1515711735708-0.post@n3.nabble.com> > IMO it's good to install JSON/XML syntaxes in IDE. many apps have res in such formats Isn't it already there? I don't remember, though, but my Lazarus has them already. -- Sent from: http://free-pascal-lazarus.989080.n3.nabble.com/ From dezlov at gmail.com Fri Jan 12 00:29:11 2018 From: dezlov at gmail.com (Denis Kozlov) Date: Thu, 11 Jan 2018 23:29:11 +0000 Subject: [Lazarus] Recommended practices for Win / Linux development. In-Reply-To: <3be026c6-f8e4-acc6-83ce-a883b99a1754@ziesig.org> References: <304b5552-5d6e-f17c-f3ea-52ddb6a8d832@ziesig.org> <20180111092155.1b993e2a@limapholos.matflo.wg> <3be026c6-f8e4-acc6-83ce-a883b99a1754@ziesig.org> Message-ID: On 11/01/2018 15:25, Donald Ziesig via Lazarus wrote: > How about Line Endings? You can use system unit constants which will map to the appropriate values on each platform: System.LineEnding System.DirectorySeparator Also keep in mind that you can write conditional code aimed at specific platforms, for example: {$IFDEF WINDOWS}   Path := 'C:\Temp\'; {$ELSE}   Path := '/tmp/'; {$ENDIF} Denis -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike.cornflake at gmail.com Fri Jan 12 01:43:50 2018 From: mike.cornflake at gmail.com (Michael Thompson) Date: Fri, 12 Jan 2018 08:43:50 +0800 Subject: [Lazarus] fixes_1_8 - DBLookupComboBox broken In-Reply-To: References: <08db8ddf-bc72-2579-902b-445ce3c60879@bgss.hu> <705eed12-390a-e200-b262-c5d8ff214310@freenet.de> Message-ID: On 11 January 2018 at 19:22, Werner Pamler via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > Please open "dblookupcombobox.inc" (in (lazarus)/lcl/include), find the > method TDBLookupCombobox.Select and replace it by the following code which > restores the code before r56990/r55911 for the case that the lookupcombobox > is not ReadOnly. Your demo works here. Please test carefully - as you see I > don't have any experience with that ominous Unbound mode... > Many thanks. Applying the code to my copy of Trunk (and then removing my TBufDataset workaround) appears to have completely resolved my issues with TDBLookupCombobox as well. Cheers Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaa5500 at ya.ru Fri Jan 12 06:53:31 2018 From: aaa5500 at ya.ru (Alexey) Date: Fri, 12 Jan 2018 08:53:31 +0300 Subject: [Lazarus] IDE needs lexers JSON, XML In-Reply-To: <1515711735708-0.post@n3.nabble.com> References: <1515711735708-0.post@n3.nabble.com> Message-ID: <480DB4FE-60A4-44FB-96C2-E1202E3797CE@ya.ru> 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. From luca at wetron.es Fri Jan 12 07:28:19 2018 From: luca at wetron.es (Luca Olivetti) Date: Fri, 12 Jan 2018 07:28:19 +0100 Subject: [Lazarus] Any tips to speed up Lazarus->GDB debugger? In-Reply-To: References: <9a1d2da4-2ac3-514e-658c-48cc923e833a@avidsoft.com.hk> Message-ID: <4f9be71b-1653-4394-b54f-6ccef5253580@wetron.es> El 11/01/18 a les 18:45, Martin Frb via Lazarus ha escrit: > On 11/01/2018 15:13, Dennis via Lazarus wrote: >> >> I remember in Delphi 5, they had an option of whether to use Debug dcu >> (of the main VCL units/objects files). >> Is there a similar switch I can use to disable debugger in all, except >> my own source code so as to speed up the debugger? > To add to my other reply > > You can compile LCL, and package without debug info. > > See package options for each package, or additions and overrides. > (and you can modify lib path, so maybe keep several versions...) > > If you do, you may save 1 second of the start time. (actually not sure > if the time is saved during start, or at some later point) And then lose 10 minutes because you need to trace a routine in the LCL. And an hour more because you discover that the routine is actually in the RTL ;-) Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From lazarus at kluug.net Fri Jan 12 07:33:19 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Fri, 12 Jan 2018 13:33:19 +0700 Subject: [Lazarus] IDE needs lexers JSON, XML In-Reply-To: <480DB4FE-60A4-44FB-96C2-E1202E3797CE@ya.ru> References: <1515711735708-0.post@n3.nabble.com> <480DB4FE-60A4-44FB-96C2-E1202E3797CE@ya.ru> Message-ID: 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 XML or INI file, the correct highlighters are picked up. Not for JSON, though. As for file filters - we offer *.* so you can open any file without problems - nothing needs to be done here. Ondrej -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: hheddkemckihdpjc.png Type: image/png Size: 18523 bytes Desc: not available URL: From aaa5500 at ya.ru Fri Jan 12 08:54:02 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Fri, 12 Jan 2018 10:54:02 +0300 Subject: [Lazarus] IDE needs lexers JSON, XML In-Reply-To: References: <1515711735708-0.post@n3.nabble.com> <480DB4FE-60A4-44FB-96C2-E1202E3797CE@ya.ru> Message-ID: <58eb0ed1-5c05-4bc0-9927-2c5881509307@ya.ru>  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). > > When I open an XML or INI file, the correct highlighters are picked > up. Not for JSON, though. > -- Regards, Alexey From aaa5500 at ya.ru Fri Jan 12 08:55:45 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Fri, 12 Jan 2018 10:55:45 +0300 Subject: [Lazarus] IDE, XML syntax hiliting of Message-ID: <3e7296b6-40c8-7f55-52dd-b744e13d9e14@ya.ru> It is not ok: brackets hilite with one color, inside text in another. In almost all text editors, this hilites as single token. -- Regards, Alexey From lazarus at kluug.net Fri Jan 12 09:51:55 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Fri, 12 Jan 2018 15:51:55 +0700 Subject: [Lazarus] IDE needs lexers JSON, XML In-Reply-To: <58eb0ed1-5c05-4bc0-9927-2c5881509307@ya.ru> References: <1515711735708-0.post@n3.nabble.com> <480DB4FE-60A4-44FB-96C2-E1202E3797CE@ya.ru> <58eb0ed1-5c05-4bc0-9927-2c5881509307@ya.ru> Message-ID: <65136d22-2eed-4522-44ff-0368ea3cb957@kluug.net> 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 recognized to use the JScript parser. I promise I'll look at them :) Ondrej From werner.pamler at freenet.de Fri Jan 12 15:04:45 2018 From: werner.pamler at freenet.de (Werner Pamler) Date: Fri, 12 Jan 2018 15:04:45 +0100 Subject: [Lazarus] fixes_1_8 - DBLookupComboBox broken In-Reply-To: References: <08db8ddf-bc72-2579-902b-445ce3c60879@bgss.hu> <705eed12-390a-e200-b262-c5d8ff214310@freenet.de> Message-ID: <0719fd59-8f9c-7e8e-d98a-95e7d2429162@freenet.de> Am 12.01.2018 um 01:43 schrieb Michael Thompson: > On 11 January 2018 at 19:22, Werner Pamler via Lazarus > > wrote: > > Please open "dblookupcombobox.inc" (in (lazarus)/lcl/include), > find the method TDBLookupCombobox.Select and replace it by the > following code which restores the code before r56990/r55911 for > the case that the lookupcombobox is not ReadOnly. Your demo works > here. Please test carefully - as you see I don't have any > experience with that ominous Unbound mode... > > > Many thanks.  Applying the code to my copy of Trunk (and then removing > my TBufDataset workaround) appears to have completely resolved my > issues with TDBLookupCombobox as well. I committed the fix to trunk (r57060) and requested backporting to fixes. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlnglsts at bgss.hu Fri Jan 12 15:18:39 2018 From: mlnglsts at bgss.hu (Gabor Boros) Date: Fri, 12 Jan 2018 15:18:39 +0100 Subject: [Lazarus] fixes_1_8 - DBLookupComboBox broken In-Reply-To: <0719fd59-8f9c-7e8e-d98a-95e7d2429162@freenet.de> References: <08db8ddf-bc72-2579-902b-445ce3c60879@bgss.hu> <705eed12-390a-e200-b262-c5d8ff214310@freenet.de> <0719fd59-8f9c-7e8e-d98a-95e7d2429162@freenet.de> Message-ID: <397aca20-54f2-1b01-7866-67fee51f3f73@bgss.hu> 2018. 01. 12. 15:04 keltezéssel, Werner Pamler via Lazarus írta: > I committed the fix to trunk (r57060) and requested backporting to fixes. Thank you very much! :-) Gabor From vojtech.cihak at atlas.cz Fri Jan 12 19:38:04 2018 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Fri, 12 Jan 2018 19:38:04 +0100 Subject: [Lazarus] =?utf-8?q?Redundant_assigned=28X=29_and_=28X_is_Txxx=29?= =?utf-8?q?_in_Laz=2E_sources?= Message-ID: <20180112193804.83D0CBBB@atlas.cz> Hi,   I wrote a small routine to search Lazarus sources and it found about 60 places similar to this (taborderdlg.pas, line 398):   if Assigned(LookupRoot) and (LookupRoot is TWinControl) then begin   Should I make a patch for all occurences?   V. -------------- next part -------------- An HTML attachment was scrubbed... URL: From juha.manninen62 at gmail.com Fri Jan 12 20:44:47 2018 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Fri, 12 Jan 2018 21:44:47 +0200 Subject: [Lazarus] Redundant assigned(X) and (X is Txxx) in Laz. sources In-Reply-To: <20180112193804.83D0CBBB@atlas.cz> References: <20180112193804.83D0CBBB@atlas.cz> Message-ID: On Fri, Jan 12, 2018 at 8:38 PM, Vojtěch Čihák via Lazarus wrote: > I wrote a small routine to search Lazarus sources and it found about 60 > places similar to this (taborderdlg.pas, line 398): > > if Assigned(LookupRoot) and (LookupRoot is TWinControl) then begin > > Should I make a patch for all occurences? Yes, I think the patch would be applied. IIRC "is" was not allowed with Nil references in old FPC versions but it was a long time ago. BTW, a regular expression search in the Find in Files dialog would have found those cases, too. Juha From nc-gaertnma at netcologne.de Fri Jan 12 23:23:44 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Fri, 12 Jan 2018 23:23:44 +0100 Subject: [Lazarus] Redundant assigned(X) and (X is Txxx) in Laz. sources In-Reply-To: References: <20180112193804.83D0CBBB@atlas.cz> Message-ID: <20180112232344.1d9aa50a@limapholos.matflo.wg> On Fri, 12 Jan 2018 21:44:47 +0200 Juha Manninen via Lazarus wrote: > On Fri, Jan 12, 2018 at 8:38 PM, Vojtěch Čihák via Lazarus > wrote: > > I wrote a small routine to search Lazarus sources and it found about 60 > > places similar to this (taborderdlg.pas, line 398): > > > > if Assigned(LookupRoot) and (LookupRoot is TWinControl) then begin > > > > Should I make a patch for all occurences? > > Yes, I think the patch would be applied. > IIRC "is" was not allowed with Nil references in old FPC versions but > it was a long time ago. No, "is" was always checking for nil. Maybe some people are confused by "as", which does not check for nil. Mattias From dec12 at avidsoft.com.hk Sat Jan 13 06:01:33 2018 From: dec12 at avidsoft.com.hk (Dennis) Date: Sat, 13 Jan 2018 13:01:33 +0800 Subject: [Lazarus] Redundant assigned(X) and (X is Txxx) in Laz. sources In-Reply-To: <20180112232344.1d9aa50a@limapholos.matflo.wg> References: <20180112193804.83D0CBBB@atlas.cz> <20180112232344.1d9aa50a@limapholos.matflo.wg> Message-ID: <4bbdff46-ba88-48cc-a560-7b0d62808959@avidsoft.com.hk> Mattias Gaertner via Lazarus wrote: > On Fri, 12 Jan 2018 21:44:47 +0200 > Juha Manninen via Lazarus wrote: > >> On Fri, Jan 12, 2018 at 8:38 PM, Vojtěch Čihák via Lazarus >> wrote: >>> I wrote a small routine to search Lazarus sources and it found about 60 >>> places similar to this (taborderdlg.pas, line 398): >>> >>> if Assigned(LookupRoot) and (LookupRoot is TWinControl) then begin >>> >>> Should I make a patch for all occurences? >> Yes, I think the patch would be applied. >> IIRC "is" was not allowed with Nil references in old FPC versions but >> it was a long time ago. > No, "is" was always checking for nil. > Maybe some people are confused by "as", which does not check for nil. > > Mattias I am now confused, so in FPC, it is safe to just use: if LookupRoot is TWinControl instead of if assigned(LookupRoot) and (LookupRoot is TWinControl) then .... is it safe to with LookupRoot as TWinControl do begin .... end; or should I always if assigned(LookupRoot) then with LookupRoot as TWinControl do begin .... end; Dennis From nc-gaertnma at netcologne.de Sat Jan 13 08:47:51 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sat, 13 Jan 2018 08:47:51 +0100 Subject: [Lazarus] Redundant assigned(X) and (X is Txxx) in Laz. sources In-Reply-To: <4bbdff46-ba88-48cc-a560-7b0d62808959@avidsoft.com.hk> References: <20180112193804.83D0CBBB@atlas.cz> <20180112232344.1d9aa50a@limapholos.matflo.wg> <4bbdff46-ba88-48cc-a560-7b0d62808959@avidsoft.com.hk> Message-ID: <20180113084751.79ccc111@limapholos.matflo.wg> On Sat, 13 Jan 2018 13:01:33 +0800 Dennis via Lazarus wrote: >[...] > I am now confused, so > in FPC, it is safe to just use: if LookupRoot is TWinControl > instead of > if assigned(LookupRoot) and (LookupRoot is TWinControl) then .... Yes. > is it safe to > with LookupRoot as TWinControl do begin > .... > end; No. > or should I always > if assigned(LookupRoot) then > with LookupRoot as TWinControl do begin > .... > end; Yes. Mattias From juha.manninen62 at gmail.com Sat Jan 13 11:08:47 2018 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Sat, 13 Jan 2018 12:08:47 +0200 Subject: [Lazarus] Extended filter for Code Completion In-Reply-To: References: <20180109194459.797982de@limapholos.matflo.wg> Message-ID: I renamed variable names and improved the GUI text in r57072. Now it says: "Include identifiers containing prefix". Please test. From mailinglists at geldenhuys.co.uk Sat Jan 13 16:33:52 2018 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Sat, 13 Jan 2018 15:33:52 +0000 Subject: [Lazarus] Recommended practices for Win / Linux development. In-Reply-To: <3be026c6-f8e4-acc6-83ce-a883b99a1754@ziesig.org> References: <304b5552-5d6e-f17c-f3ea-52ddb6a8d832@ziesig.org> <20180111092155.1b993e2a@limapholos.matflo.wg> <3be026c6-f8e4-acc6-83ce-a883b99a1754@ziesig.org> Message-ID: <7fd85041-024b-60e6-d60f-dbd66006667e@geldenhuys.co.uk> On 2018-01-11 15:25, Donald Ziesig via Lazarus wrote: > Shared Folders on Dropbox (for now). GitHub later. Just double check that what goes in does come out. About 2.5 years ago I let Dropbox (Windows client) "backup" my Git repositories. Silently (unknown to me at the time), Dropbox decided to skip some files. So the backups ended up being useless. I ended up using Google Drive instead. Just something to look out for and test - before you really need to rely on those backups. On a side note... Git is a "distributed version control system". Every clone is a perfect copy of the repository. So you really don't need Dropbox to share content with others. Others can clone directly from your "public" directory on your machine (eg: in a LAN office environment). Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp From r030t1 at gmail.com Sun Jan 14 02:38:05 2018 From: r030t1 at gmail.com (R0b0t1) Date: Sat, 13 Jan 2018 19:38:05 -0600 Subject: [Lazarus] Recommended practices for Win / Linux development. In-Reply-To: <304b5552-5d6e-f17c-f3ea-52ddb6a8d832@ziesig.org> References: <304b5552-5d6e-f17c-f3ea-52ddb6a8d832@ziesig.org> Message-ID: On Wed, Jan 10, 2018 at 6:16 PM, Donald Ziesig via Lazarus wrote: > Hi Everyone! > > A long time ago, I tried to develop common software for Windows and Linux. > I remember having problems keeping the object files, etc, separated so that > the two versions of Lazarus would re-compile the appropriate files. I have > been working almost exclusively on Linux since then, but now I need to use > both with shared source code files. > Can you try to remember what happened? > Are there any recommended practices for setting up Lazarus and various > directories that would make this easier? > I helped work on a program that was used heavily on both Windows and Linux. We typically did not need to do anything special; as mentioned, the output directories include the target platform. The biggest issue we had was that we used a fair number of non-Lazarus/FPC dependencies, and it ended up being easier, in general, to produce complete installations for Windows from Windows in a lot of cases. But compiling and cross compiling worked fine. In fact, Lazarus/FPC was the only environment we found or that I know about today that handles platform differences so well. Cheers, R0b0t1 From michael at freepascal.org Sun Jan 14 13:05:18 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 14 Jan 2018 13:05:18 +0100 (CET) Subject: [Lazarus] Change in TStrings.LoadFromFile/LoadFromStream encoding handling Message-ID: Hello, Just a heads-up. The LoadFromStream and LoadFromFile calls of TStrings have been changed. They now by default take into account encoding. This change was necessary for Delphi compatibility and to be more in line with the TStringStream.Create endocing aware constructors. If you don't mess with the default encodings, then nothing should change. If you do change encodings then you may need to check your code. You can always revert to the old behaviour by passing a True value for the new IgnoreEncoding parameter to LoadFromStream/LoadFromFile. Change is documented at: http://wiki.freepascal.org/User_Changes_Trunk#Classes_TStrings.LoadFromStream.2FFile_encoding_handling Michael. From nc-gaertnma at netcologne.de Mon Jan 15 16:42:25 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 15 Jan 2018 16:42:25 +0100 Subject: [Lazarus] pas2js mailing list Message-ID: <20180115164225.6faf1e75@limapholos.matflo.wg> Hi, There is now a public mailing list for pas2js. You can subscribe here: http://lists.freepascal.org/mailman/listinfo/pas2js/ Mattias From jmlandmesser at gmx.de Mon Jan 15 18:25:41 2018 From: jmlandmesser at gmx.de (John Landmesser) Date: Mon, 15 Jan 2018 18:25:41 +0100 Subject: [Lazarus] Linux: howto define file *.lpi to be opened with lazarus? Message-ID: <86855d4c-a917-dc7f-1318-9acd35cef146@gmx.de> I'm on Linux-Mint Cinnamon and i want to associate *.lpi with lazarus Application: *.lpi is of Filetype XML, but we need the fileExtension *.lpi here!! found: lazarus.desktop copied:  cp '/home/john1/lazarus/install/lazarus.desktop' /usr/share/applications/ and lazarus-mime.xml copied:  cp '/home/john1/lazarus/install/lazarus-mime.xml' '/usr/share/mime/application/' Content of these two files seems to define for what i'm looking for, but reboot wasn't enough. What i'm missing to get the filetypes/extension-Database updated? Tipps are welcome!! From jmlandmesser at gmx.de Mon Jan 15 18:40:01 2018 From: jmlandmesser at gmx.de (John Landmesser) Date: Mon, 15 Jan 2018 18:40:01 +0100 Subject: [Lazarus] Linux: howto define file *.lpi to be opened with lazarus? In-Reply-To: <86855d4c-a917-dc7f-1318-9acd35cef146@gmx.de> References: <86855d4c-a917-dc7f-1318-9acd35cef146@gmx.de> Message-ID: tried this, didn't work :-( update-mime-database /usr/share/mime/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From hdpc at talktalk.net Mon Jan 15 18:40:01 2018 From: hdpc at talktalk.net (Howard Page-Clark) Date: Mon, 15 Jan 2018 17:40:01 +0000 Subject: [Lazarus] Linux: howto define file *.lpi to be opened with lazarus? In-Reply-To: <86855d4c-a917-dc7f-1318-9acd35cef146@gmx.de> References: <86855d4c-a917-dc7f-1318-9acd35cef146@gmx.de> Message-ID: <84b201a3-01c1-9931-04ff-14e0174624e4@talktalk.net> On 15/01/18 17:25, John Landmesser via Lazarus wrote: > I'm on Linux-Mint Cinnamon and i want to associate *.lpi with lazarus > Application: > > *.lpi is of Filetype XML, but we need the fileExtension *.lpi here!! > > found: > > lazarus.desktop > > copied: > >  cp '/home/john1/lazarus/install/lazarus.desktop' > /usr/share/applications/ > > and > > lazarus-mime.xml > > copied: > >  cp '/home/john1/lazarus/install/lazarus-mime.xml' > '/usr/share/mime/application/' > > Content of these two files seems to define for what i'm looking for, > but reboot wasn't enough. > > What i'm missing to get the filetypes/extension-Database updated? > > Tipps are welcome!! > Navigate to any .lpi file on your disk using the file browser (Nemo). Right click on that .lpi, and choose Properties. In the xxxx.lpi Properties dialog click on the third button at the top, Open With, and choose Lazarus from the list (if it is installed) or use the edit box at the bottom of the dialog to locate a Lazarus or StartLazarus executable if you have a various Lazarus versions to choose from. You can set this choice as the default. Howard From jmlandmesser at gmx.de Mon Jan 15 18:47:51 2018 From: jmlandmesser at gmx.de (John Landmesser) Date: Mon, 15 Jan 2018 18:47:51 +0100 Subject: [Lazarus] Linux: howto define file *.lpi to be opened with lazarus? In-Reply-To: <84b201a3-01c1-9931-04ff-14e0174624e4@talktalk.net> References: <86855d4c-a917-dc7f-1318-9acd35cef146@gmx.de> <84b201a3-01c1-9931-04ff-14e0174624e4@talktalk.net> Message-ID: Am 15.01.2018 um 18:40 schrieb Howard Page-Clark via Lazarus: > Navigate to any .lpi file on your disk using the file browser (Nemo). > Right click on that .lpi, and choose Properties. In the xxxx.lpi > Properties dialog click on the third button at the top, Open With, and > choose Lazarus from the list (if it is installed) or use the edit box > at the bottom of the dialog to locate a Lazarus or StartLazarus > executable if you have a various Lazarus versions to choose from. You > can set this choice as the default. > > Howard no, this way i would assign *.lpi AND similiar (= filetype XML ) files to lazarus application.  See the notice above the Listbox with applications you mentioned. But thanks for your post, seems to be tricky :-) From markMLl.lazarus at telemetry.co.uk Mon Jan 15 22:46:32 2018 From: markMLl.lazarus at telemetry.co.uk (Mark Morgan Lloyd) Date: Mon, 15 Jan 2018 21:46:32 +0000 Subject: [Lazarus] Linux: howto define file *.lpi to be opened with lazarus? In-Reply-To: <86855d4c-a917-dc7f-1318-9acd35cef146@gmx.de> References: <86855d4c-a917-dc7f-1318-9acd35cef146@gmx.de> Message-ID: On 15/01/18 17:30, John Landmesser via Lazarus wrote: > I'm on Linux-Mint Cinnamon and i want to associate *.lpi with lazarus > Application: > *.lpi is of Filetype XML, but we need the fileExtension *.lpi here!! > found: > lazarus.desktop > copied: >  cp '/home/john1/lazarus/install/lazarus.desktop' /usr/share/applications/ > and > lazarus-mime.xml > copied: >  cp '/home/john1/lazarus/install/lazarus-mime.xml' > '/usr/share/mime/application/' > Content of these two files seems to define for what i'm looking for, but > reboot wasn't enough. > What i'm missing to get the filetypes/extension-Database updated? > Tipps are welcome!! Possibly one of the xdg-* programs... a bit of Googling suggests xdg-mime -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] From vojtech.cihak at atlas.cz Mon Jan 15 23:01:46 2018 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Mon, 15 Jan 2018 23:01:46 +0100 Subject: [Lazarus] =?utf-8?q?Editor_Macros_looses_key_shortcuts?= Message-ID: <20180115230146.D3AD6C4B@atlas.cz> Hi,   it happened me already twice (yesterday and ~month ago) that Editor Macros lost key shortcuts. All macros remains in EditorMacros.xml but without any key shortcut info, i.e. there are no  nodes. No problem, I recovered from backup.   I use Lazarus SVN and I rebuild it quite often, I also do sometimes various tests which sometimes lead to AV. I don't know what it causes, anyway I recommend to do the backup of your configs, especially EditorMacros.xml.   V. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at mfriebe.de Mon Jan 15 23:17:41 2018 From: lazarus at mfriebe.de (Martin Frb) Date: Mon, 15 Jan 2018 22:17:41 +0000 Subject: [Lazarus] Editor Macros looses key shortcuts In-Reply-To: <20180115230146.D3AD6C4B@atlas.cz> References: <20180115230146.D3AD6C4B@atlas.cz> Message-ID: <47525ccc-e27a-afe0-b827-5858f7e43c88@mfriebe.de> On 15/01/2018 22:01, Vojtěch Čihák via Lazarus wrote: > > Hi, > > it happened me already twice (yesterday and ~month ago) that Editor > Macros lost key shortcuts. All macros remains in EditorMacros.xml but > without any key shortcut info, i.e. there are no  Shift1="1" Key2="79"/> nodes. > > One possibility: Did you ever get the message (at startup of the IDE)  that the editormacro selftest failed? You then have to enable it again from the Tools > Options. In that case macros become temp disabled, and yes they loose their keys (unnecessary) -------------- next part -------------- An HTML attachment was scrubbed... URL: From vojtech.cihak at atlas.cz Tue Jan 16 00:05:18 2018 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Tue, 16 Jan 2018 00:05:18 +0100 Subject: [Lazarus] =?utf-8?q?Editor_Macros_looses_key_shortcuts?= In-Reply-To: 0000000084920001c91001554fd0 References: <20180115230146.D3AD6C4B@atlas.cz> 0000000084920001c91001554fd0 Message-ID: <20180116000518.393B20FD@atlas.cz> No, I neved had such message.   V. ______________________________________________________________ > Od: Martin Frb via Lazarus > Komu: Vojtěch Čihák via Lazarus > Datum: 15.01.2018 23:17 > Předmět: Re: [Lazarus] Editor Macros looses key shortcuts > On 15/01/2018 22:01, Vojtěch Čihák via Lazarus wrote:Hi,   it happened me already twice (yesterday and ~month ago) that Editor Macros lost key shortcuts. All macros remains in EditorMacros.xml but without any key shortcut info, i.e. there are no  nodes. One possibility: Did you ever get the message (at startup of the IDE)  that the editormacro selftest failed? You then have to enable it again from the Tools > Options. In that case macros become temp disabled, and yes they loose their keys (unnecessary) ---------- -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlnglsts at bgss.hu Tue Jan 16 09:42:17 2018 From: mlnglsts at bgss.hu (Gabor Boros) Date: Tue, 16 Jan 2018 09:42:17 +0100 Subject: [Lazarus] Lazreport - Issues 32481, 32505, 32543 Message-ID: Hi All, I need some help/opinion about these issues. I solved (or half solved) all for myself, but don't know my solutions/modifications are good enough to include into the main source. https://bugs.freepascal.org/view.php?id=32481 https://bugs.freepascal.org/view.php?id=32505 https://bugs.freepascal.org/view.php?id=32543 Gabor From jmlandmesser at gmx.de Tue Jan 16 12:55:25 2018 From: jmlandmesser at gmx.de (John Landmesser) Date: Tue, 16 Jan 2018 12:55:25 +0100 Subject: [Lazarus] Linux: howto define file *.lpi to be opened with lazarus? In-Reply-To: References: <86855d4c-a917-dc7f-1318-9acd35cef146@gmx.de> Message-ID: Am 15.01.2018 um 22:46 schrieb Mark Morgan Lloyd via Lazarus: > > Possibly one of the xdg-* programs... a bit of Googling suggests xdg-mime > seems to work now: executed: xdg-mime install ./lazarus-mime.xml But *.xml is still opened by lazarus aplication. Could be because i really tried a lot of useless things before?! FileExtensions are a real hassle on linux?!! ------------------------------------------------------------------------ Result: xdg-mime install ./lazarus-mime.xml creates: '/home/john1/.local/share/mime/aliases' '/home/john1/.local/share/mime/generic-icons' '/home/john1/.local/share/mime/globs' '/home/john1/.local/share/mime/globs2' '/home/john1/.local/share/mime/icons' '/home/john1/.local/share/mime/magic' '/home/john1/.local/share/mime/mime.cache'  '/home/john1/.local/share/mime/subclasses'  '/home/john1/.local/share/mime/treemagic'  '/home/john1/.local/share/mime/types'  '/home/john1/.local/share/mime/version'  '/home/john1/.local/share/mime/XMLnamespaces' and there are more subdirs! They all seems to handle lazarus *.lpi ... Windows is much easier in this respect?! Thanks for your tipps!! -------------- next part -------------- An HTML attachment was scrubbed... URL: From tc at epidata.info Tue Jan 16 13:31:12 2018 From: tc at epidata.info (Torsten Bonde Christiansen) Date: Tue, 16 Jan 2018 13:31:12 +0100 Subject: [Lazarus] Linking run parameters with build mode Message-ID: Hi List. In a not to distant past multiple run-modes were introduced and this is a very nice feature. Now I wonder if it is (would be) possible to link the run modes with build modes? This would be a nice feature, as i could eg. select "Build Win32" mode (cross compile from linux) and then the linked run-mode would automatically start the program within Wine (without debugging naturally). Is this already possible or should i add it as a feature request? Kind regards Torsten. From michael at freepascal.org Tue Jan 16 17:18:27 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Tue, 16 Jan 2018 17:18:27 +0100 (CET) Subject: [Lazarus] Poll on website forum Message-ID: Hi, I posted a poll on the forum site, regarding missing language features in pas2js. http://forum.lazarus.freepascal.org/index.php/topic,39694.0.html Please, let us know what you think. Michael. From lazarus at kluug.net Wed Jan 17 07:00:58 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Wed, 17 Jan 2018 13:00:58 +0700 Subject: [Lazarus] Extended filter for Code Completion In-Reply-To: References: Message-ID: <8d91f071-fe6e-b46e-0880-8375d2843185@kluug.net> 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 for selected item meaning I can hardly read the selected item. A second question: why are the settings in "Editor -> Completion and hints" page of IDE options and not "Codetools -> Identifier completion" ? Ondrej -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: iibmnnlcpjckadib.png Type: image/png Size: 7777 bytes Desc: not available URL: From lazarus at kluug.net Wed Jan 17 08:23:06 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Wed, 17 Jan 2018 14:23:06 +0700 Subject: [Lazarus] Extended filter for Code Completion In-Reply-To: <8d91f071-fe6e-b46e-0880-8375d2843185@kluug.net> References: <8d91f071-fe6e-b46e-0880-8375d2843185@kluug.net> Message-ID: <54842c51-a70a-f2d2-6465-f72c6ab460ad@kluug.net> 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 color of the keyword is hard coded and it doesn't change > for selected item meaning I can hardly read the selected item. I fixed this by myself in r57105. Ondrej From juha.manninen62 at gmail.com Wed Jan 17 12:10:50 2018 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Wed, 17 Jan 2018 13:10:50 +0200 Subject: [Lazarus] Extended filter for Code Completion In-Reply-To: <54842c51-a70a-f2d2-6465-f72c6ab460ad@kluug.net> References: <8d91f071-fe6e-b46e-0880-8375d2843185@kluug.net> <54842c51-a70a-f2d2-6465-f72c6ab460ad@kluug.net> Message-ID: On Wed, Jan 17, 2018 at 9:23 AM, Ondrej Pokorny via Lazarus wrote: > I fixed this by myself in r57105. Thanks. See also https://bugs.freepascal.org/view.php?id=24043 which I marked as related to https://bugs.freepascal.org/view.php?id=32974 Juha From juha.manninen62 at gmail.com Wed Jan 17 16:35:59 2018 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Wed, 17 Jan 2018 17:35:59 +0200 Subject: [Lazarus] Extended filter for Code Completion In-Reply-To: References: <8d91f071-fe6e-b46e-0880-8375d2843185@kluug.net> <54842c51-a70a-f2d2-6465-f72c6ab460ad@kluug.net> Message-ID: Ondrej, please check my fix in r57109. Juha From lazarus at kluug.net Wed Jan 17 17:07:12 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Wed, 17 Jan 2018 23:07:12 +0700 Subject: [Lazarus] Extended filter for Code Completion In-Reply-To: References: <8d91f071-fe6e-b46e-0880-8375d2843185@kluug.net> <54842c51-a70a-f2d2-6465-f72c6ab460ad@kluug.net> Message-ID: <1b2ef63f-58e5-332e-d610-d262f6a5c614@kluug.net> On 17.01.2018 22:35, Juha Manninen via Lazarus wrote: > Ondrej, please check my fix in r57109. Yeap, thanks. Ondrej From donald at ziesig.org Wed Jan 17 18:46:34 2018 From: donald at ziesig.org (Donald Ziesig) Date: Wed, 17 Jan 2018 12:46:34 -0500 Subject: [Lazarus] Minor Annoyance Message-ID: <889f43eb-04aa-2683-d926-54c7ac8506da@ziesig.org> Hi Everyone! I am working on a component and having some issues with the property interface.  This means that I have to occasionally rebuild the IDE to update the component's definition. I have done this in the past, and when I did, the IDE would restart automatically when the re-build was done.  With 1.8 the IDE closes and must be manually restarted.  As the subject says, this is a minor annoyance.  Is there some parameter that i can change to revert this behavior to that of 1.6? Using Linux Mint 18.3 with Lazarus 1.8.0 2018-01-10. Thanks, Don Ziesig From donald at ziesig.org Wed Jan 17 18:51:56 2018 From: donald at ziesig.org (Donald Ziesig) Date: Wed, 17 Jan 2018 12:51:56 -0500 Subject: [Lazarus] Minor Annoyance update In-Reply-To: <889f43eb-04aa-2683-d926-54c7ac8506da@ziesig.org> References: <889f43eb-04aa-2683-d926-54c7ac8506da@ziesig.org> Message-ID: <8e710b25-14fa-cd52-6995-59e8b5861f53@ziesig.org> Update: Startup of the IDE also fails with the menu selection:  File | Restart -------- Forwarded Message -------- Subject: [Lazarus] Minor Annoyance Date: Wed, 17 Jan 2018 12:46:34 -0500 From: Donald Ziesig via Lazarus Reply-To: Lazarus mailing list To: lazarus at lists.lazarus-ide.org CC: Donald Ziesig Hi Everyone! I am working on a component and having some issues with the property interface.  This means that I have to occasionally rebuild the IDE to update the component's definition. I have done this in the past, and when I did, the IDE would restart automatically when the re-build was done.  With 1.8 the IDE closes and must be manually restarted.  As the subject says, this is a minor annoyance.  Is there some parameter that i can change to revert this behavior to that of 1.6? Using Linux Mint 18.3 with Lazarus 1.8.0 2018-01-10. Thanks, Don Ziesig -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartjunk64 at gmail.com Wed Jan 17 18:52:26 2018 From: bartjunk64 at gmail.com (Bart) Date: Wed, 17 Jan 2018 18:52:26 +0100 Subject: [Lazarus] Minor Annoyance In-Reply-To: <889f43eb-04aa-2683-d926-54c7ac8506da@ziesig.org> References: <889f43eb-04aa-2683-d926-54c7ac8506da@ziesig.org> Message-ID: On Wed, Jan 17, 2018 at 6:46 PM, Donald Ziesig via Lazarus wrote: > I have done this in the past, and when I did, the IDE would restart > automatically when the re-build was done. With 1.8 the IDE closes and must > be manually restarted. As the subject says, this is a minor annoyance. Is > there some parameter that i can change to revert this behavior to that of > 1.6? Menu->Tools->Configure Build Lazarus: check: Restart after building IDE. Bart From bartjunk64 at gmail.com Wed Jan 17 18:54:30 2018 From: bartjunk64 at gmail.com (Bart) Date: Wed, 17 Jan 2018 18:54:30 +0100 Subject: [Lazarus] Minor Annoyance update In-Reply-To: <8e710b25-14fa-cd52-6995-59e8b5861f53@ziesig.org> References: <889f43eb-04aa-2683-d926-54c7ac8506da@ziesig.org> <8e710b25-14fa-cd52-6995-59e8b5861f53@ziesig.org> Message-ID: > Startup of the IDE also fails with the menu selection: File | Restart How do you start the IDE: lazarus or startlazarus? Bart -------------- next part -------------- An HTML attachment was scrubbed... URL: From donald at ziesig.org Wed Jan 17 18:59:27 2018 From: donald at ziesig.org (Donald Ziesig) Date: Wed, 17 Jan 2018 12:59:27 -0500 Subject: [Lazarus] Minor Annoyance update In-Reply-To: References: <889f43eb-04aa-2683-d926-54c7ac8506da@ziesig.org> <8e710b25-14fa-cd52-6995-59e8b5861f53@ziesig.org> Message-ID: <7f050491-a1f3-7afc-0dc0-10b8324612b9@ziesig.org> On 01/17/2018 12:54 PM, Bart via Lazarus wrote: > > Startup of the IDE also fails with the menu selection:  File | Restart > > How do you start the IDE: lazarus or startlazarus? From an panel button.  The command is: startlazarus %f > > Bart Also: Menu->Tools->Configure Build Lazarus: check: Restart after building IDE. is CHECKED. Don > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From donald at ziesig.org Wed Jan 17 22:27:37 2018 From: donald at ziesig.org (Donald Ziesig) Date: Wed, 17 Jan 2018 16:27:37 -0500 Subject: [Lazarus] I've been defeated. (Dataset Problem) Message-ID: <349fe990-1403-db6a-a58e-e48dbb604a89@ziesig.org> Hi All! I give up! :'( After four solid days of hacking through undocumented code, I have to admit defeat. I have a component derived from TDataSet.  This component uses TFieldDefs and TIndexDefs.  The problem is that when I edit the TIndexDef, the underlying form does NOT see the change!  When I edit the TFieldDef the form does see the change. As a result, if I want to update an IndexDef, I must make the change, then change ANYTHING ELSE on the form (and change it back) so that the change to the IndexDef is saved and recompiled.  While this is a work around, I invariably forget to make the second change and lose any updates to the IndexDef. Can anyone help me with this? Thanks, Don Ziesig From michael at freepascal.org Wed Jan 17 22:41:04 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Wed, 17 Jan 2018 22:41:04 +0100 (CET) Subject: [Lazarus] I've been defeated. (Dataset Problem) In-Reply-To: <349fe990-1403-db6a-a58e-e48dbb604a89@ziesig.org> References: <349fe990-1403-db6a-a58e-e48dbb604a89@ziesig.org> Message-ID: On Wed, 17 Jan 2018, Donald Ziesig via Lazarus wrote: > Hi All! > > I give up! :'( > > After four solid days of hacking through undocumented code, I have to > admit defeat. > > I have a component derived from TDataSet.  This component uses > TFieldDefs and TIndexDefs.  The problem is that when I edit the > TIndexDef, the underlying form does NOT see the change!  When I edit the > TFieldDef the form does see the change. > > As a result, if I want to update an IndexDef, I must make the change, > then change ANYTHING ELSE on the form (and change it back) so that the > change to the IndexDef is saved and recompiled.  While this is a work > around, I invariably forget to make the second change and lose any > updates to the IndexDef. > > Can anyone help me with this? I have seen your bugreport about it. I assigned it to myself, but I need some time to debug it. If you need a solution FAST, someone else will need to look at it... Michael. From donald at ziesig.org Wed Jan 17 23:24:34 2018 From: donald at ziesig.org (Donald Ziesig) Date: Wed, 17 Jan 2018 17:24:34 -0500 Subject: [Lazarus] I've been defeated. (Dataset Problem) In-Reply-To: References: <349fe990-1403-db6a-a58e-e48dbb604a89@ziesig.org> Message-ID: On 01/17/2018 04:41 PM, Michael Van Canneyt via Lazarus wrote: > > > On Wed, 17 Jan 2018, Donald Ziesig via Lazarus wrote: > >> Hi All! >> >> I give up! :'( >> >> After four solid days of hacking through undocumented code, I have to >> admit defeat. >> >> I have a component derived from TDataSet.  This component uses >> TFieldDefs and TIndexDefs.  The problem is that when I edit the >> TIndexDef, the underlying form does NOT see the change!  When I edit >> the TFieldDef the form does see the change. >> >> As a result, if I want to update an IndexDef, I must make the change, >> then change ANYTHING ELSE on the form (and change it back) so that >> the change to the IndexDef is saved and recompiled.  While this is a >> work around, I invariably forget to make the second change and lose >> any updates to the IndexDef. >> >> Can anyone help me with this? > > I have seen your bugreport about it. I assigned it to myself, but I need > some time to debug it. If you need a solution FAST, someone else will > need > to look at it... > > Michael. > > Hi Michael, Now that I figured out what the underlying problem is and have a work around, I can wait. ;-) Thanks, Don -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaa5500 at ya.ru Thu Jan 18 10:37:01 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Thu, 18 Jan 2018 12:37:01 +0300 Subject: [Lazarus] IDE Completion window border Message-ID: <029cfda4-9903-b069-6408-ebd877a1ae43@ya.ru> 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). -- Regards, Alexey From lazarus at kluug.net Fri Jan 19 06:03:45 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Fri, 19 Jan 2018 12:03:45 +0700 Subject: [Lazarus] IDE Completion window border In-Reply-To: <029cfda4-9903-b069-6408-ebd877a1ae43@ya.ru> References: <029cfda4-9903-b069-6408-ebd877a1ae43@ya.ru> Message-ID: <914546bf-cdd8-117c-0602-81fbe5a24af8@kluug.net> 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://bugs.freepascal.org/view.php?id=29282 Ondrej From lazarus at kluug.net Fri Jan 19 08:14:31 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Fri, 19 Jan 2018 14:14:31 +0700 Subject: [Lazarus] IDE Completion window border In-Reply-To: <029cfda4-9903-b069-6408-ebd877a1ae43@ya.ru> References: <029cfda4-9903-b069-6408-ebd877a1ae43@ya.ru> Message-ID: <9fb21bc4-0d3f-6773-4e9a-61a3e4a4cc69@kluug.net> 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 options -> ... -> Colors -> Identifier Completion Ondrej From ghf03464 at nifty.ne.jp Fri Jan 19 21:01:59 2018 From: ghf03464 at nifty.ne.jp (Haruo Toda) Date: Sat, 20 Jan 2018 05:01:59 +0900 (JST) Subject: [Lazarus] Lazarus 1.8.0: Carbonproc cannot be compiled on El Capitan In-Reply-To: <3fa8f1b7-172a-9a98-83a0-6583679e7cf9@ya.ru> References: <3fa8f1b7-172a-9a98-83a0-6583679e7cf9@ya.ru> Message-ID: <1032930381.1231516392119432.ghf03464@nifty.ne.jp> Hello, It's very long since my last post. I am now moving from Lazarus 1.6.4 to 1.8.0 on MacOSX (El Capitan). But it won't to compile my project which can be build quite well using 1.6.4. Compilation stops at carbonproc.pp. Accoring to the error messages, following identifiers are not found: ATSUFindFontFromName ATSUFindFontName FMGetFontFamilyFromName HIViewChangeFeatures HIViewSetVisible HIViewSetFrame GetControlBounds SetControlData GetControlEventTarget GetThemeFont GetApplicationScript Any work-arounds? Regards, Haruo Toda, Niigata Japan. From skalogryz.lists at gmail.com Fri Jan 19 22:02:19 2018 From: skalogryz.lists at gmail.com (Dmitry Boyarintsev) Date: Fri, 19 Jan 2018 16:02:19 -0500 Subject: [Lazarus] Lazarus 1.8.0: Carbonproc cannot be compiled on El Capitan In-Reply-To: <1032930381.1231516392119432.ghf03464@nifty.ne.jp> References: <3fa8f1b7-172a-9a98-83a0-6583679e7cf9@ya.ru> <1032930381.1231516392119432.ghf03464@nifty.ne.jp> Message-ID: On Fri, Jan 19, 2018 at 3:01 PM, Haruo Toda via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > > Any work-arounds? > > > You're compiling for x86_64 (this is a default selection for macOS for a newer FPC version) you need to specify i386 explicitly thanks, Dmitry -------------- next part -------------- An HTML attachment was scrubbed... URL: From bo.berglund at gmail.com Sat Jan 20 00:57:36 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Sat, 20 Jan 2018 00:57:36 +0100 Subject: [Lazarus] Windows 10 execution problem for my application... Message-ID: I am having problems with Windows10 Pro x64 regarding running my programs from Windows Explorer. What happens is this: - I have created a new virtual computer with Windows 10 Pro x64 - Installed Subversion and checked out a project including sources and the 32 bit binary - Went to the binary folder and doubleclicked the executable Now Win10 responds by showing a message: "This app can't run on your PC" No extra information as to why it happens except to contact the publisher for a solution. But it so happens that I am the publisher... I have not used Windows 10 before, I have been on Windows 7 for a long time . So I can't understand what is the problem here. I know clients have managed to use the program on Win10 computers without problems so there must be something I have missed when going to Win10. Notice: I did not yet install any development tools because I wanted to test with as pristine as possible operating system when I have the chance. Is there some special setting needed in order to use Win10 as a developer? I *have* googled the error message and looked at a lot of fixes, but none that I could follow worked. -- Bo Berglund Developer in Sweden From bo.berglund at gmail.com Sat Jan 20 01:22:19 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Sat, 20 Jan 2018 01:22:19 +0100 Subject: [Lazarus] Windows 10 execution problem for my application... References: Message-ID: <4k256d5itda9hrt8fpa7d1kj6d24mh06t5@4ax.com> On Sat, 20 Jan 2018 00:57:36 +0100, Bo Berglund via Lazarus wrote: >Is there some special setting needed in order to use Win10 as a >developer? I tried to start it from a command prompt instead, so in the console I navigated to the bin folder and typed the name of the executable and hit enter. Same thing happened in the GUI, but now I also could see a message on the command line: "Access is denied" But no information regarding to what access is denied.... Is this a case of extreme vetting UAC? I am running as a normal user. -- Bo Berglund Developer in Sweden From aaa5500 at ya.ru Sat Jan 20 08:45:12 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Sat, 20 Jan 2018 10:45:12 +0300 Subject: [Lazarus] Windows 10 execution problem for my application... In-Reply-To: <4k256d5itda9hrt8fpa7d1kj6d24mh06t5@4ax.com> References: <4k256d5itda9hrt8fpa7d1kj6d24mh06t5@4ax.com> Message-ID: <23dcee16-360e-bd72-bf0e-47d126b0891c@ya.ru> > Is this a case of extreme vetting UAC? I am running as a normal user. What you must do is rightclick the exe file, and in Explorer dlg, call button "unlock app" or smth. Default is locked state, so OS makes limits. -- Regards, Alexey From ghf03464 at nifty.ne.jp Sat Jan 20 14:40:27 2018 From: ghf03464 at nifty.ne.jp (Haruo Toda) Date: Sat, 20 Jan 2018 22:40:27 +0900 (JST) Subject: [Lazarus] Lazarus 1.8.0: Carbonproc cannot be compiled on El Capitan In-Reply-To: References: <3fa8f1b7-172a-9a98-83a0-6583679e7cf9@ya.ru> <1032930381.1231516392119432.ghf03464@nifty.ne.jp> Message-ID: <6214106.286521516455627479.ghf03464@nifty.ne.jp> Dmitry, Works greatly! Thanks! Haruo ----- Original Message ----- Date: Fri, 19 Jan 2018 16:02:19 -0500 To: Lazarus mailing list Subject: Re: [Lazarus] Lazarus 1.8.0: Carbonproc cannot be compiled on El Capitan From: Dmitry Boyarintsev via Lazarus Cc: Dmitry Boyarintsev On Fri, Jan 19, 2018 at 3:01 PM, Haruo Toda via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > > Any work-arounds? > > > You're compiling for x86_64 (this is a default selection for macOS for a newer FPC version) you need to specify i386 explicitly thanks, Dmitry ----- inline ----- -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus From ngbarbier at gmail.com Sat Jan 20 22:15:22 2018 From: ngbarbier at gmail.com (guy barbier) Date: Sat, 20 Jan 2018 22:15:22 +0100 Subject: [Lazarus] installing a component Message-ID: Hello everybody! I want to install a component derived from TEdit and it compile fine, but the install rises an error in BGRACanvas2D unit! I suppose that this unit is correct, so can you explain e the problem. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From nc-gaertnma at netcologne.de Sat Jan 20 22:22:33 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sat, 20 Jan 2018 22:22:33 +0100 Subject: [Lazarus] installing a component In-Reply-To: References: Message-ID: <20180120222233.60295741@limapholos.matflo.wg> On Sat, 20 Jan 2018 22:15:22 +0100 guy barbier via Lazarus wrote: > Hello everybody! > I want to install a component derived from TEdit and it compile fine, but > the install rises an error in BGRACanvas2D unit! What error? Mattias From ngbarbier at gmail.com Sat Jan 20 22:29:47 2018 From: ngbarbier at gmail.com (guy barbier) Date: Sat, 20 Jan 2018 22:29:47 +0100 Subject: [Lazarus] installing a component In-Reply-To: <20180120222233.60295741@limapholos.matflo.wg> References: <20180120222233.60295741@limapholos.matflo.wg> Message-ID: Excuse me i forgot many things: 1) I work with lazarus 1.8 under ubuntu 17.10 2) many errors such as: operator is not overloaded:TPointF + TPointF incompatible type for arg no.3: got "TYPES.TPointF", expected "BGRABITMAPTYPES.TPointF" 2018-01-20 22:22 GMT+01:00 Mattias Gaertner via Lazarus < lazarus at lists.lazarus-ide.org>: > On Sat, 20 Jan 2018 22:15:22 +0100 > guy barbier via Lazarus wrote: > > > Hello everybody! > > I want to install a component derived from TEdit and it compile fine, but > > the install rises an error in BGRACanvas2D unit! > > What error? > > Mattias > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: From coppolastudio at gmail.com Sun Jan 21 07:41:54 2018 From: coppolastudio at gmail.com (coppolastudio) Date: Sun, 21 Jan 2018 07:41:54 +0100 Subject: [Lazarus] Windows 10 execution problem for my application... References: Message-ID: An HTML attachment was scrubbed... URL: From aaa5500 at ya.ru Sun Jan 21 20:36:52 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Sun, 21 Jan 2018 22:36:52 +0300 Subject: [Lazarus] Windows touch input Message-ID: How does Laz support touch input [e.g. on Surface from MS]. Where to read about it in wiki? -- Regards, Alexey From donald at ziesig.org Sun Jan 21 21:56:15 2018 From: donald at ziesig.org (Donald Ziesig) Date: Sun, 21 Jan 2018 15:56:15 -0500 Subject: [Lazarus] How to find stream contents for component? Message-ID: <7767c4ff-721a-ad16-ceb5-14af0df50c43@ziesig.org> Hi All! I am developing a component and made the mistake of not re-installing it often enough :'(. I after considerable editing, I re-installed it and when Lazarus re-started I got errors about an AV at "stream position 2486". Is there any way to inspect the contents of stream position 2486 so I can get a hint as to what is wrong? I tried examining the lfm file with "od -A d -c" which gives me the character count, but the text at that point has nothing to do with the component I am working on.  I suspect that this is not the right "stream". Thanks, Don Ziesig From r030t1 at gmail.com Sun Jan 21 22:33:01 2018 From: r030t1 at gmail.com (R0b0t1) Date: Sun, 21 Jan 2018 15:33:01 -0600 Subject: [Lazarus] Windows touch input In-Reply-To: References: Message-ID: Hello friend, 2018-01-21 13:36 GMT-06:00 AlexeyT via Lazarus : > How does Laz support touch input [e.g. on Surface from MS]. Where to read > about it in wiki? > For most input, touch events are turned into mouse events. The most basic events are WM_GESTURE[1] (received by default) and WM_TOUCH[2] (opt-in) messages. WM_TOUCH will receive pen events. You may also access these events using raw input and the WM_INPUT message, though details on this are not as forthcoming. However, from Windows 8 onward, there is a pointer API which unifies pointer (generic), touch, pen, mouse, and touchpad input. Look at the WM_POINTER*[3] messages for more details. The most control is granted with this API, and you can, for example, get the pressure of the pen on the screen as well as its pitch, roll, and yaw relative to the screen. You might also be interested in stylus/pen input, but it is much more complicated.[4] If you wish to use another writing recognition library, or do not need one, then you should be able to access these events via WM_TOUCH, WM_POINTER*, or WM_INPUT. There is also a COM object called a RealTimeStylus.[5] Cheers, R0b0t1 [1]: https://msdn.microsoft.com/en-us/library/windows/desktop/dd353242(v=vs.85).aspx [2]: https://msdn.microsoft.com/en-us/library/windows/desktop/dd317341(v=vs.85).aspx [3]: https://msdn.microsoft.com/en-us/library/windows/desktop/hh454903(v=vs.85).aspx [4]: https://msdn.microsoft.com/en-us/library/windows/desktop/ms704172(v=vs.85).aspx [5]: https://msdn.microsoft.com/en-us/library/windows/desktop/dd940549(v=vs.85).aspx From aaa5500 at ya.ru Wed Jan 24 20:35:47 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Wed, 24 Jan 2018 22:35:47 +0300 Subject: [Lazarus] Linux gtk2: TEdit.Color not changed Message-ID: <840a2f68-ac3d-0876-7017-c91eaabd013b@ya.ru> Hi, back color of TEdit cannot change, to dark [runtime and designtime]. Font.Color changes ok. Ubuntu 17.4, Cinnamon DE, controls theme "Adwaita". -- Regards, Alexey From fjf.vanleeuwen at quicknet.nl Thu Jan 25 19:27:11 2018 From: fjf.vanleeuwen at quicknet.nl (frans) Date: Thu, 25 Jan 2018 19:27:11 +0100 Subject: [Lazarus] Progressbar never reaches the end Message-ID: Hi. I use Lazarus 1.6.4 on Windows10. I use a TProgressBar in a loop to construct a report on an Dataset. The progressbar functions fine but when position=max, the progressbar visualy never reaches the end. It doesn't matter how many records there are, 100 or 10.000, the progressbar has always some white space left. I cannot believe this is normal. Using application.processmessages in the loop makes no difference. Am I forgetting something? -- mvg Frans van Leeuwen M 06-51695390 --- Deze e-mail is gecontroleerd op virussen door AVG. http://www.avg.com From bartjunk64 at gmail.com Thu Jan 25 19:36:15 2018 From: bartjunk64 at gmail.com (Bart) Date: Thu, 25 Jan 2018 19:36:15 +0100 Subject: [Lazarus] Progressbar never reaches the end In-Reply-To: References: Message-ID: On Thu, Jan 25, 2018 at 7:27 PM, frans via Lazarus wrote: > The > progressbar functions fine but when position=max, the progressbar visualy > never reaches the end. Thank Uncle Bill for that. The progressbar animates to the position you set it to. This takes time. If you do ProgressBar1.Position := ProgressBar1.Max and the (physically) wait a while, it will get to full 100%. The trick to get an immediate update is to decrement the position: no animation, no waiting time. Unfortunately this cannot be done for the 100% value. I have some code in one of my apps like this to get rid of the animation: {$ifdef windows} if Value > 0 then begin //trick modern Windows to draw the position at once, otherwise you never see the 100% ProgressBar.Position := Value - 1; ProgressBar.Repaint; ProgressBar.Position := Value; ProgressBar.Repaint; end; {$endif} If it bothers you, there are plenty of customdrawn progressbars out there (or switch of themes, to get the old behaviour back). Bart From werner.pamler at freenet.de Fri Jan 26 10:54:21 2018 From: werner.pamler at freenet.de (Werner Pamler) Date: Fri, 26 Jan 2018 10:54:21 +0100 Subject: [Lazarus] Sharing translations between Lazarus and Delphi versions of the same project Message-ID: Currently I am porting the component TMoon to Lazarus (https://github.com/Ahoerstemeier/delphimoon). A goal is to be able to compile package and demo with Lazarus AND Delphi. The original demo is a multi-language application which achieves translation using resource strings in a (I guess) Delphi1-like, windows-specific way. Using the Lazarus system of po files really is very easy and much more versatile compared to that. But now I am faced with the problem how to bring this back into the Delphi version. I know that the Lazarus translation system is based on gnugettext. I can add the unit gnugettext to the Delphi project. But how to continue? The original gnugettext requires the language to be specified as the name of a subfolder between "locale" and "LC_MESSAGES" (e.g., "locale/de/LC_MESSAGES/default.mo" for German), but Lazarus puts the language code into the po/mo file name (e.g., "project.de.po"). And I also don't get the point how to switch languages at runtime. Does anybody have experience with a similar project? I mean: how to use the po files for both Lazarus and Delphi. BTW: Working with the i18n options again I noticed that there are now two boxes "Excluded" > "Identifiers", "Originals" in the i18n project options. What can be put in there? Which effect does it have? Does it solve the issue that the same strings enter the po files again and again? Werner From fjf.vanleeuwen at quicknet.nl Fri Jan 26 11:31:05 2018 From: fjf.vanleeuwen at quicknet.nl (frans) Date: Fri, 26 Jan 2018 11:31:05 +0100 Subject: [Lazarus] Progressbar never reaches the end In-Reply-To: References: Message-ID: Thx Bart for the reply. But where stands Value for? I tried a recordcounter, but that was even worse. mvg Frans van Leeuwen M 06-51695390 Op 25-1-2018 om 19:36 schreef Bart via Lazarus: > On Thu, Jan 25, 2018 at 7:27 PM, frans via Lazarus > wrote: >> The >> progressbar functions fine but when position=max, the progressbar visualy >> never reaches the end. > Thank Uncle Bill for that. > The progressbar animates to the position you set it to. > This takes time. > > If you do ProgressBar1.Position := ProgressBar1.Max and the > (physically) wait a while, it will get to full 100%. > > The trick to get an immediate update is to decrement the position: no > animation, no waiting time. > Unfortunately this cannot be done for the 100% value. > > I have some code in one of my apps like this to get rid of the animation: > > {$ifdef windows} > if Value > 0 then > begin > //trick modern Windows to draw the position at once, otherwise you > never see the 100% > ProgressBar.Position := Value - 1; > ProgressBar.Repaint; > ProgressBar.Position := Value; > ProgressBar.Repaint; > end; > {$endif} > > > If it bothers you, there are plenty of customdrawn progressbars out > there (or switch of themes, to get the old behaviour back). > > Bart --- Deze e-mail is gecontroleerd op virussen door AVG. http://www.avg.com From ganmax at narod.ru Fri Jan 26 11:33:01 2018 From: ganmax at narod.ru (Maxim Ganetsky) Date: Fri, 26 Jan 2018 13:33:01 +0300 Subject: [Lazarus] Sharing translations between Lazarus and Delphi versions of the same project In-Reply-To: References: Message-ID: <4c172f41-70c0-c6b3-b81e-c94c8c12f9e9@narod.ru> 26.01.2018 12:54, Werner Pamler via Lazarus пишет: > Currently I am porting the component TMoon to Lazarus > (https://github.com/Ahoerstemeier/delphimoon). A goal is to be able to > compile package and demo with Lazarus AND Delphi. The original demo is a > multi-language application which achieves translation using resource > strings in a (I guess) Delphi1-like, windows-specific way. Using the > Lazarus system of po files really is very easy and much more versatile > compared to that. > > But now I am faced with the problem how to bring this back into the > Delphi version. I know that the Lazarus translation system is based on > gnugettext. I can add the unit gnugettext to the Delphi project. But how > to continue? The original gnugettext requires the language to be > specified as the name of a subfolder between "locale" and "LC_MESSAGES" > (e.g., "locale/de/LC_MESSAGES/default.mo" for German), but Lazarus puts > the language code into the po/mo file name (e.g., "project.de.po"). And > I also don't get the point how to switch languages at runtime. Maybe you can use adapted copies of translations.pas unit (from LazUtils) and lcltranslator.pas unit (from LCL). They will need to be ported for Delphi, though. > Does anybody have experience with a similar project? I mean: how to use > the po files for both Lazarus and Delphi. > > BTW: Working with the i18n options again I noticed that there are now > two boxes "Excluded" > "Identifiers", "Originals" in the i18n project > options. What can be put in there? Which effect does it have? Does it > solve the issue that the same strings enter the po files again and again? PO file consists of entries. Each entry consists of (at least) identifier name, original string value and translated string value. By default IDE collects all captions from components on form. If you use resource strings for translation at the same time you may want in some cases to filter some strings. For example, you have a form with caption 'Form1' and with some labels in it. Then you translate this caption via resource string and all labels by IDE means. In this case you will have in PO file 'Form1' entry and entry for resource string which effectively replaces it. Obviously you don't want to burden translators with 'Form1' entry. That is where the filters are useful. -- Best regards, Maxim Ganetsky mailto:ganmax at narod.ru From fjf.vanleeuwen at quicknet.nl Fri Jan 26 11:52:07 2018 From: fjf.vanleeuwen at quicknet.nl (frans) Date: Fri, 26 Jan 2018 11:52:07 +0100 Subject: [Lazarus] Progressbar never reaches the end In-Reply-To: References: Message-ID: <3b88d2b9-ff02-9a97-d05d-8e72abf63c96@quicknet.nl> Hi Bart. Forget my previous mail, I placed the Increment command in teh wrong loop. Now, in the right loop, it makes a small better difference. Thx. mvg Frans van Leeuwen M 06-51695390 Op 25-1-2018 om 19:36 schreef Bart via Lazarus: > On Thu, Jan 25, 2018 at 7:27 PM, frans via Lazarus > wrote: >> The >> progressbar functions fine but when position=max, the progressbar visualy >> never reaches the end. > Thank Uncle Bill for that. > The progressbar animates to the position you set it to. > This takes time. > > If you do ProgressBar1.Position := ProgressBar1.Max and the > (physically) wait a while, it will get to full 100%. > > The trick to get an immediate update is to decrement the position: no > animation, no waiting time. > Unfortunately this cannot be done for the 100% value. > > I have some code in one of my apps like this to get rid of the animation: > > {$ifdef windows} > if Value > 0 then > begin > //trick modern Windows to draw the position at once, otherwise you > never see the 100% > ProgressBar.Position := Value - 1; > ProgressBar.Repaint; > ProgressBar.Position := Value; > ProgressBar.Repaint; > end; > {$endif} > > > If it bothers you, there are plenty of customdrawn progressbars out > there (or switch of themes, to get the old behaviour back). > > Bart --- Deze e-mail is gecontroleerd op virussen door AVG. http://www.avg.com From werner.pamler at freenet.de Fri Jan 26 12:05:38 2018 From: werner.pamler at freenet.de (Werner Pamler) Date: Fri, 26 Jan 2018 12:05:38 +0100 Subject: [Lazarus] Sharing translations between Lazarus and Delphi versions of the same project In-Reply-To: <4c172f41-70c0-c6b3-b81e-c94c8c12f9e9@narod.ru> References: <4c172f41-70c0-c6b3-b81e-c94c8c12f9e9@narod.ru> Message-ID: <3cb4f76f-5a95-971c-3223-c582642c0c16@freenet.de> Am 26.01.2018 um 11:33 schrieb Maxim Ganetsky via Lazarus: > 26.01.2018 12:54, Werner Pamler via Lazarus пишет: > Maybe you can use adapted copies of translations.pas unit (from > LazUtils) and lcltranslator.pas unit (from LCL). They will need to be > ported for Delphi, though. Hmm... A lot of work for just a demo. No other way? Can't gnugettext be configured to use the Lazarus structure? >> BTW: Working with the i18n options again I noticed that there are now >> two boxes "Excluded" > "Identifiers", "Originals" in the i18n project >> options. What can be put in there? Which effect does it have? Does it >> solve the issue that the same strings enter the po files again and again? > PO file consists of entries. Each entry consists of (at least) > identifier name, original string value and translated string value. By > default IDE collects all captions from components on form. If you use > resource strings for translation at the same time you may want in some > cases to filter some strings. > > For example, you have a form with caption 'Form1' and with some labels > in it. Then you translate this caption via resource string and all > labels by IDE means. In this case you will have in PO file 'Form1' entry > and entry for resource string which effectively replaces it. Obviously > you don't want to burden translators with 'Form1' entry. That is where > the filters are useful. Thanks for the explanation. It motivated me to play with these two boxes: If I don't want to  have the auto-generated entry 'Form1' to be in the po file I must enter this string in the box "Originals". Alternatively I can use the identifier of the caption in the box "identifiers" - it must be entered in the po syntax: "tform1.caption", or "tform1.button1.caption" for a button named TButton. What was confusing me is that the ignored entries remain in the master po and translated po files after these modifications. Only after "Clean up and Build" they do disappear. This, however, takes a long time because all required units are recompiled. Wouldn't it be better to have a menu command "Clean po file" which just rebuilds the rsj and po files? From ganmax at narod.ru Fri Jan 26 12:16:52 2018 From: ganmax at narod.ru (Maxim Ganetsky) Date: Fri, 26 Jan 2018 14:16:52 +0300 Subject: [Lazarus] Sharing translations between Lazarus and Delphi versions of the same project In-Reply-To: <3cb4f76f-5a95-971c-3223-c582642c0c16@freenet.de> References: <4c172f41-70c0-c6b3-b81e-c94c8c12f9e9@narod.ru> <3cb4f76f-5a95-971c-3223-c582642c0c16@freenet.de> Message-ID: <0729fcbf-9fe8-f4d9-80a0-eea89904439f@narod.ru> 26.01.2018 14:05, Werner Pamler via Lazarus пишет: > > Am 26.01.2018 um 11:33 schrieb Maxim Ganetsky via Lazarus: >> 26.01.2018 12:54, Werner Pamler via Lazarus пишет: >> Maybe you can use adapted copies of translations.pas unit (from >> LazUtils) and lcltranslator.pas unit (from LCL). They will need to be >> ported for Delphi, though. > > Hmm... A lot of work for just a demo. No other way? Can't gnugettext be > configured to use the Lazarus structure? Don't know, TBH. >>> BTW: Working with the i18n options again I noticed that there are now >>> two boxes "Excluded" > "Identifiers", "Originals" in the i18n project >>> options. What can be put in there? Which effect does it have? Does it >>> solve the issue that the same strings enter the po files again and >>> again? >> PO file consists of entries. Each entry consists of (at least) >> identifier name, original string value and translated string value. By >> default IDE collects all captions from components on form. If you use >> resource strings for translation at the same time you may want in some >> cases to filter some strings. >> >> For example, you have a form with caption 'Form1' and with some labels >> in it. Then you translate this caption via resource string and all >> labels by IDE means. In this case you will have in PO file 'Form1' entry >> and entry for resource string which effectively replaces it. Obviously >> you don't want to burden translators with 'Form1' entry. That is where >> the filters are useful. > > Thanks for the explanation. It motivated me to play with these two > boxes: If I don't want to  have the auto-generated entry 'Form1' to be > in the po file I must enter this string in the box "Originals". > Alternatively I can use the identifier of the caption in the box > "identifiers" - it must be entered in the po syntax: "tform1.caption", > or "tform1.button1.caption" for a button named TButton. What was > confusing me is that the ignored entries remain in the master po and > translated po files after these modifications. Only after "Clean up and > Build" they do disappear. This, however, takes a long time because all > required units are recompiled. Wouldn't it be better to have a menu > command "Clean po file" which just rebuilds the rsj and po files? You have for this: 1. 'Project Options' -> 'i18n' -> 'Force PO files update on next compilation' check box at the bottom of the page. 2. 'Project' -> 'Resave forms with enabled i18n' in main Lazarus menu to regenerate all .lrj files in project. -- Best regards, Maxim Ganetsky mailto:ganmax at narod.ru From werner.pamler at freenet.de Fri Jan 26 12:24:50 2018 From: werner.pamler at freenet.de (Werner Pamler) Date: Fri, 26 Jan 2018 12:24:50 +0100 Subject: [Lazarus] Sharing translations between Lazarus and Delphi versions of the same project In-Reply-To: <3cb4f76f-5a95-971c-3223-c582642c0c16@freenet.de> References: <4c172f41-70c0-c6b3-b81e-c94c8c12f9e9@narod.ru> <3cb4f76f-5a95-971c-3223-c582642c0c16@freenet.de> Message-ID: Am 26.01.2018 um 12:05 schrieb Werner Pamler via Lazarus: > Wouldn't it be better to have a menu command "Clean po file" which > just rebuilds the rsj and po files? Ah - there's a checkbox "Force update po files after next compile" for this purpose. But this is not working. It requires a Run > Build instead of Run > Compile. I suggest it is renamed to "Force update po files after next build" From ganmax at narod.ru Fri Jan 26 16:22:57 2018 From: ganmax at narod.ru (Maxim Ganetsky) Date: Fri, 26 Jan 2018 18:22:57 +0300 Subject: [Lazarus] Sharing translations between Lazarus and Delphi versions of the same project In-Reply-To: References: <4c172f41-70c0-c6b3-b81e-c94c8c12f9e9@narod.ru> <3cb4f76f-5a95-971c-3223-c582642c0c16@freenet.de> Message-ID: 26.01.2018 14:24, Werner Pamler via Lazarus пишет: > Am 26.01.2018 um 12:05 schrieb Werner Pamler via Lazarus: >> Wouldn't it be better to have a menu command "Clean po file" which >> just rebuilds the rsj and po files? > > Ah - there's a checkbox "Force update po files after next compile" for > this purpose. But this is not working. It requires a Run > Build instead > of Run > Compile. I suggest it is renamed to "Force update po files > after next build" Done, thanks for the hint. -- Best regards, Maxim Ganetsky mailto:ganmax at narod.ru From dgaspary at gmail.com Fri Jan 26 21:06:24 2018 From: dgaspary at gmail.com (Daniel Gaspary) Date: Fri, 26 Jan 2018 18:06:24 -0200 Subject: [Lazarus] Debug library (Error on Documentation?) Message-ID: To debug a shared Library the wiki [1] says : "Go to Run/Run Parameters, enter the full path of the application that uses your library in Launching Application " But in my case what work was to fill only the field "Host Application". I am not sure what should be placed at the wiki. Also, I Believe the section in question seems to be out of place in the hierarchy. [1] http://wiki.freepascal.org/shared_library#dllproc Section "Using shared libraries from FPC" From lazarus at mfriebe.de Fri Jan 26 22:03:14 2018 From: lazarus at mfriebe.de (Martin Frb) Date: Fri, 26 Jan 2018 21:03:14 +0000 Subject: [Lazarus] Debug library (Error on Documentation?) In-Reply-To: References: Message-ID: <08eb4fe2-7440-9698-38a1-b6b6373606eb@mfriebe.de> On 26/01/2018 20:06, Daniel Gaspary via Lazarus wrote: > To debug a shared Library the wiki [1] says : > > "Go to Run/Run Parameters, enter the full path of the application that > uses your library in Launching Application " > > But in my case what work was to fill only the field "Host Application". Yes "host application" is correct. "launching app" should not be used together with the debugger. From bartjunk64 at gmail.com Fri Jan 26 22:45:44 2018 From: bartjunk64 at gmail.com (Bart) Date: Fri, 26 Jan 2018 22:45:44 +0100 Subject: [Lazarus] Progressbar never reaches the end In-Reply-To: <3b88d2b9-ff02-9a97-d05d-8e72abf63c96@quicknet.nl> References: <3b88d2b9-ff02-9a97-d05d-8e72abf63c96@quicknet.nl> Message-ID: On Fri, Jan 26, 2018 at 11:52 AM, frans via Lazarus wrote: > Now, in the right loop, it makes a small better difference. Or try something like this: http://svn.code.sf.net/p/flyingsheep/code/trunk/MijnLib/fsiprogbar.pp I wrote that, just because of the annoying behaviour of the default progressbar on Win Vista and up. Bart From dgaspary at gmail.com Fri Jan 26 23:01:58 2018 From: dgaspary at gmail.com (Daniel Gaspary) Date: Fri, 26 Jan 2018 20:01:58 -0200 Subject: [Lazarus] Debug library (Error on Documentation?) In-Reply-To: <08eb4fe2-7440-9698-38a1-b6b6373606eb@mfriebe.de> References: <08eb4fe2-7440-9698-38a1-b6b6373606eb@mfriebe.de> Message-ID: Someone with a wiki login and better english writing skills than me need to fix the wiki page Anyway, thank you, Martin. On Fri, Jan 26, 2018 at 7:03 PM, Martin Frb via Lazarus wrote: > On 26/01/2018 20:06, Daniel Gaspary via Lazarus wrote: >> >> To debug a shared Library the wiki [1] says : >> >> "Go to Run/Run Parameters, enter the full path of the application that >> uses your library in Launching Application " >> >> But in my case what work was to fill only the field "Host Application". > > Yes "host application" is correct. > > "launching app" should not be used together with the debugger. > > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus From werner.pamler at freenet.de Sat Jan 27 11:57:13 2018 From: werner.pamler at freenet.de (Werner Pamler) Date: Sat, 27 Jan 2018 11:57:13 +0100 Subject: [Lazarus] Sharing translations between Lazarus and Delphi versions of the same project In-Reply-To: References: <4c172f41-70c0-c6b3-b81e-c94c8c12f9e9@narod.ru> <3cb4f76f-5a95-971c-3223-c582642c0c16@freenet.de> Message-ID: <48c6dccd-d3e6-333d-eb04-130984542a2b@freenet.de> Am 26.01.2018 um 16:22 schrieb Maxim Ganetsky via Lazarus: > 26.01.2018 14:24, Werner Pamler via Lazarus пишет: >> Ah - there's a checkbox "Force update po files after next compile" for >> this purpose. But this is not working. It requires a Run > Build instead >> of Run > Compile. I suggest it is renamed to "Force update po files >> after next build" > Done, thanks for the hint. Thank you. And I added a note to the i18n options wiki help page: http://wiki.lazarus.freepascal.org/IDE_Window:_Project_Options#i18n There is a problem with the approach of putting these ignores into these listboxes here. Because this list is ignored by codetools. This means: if I rename a unit which has a matching entry in the excluded identifiers list then this entry will not be updated, and the related entries will be left uselessly in the list. Either codetools should have a look at them (in creation of the po file, the renamed units are handled correctly), or the ignored entries should be defined by code, similar to gnugettext's original "TP_GlobalIgnoreClassProperty" procedure. From lazarus at kluug.net Sat Jan 27 19:59:35 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Sat, 27 Jan 2018 19:59:35 +0100 Subject: [Lazarus] High-DPI TImageList In-Reply-To: References: Message-ID: 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 From mailinglists at geldenhuys.co.uk Sun Jan 28 01:16:50 2018 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Sun, 28 Jan 2018 00:16:50 +0000 Subject: [Lazarus] IDE focused window after app terminates Message-ID: Hi, I never noticed this before, but I'm working on a project where I switch very fast and frequently between coding and running the program, then back to coding... repeat. 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. So this forces me to use the mouse to click the Source Editor window to get focus, before I can make my next small code change. I'm using a 2-3 month old Lazarus Trunk (Lazarus 1.9.0 r55733 FPC 3.0.4 x86_64-freebsd-gtk2). Maybe I missed it, but does the IDE have an option to tell it to focus the Source Editor window instead of the Main IDE window after the debugged application terminates? If so, where is that option. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp From lazarus at kluug.net Sun Jan 28 06:35:33 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Sun, 28 Jan 2018 06:35:33 +0100 Subject: [Lazarus] IDE focused window after app terminates In-Reply-To: References: Message-ID: 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? What OS/WS do you use? I just tested on my Windows 10 and the focused window doesn't change (even on desktop change) when debugging ends. I.e. if I have my source editor focused, press F9, close debugged application, source editor stays focused. If I run debugging from main IDE coolbar by pressing the run command button with mouse, I obviously change focus to main IDE window, the application is run, I close it, the main IDE window is focused. Ondrej From mailinglists at geldenhuys.co.uk Sun Jan 28 09:39:35 2018 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Sun, 28 Jan 2018 08:39:35 +0000 Subject: [Lazarus] IDE focused window after app terminates In-Reply-To: References: Message-ID: <6136a75f-0739-eeb3-5812-d80fd9421065@geldenhuys.co.uk> 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. I have three monitors with centre monitor as my active development area. > What OS/WS do you use? FreeBSD. I run a old-school style Window Manager, _not_ a desktop environment like KDE, MATE, Gnome etc. The Window Manager is called jwm (Joe's Window Manager), and it supports most (if not all) modern X11 window hints. I try and use the mouse as little as possible while developing, so I use the F9 shortcut to run my application. I also don't have any docking managers installed in Lazarus, so every IDE window is a separate window on screen. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp From mailinglists at geldenhuys.co.uk Sun Jan 28 09:55:11 2018 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Sun, 28 Jan 2018 08:55:11 +0000 Subject: [Lazarus] IDE focused window after app terminates In-Reply-To: <6136a75f-0739-eeb3-5812-d80fd9421065@geldenhuys.co.uk> References: <6136a75f-0739-eeb3-5812-d80fd9421065@geldenhuys.co.uk> Message-ID: <64944200-a72b-13ff-f108-a2830d5ff6b8@geldenhuys.co.uk> On 2018-01-28 08:39, Graeme Geldenhuys via Lazarus wrote: >> What OS/WS do you use? > > FreeBSD. I run a old-school style Window Manager,_not_ a desktop > environment like KDE, MATE, Gnome etc. The Window Manager is called jwm > (Joe's Window Manager), and it supports most (if not all) modern X11 > window hints. I just switched to Gnome 3 desktop and the behaviour is exactly the same as under JWM. After my application terminates, the focus returns to the Main Window of Lazarus IDE, and not the last focused window, which was the Source Editor. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp From lazarus at kluug.net Sun Jan 28 10:05:57 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Sun, 28 Jan 2018 10:05:57 +0100 Subject: [Lazarus] IDE focused window after app terminates In-Reply-To: <6136a75f-0739-eeb3-5812-d80fd9421065@geldenhuys.co.uk> References: <6136a75f-0739-eeb3-5812-d80fd9421065@geldenhuys.co.uk> Message-ID: 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_Window:_Desktops > I have three monitors with centre monitor as my active development area. I assume the number of monitors is irrelevant :) >> What OS/WS do you use? > > FreeBSD. I run a old-school style Window Manager, _not_ a desktop > environment like KDE, MATE, Gnome etc. The Window Manager is called > jwm (Joe's Window Manager), and it supports most (if not all) modern > X11 window hints. Strange why it happens if you don't use Lazarus desktops. You may try to debug the OnActivate event. Ondrej From mailinglists at geldenhuys.co.uk Sun Jan 28 11:26:11 2018 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Sun, 28 Jan 2018 10:26:11 +0000 Subject: [Lazarus] IDE focused window after app terminates In-Reply-To: References: <6136a75f-0739-eeb3-5812-d80fd9421065@geldenhuys.co.uk> Message-ID: On 2018-01-28 09:05, Ondrej Pokorny via Lazarus wrote: > > No, I mean Lazarus debug desktop: > http://wiki.freepascal.org/IDE_Window:_Desktops Seeing that I didn't know Lazarus IDE supports multiple desktop layout I guess I only use one. Just had a look in the 'Manage desktops' dialog, and there is only one "default (active)" desktop defined. > Strange why it happens if you don't use Lazarus desktops. You may try to > debug the OnActivate event. OK, I'll give that a go. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp From vojtech.cihak at atlas.cz Sun Jan 28 13:08:30 2018 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Sun, 28 Jan 2018 13:08:30 +0100 Subject: [Lazarus] =?utf-8?q?IDE_focused_window_after_app_terminates?= In-Reply-To: 000000008506000164b001584fce References: 000000008506000164b001584fce Message-ID: <20180128130830.8656B16B@atlas.cz> Hi, my Linux+KDE (Plasma) experience:   I have no docking manager for Lazarus. Source Editor (or Object Inspector or Messages etc.) is focused. I run app. using F9. When app. active, I close it, by click to [X] or by Alt+F4. I can see Source Editor sometimes focused for a fraction of second (blink), but usually Main Winow is immediately focused.   V. ______________________________________________________________ > Od: Graeme Geldenhuys via Lazarus > Komu: Lazarus mailing list > Datum: 28.01.2018 01:16 > Předmět: [Lazarus] IDE focused window after app terminates > Hi, 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. So this forces me to use the mouse to click the Source Editor window to get focus, before I can make my next small code change. Regards,   Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key:  http://tinyurl.com/graeme-pgp -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From l at c-m-w.me.uk Sun Jan 28 15:33:25 2018 From: l at c-m-w.me.uk (C Western) Date: Sun, 28 Jan 2018 14:33:25 +0000 Subject: [Lazarus] High-DPI TImageList In-Reply-To: References: Message-ID: <6bebee49-501d-c2e2-047a-2b7fddbcdc4d@c-m-w.me.uk> 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 > http://wiki.freepascal.org/Lazarus_1.10.0_release_notes > > Ondrej With trunk my application now gives lots of tracebacks when using the main menu, which has some images set, though not using an imagelist: ERROR in LCL: TGtk2WidgetSet.CreateBitmapFromRawImage Incompatible BitsPerPixel Creating gdb catchable error: $000000000088BA69 DEBUGLNSTACK, line 731 of lazloggerbase.pas $00000000007788E0 DUMPSTACK, line 1392 of lclproc.pas $0000000000776043 RAISEGDBEXCEPTION, line 860 of lclproc.pas $00000000006EB170 RAWIMAGE_CREATEBITMAPS, line 417 of gtk2/gtk2lclintf.inc $0000000000787202 RAWIMAGE_CREATEBITMAPS, line 152 of include/lclintf.inc $00000000008F0FF0 CREATEBITMAPS, line 3633 of intfgraphics.pas $000000000095B362 INSERTMASKED, line 1802 of include/imglist.inc $0000000000958DC1 ADDMASKED, line 1143 of include/imglist.inc $000000000086717C DRAWMENUITEMICON, line 5809 of gtk2 This is using GTK2. Has the implementation of the main menu changed significantly? Unfortunately this is slightly tricky to debug, as the entire desktop freezes. Colin From donald at ziesig.org Sun Jan 28 23:13:18 2018 From: donald at ziesig.org (Donald Ziesig) Date: Sun, 28 Jan 2018 17:13:18 -0500 Subject: [Lazarus] IDE focused window after app terminates In-Reply-To: References: Message-ID: On 01/27/2018 07:16 PM, Graeme Geldenhuys via Lazarus wrote: > Hi, > > I never noticed this before, but I'm working on a project where I > switch very fast and frequently between coding and running the > program, then back to coding... repeat. > > 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. So > this forces me to use the mouse to click the Source Editor window to > get focus, before I can make my next small code change. > > I'm using a 2-3 month old Lazarus Trunk (Lazarus 1.9.0 r55733 FPC > 3.0.4 x86_64-freebsd-gtk2). Maybe I missed it, but does the IDE have > an option to tell it to focus the Source Editor window instead of the > Main IDE window after the debugged application terminates? If so, > where is that option. > > Regards, >   Graeme > I have noticed a similar problem with Lazarus 1.8.0 that did not happen in earlier versions.  When I click on a tab in the Source Editor with the focus in an editor window, the focus switches somewhere not in the window I switched to.  IIRC it used to remember where the cursor and focus was for each window, but now I have to explicitly click on the selected editing surface (which changes the cursor position). If I do an operation in another kind of window (e.g. the Object Inspector), then move the mouse back to the Source Editor, the cursor position and focus are restored correctly. This is particularly annoying :-\ Regards, Don Ziesig From bartjunk64 at gmail.com Sun Jan 28 23:44:36 2018 From: bartjunk64 at gmail.com (Bart) Date: Sun, 28 Jan 2018 23:44:36 +0100 Subject: [Lazarus] IDE focused window after app terminates In-Reply-To: References: Message-ID: On Sun, Jan 28, 2018 at 11:13 PM, Donald Ziesig via Lazarus wrote: > I have noticed a similar problem with Lazarus 1.8.0 that did not happen in > earlier versions. When I click on a tab in the Source Editor with the focus > in an editor window, the focus switches somewhere not in the window I > switched to. IIRC it used to remember where the cursor and focus was for > each window, but now I have to explicitly click on the selected editing > surface (which changes the cursor position). IIRC this was fixed some time ago. Bart From werner.pamler at freenet.de Mon Jan 29 00:18:56 2018 From: werner.pamler at freenet.de (Werner Pamler) Date: Mon, 29 Jan 2018 00:18:56 +0100 Subject: [Lazarus] High-DPI TImageList In-Reply-To: References: Message-ID: <4b0a369a-044a-39f0-75ae-81273ef9621c@freenet.de> 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 > http://wiki.freepascal.org/Lazarus_1.10.0_release_notes Porting the TurboPower SysTools library to Lazarus, I noticed today (after having updated trunk to contain the new imagelist) that their palette icons no longer have a transparent background. These icons are old-fashioned bmp images with that pseudo-transparency, i.e. one particular color is defined to become transparent. I'll switch to png images anyway, but maybe this bmp transparency issue should be fixed. From donald at ziesig.org Mon Jan 29 02:52:22 2018 From: donald at ziesig.org (Donald Ziesig) Date: Sun, 28 Jan 2018 20:52:22 -0500 Subject: [Lazarus] IDE focused window after app terminates In-Reply-To: References: Message-ID: <9ded7d33-357a-2313-422e-68f32a3bd3a6@ziesig.org> On 01/28/2018 05:44 PM, Bart via Lazarus wrote: > On Sun, Jan 28, 2018 at 11:13 PM, Donald Ziesig via Lazarus > wrote: > >> I have noticed a similar problem with Lazarus 1.8.0 that did not happen in >> earlier versions. When I click on a tab in the Source Editor with the focus >> in an editor window, the focus switches somewhere not in the window I >> switched to. IIRC it used to remember where the cursor and focus was for >> each window, but now I have to explicitly click on the selected editing >> surface (which changes the cursor position). > > IIRC this was fixed some time ago. > > Bart Thanks, I'll give it a try. From lazarus at kluug.net Mon Jan 29 09:45:24 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Mon, 29 Jan 2018 09:45:24 +0100 Subject: [Lazarus] High-DPI TImageList In-Reply-To: <6bebee49-501d-c2e2-047a-2b7fddbcdc4d@c-m-w.me.uk> References: <6bebee49-501d-c2e2-047a-2b7fddbcdc4d@c-m-w.me.uk> Message-ID: <99c5fb52-b8eb-94cb-f51f-8257b3448b00@kluug.net> 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 >> http://wiki.freepascal.org/Lazarus_1.10.0_release_notes >> >> Ondrej > > With trunk my application now gives lots of tracebacks when using the > main menu, which has some images set, though not using an imagelist: > > ERROR in LCL: TGtk2WidgetSet.CreateBitmapFromRawImage Incompatible > BitsPerPixel > Creating gdb catchable error: > >   $000000000088BA69  DEBUGLNSTACK,  line 731 of lazloggerbase.pas >   $00000000007788E0  DUMPSTACK,  line 1392 of lclproc.pas >   $0000000000776043  RAISEGDBEXCEPTION,  line 860 of lclproc.pas >   $00000000006EB170  RAWIMAGE_CREATEBITMAPS,  line 417 of > gtk2/gtk2lclintf.inc >   $0000000000787202  RAWIMAGE_CREATEBITMAPS,  line 152 of > include/lclintf.inc >   $00000000008F0FF0  CREATEBITMAPS,  line 3633 of intfgraphics.pas >   $000000000095B362  INSERTMASKED,  line 1802 of include/imglist.inc >   $0000000000958DC1  ADDMASKED,  line 1143 of include/imglist.inc >   $000000000086717C  DRAWMENUITEMICON,  line 5809 of gtk2 > > This is using GTK2. Has the implementation of the main menu changed > significantly? Unfortunately this is slightly tricky to debug, as the > entire desktop freezes. Do you use Glyphs in the menu? Anyway, please create a bug report and if possible, attach a sample project to reproduce. Thanks. The implementation of main menu didn't change significantly, but the image list did change (the menu uses image list internally to store the menu item glyphs). It looks like Gtk2 doesn't like the new AddMasked method. Ondrej From l at c-m-w.me.uk Mon Jan 29 10:02:54 2018 From: l at c-m-w.me.uk (C Western) Date: Mon, 29 Jan 2018 09:02:54 +0000 Subject: [Lazarus] High-DPI TImageList In-Reply-To: <99c5fb52-b8eb-94cb-f51f-8257b3448b00@kluug.net> References: <6bebee49-501d-c2e2-047a-2b7fddbcdc4d@c-m-w.me.uk> <99c5fb52-b8eb-94cb-f51f-8257b3448b00@kluug.net> Message-ID: <94cca5f3-9329-ea01-15df-4aa76eaa276c@c-m-w.me.uk> 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 >>> 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 >> >> With trunk my application now gives lots of tracebacks when using the >> main menu, which has some images set, though not using an imagelist: >> >> ERROR in LCL: TGtk2WidgetSet.CreateBitmapFromRawImage Incompatible >> BitsPerPixel >> Creating gdb catchable error: >> >>   $000000000088BA69  DEBUGLNSTACK,  line 731 of lazloggerbase.pas >>   $00000000007788E0  DUMPSTACK,  line 1392 of lclproc.pas >>   $0000000000776043  RAISEGDBEXCEPTION,  line 860 of lclproc.pas >>   $00000000006EB170  RAWIMAGE_CREATEBITMAPS,  line 417 of >> gtk2/gtk2lclintf.inc >>   $0000000000787202  RAWIMAGE_CREATEBITMAPS,  line 152 of >> include/lclintf.inc >>   $00000000008F0FF0  CREATEBITMAPS,  line 3633 of intfgraphics.pas >>   $000000000095B362  INSERTMASKED,  line 1802 of include/imglist.inc >>   $0000000000958DC1  ADDMASKED,  line 1143 of include/imglist.inc >>   $000000000086717C  DRAWMENUITEMICON,  line 5809 of gtk2 >> >> This is using GTK2. Has the implementation of the main menu changed >> significantly? Unfortunately this is slightly tricky to debug, as the >> entire desktop freezes. > > Do you use Glyphs in the menu? Anyway, please create a bug report and if > possible, attach a sample project to reproduce. Thanks. I do use glyphs on a few of the menu items. Unfortunately a small project with just this doesn't show the error, so a sample project will require some thought. Colin From lazarus at kluug.net Mon Jan 29 10:44:45 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Mon, 29 Jan 2018 10:44:45 +0100 Subject: [Lazarus] High-DPI TImageList In-Reply-To: <94cca5f3-9329-ea01-15df-4aa76eaa276c@c-m-w.me.uk> References: <6bebee49-501d-c2e2-047a-2b7fddbcdc4d@c-m-w.me.uk> <99c5fb52-b8eb-94cb-f51f-8257b3448b00@kluug.net> <94cca5f3-9329-ea01-15df-4aa76eaa276c@c-m-w.me.uk> Message-ID: <04dc6aa8-70c9-9af9-f6dc-832aeaab500b@kluug.net> 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 >>>> 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 >>> >>> With trunk my application now gives lots of tracebacks when using >>> the main menu, which has some images set, though not using an >>> imagelist: >>> >>> ERROR in LCL: TGtk2WidgetSet.CreateBitmapFromRawImage Incompatible >>> BitsPerPixel >>> Creating gdb catchable error: >>> >>>   $000000000088BA69  DEBUGLNSTACK,  line 731 of lazloggerbase.pas >>>   $00000000007788E0  DUMPSTACK,  line 1392 of lclproc.pas >>>   $0000000000776043  RAISEGDBEXCEPTION,  line 860 of lclproc.pas >>>   $00000000006EB170  RAWIMAGE_CREATEBITMAPS,  line 417 of >>> gtk2/gtk2lclintf.inc >>>   $0000000000787202  RAWIMAGE_CREATEBITMAPS,  line 152 of >>> include/lclintf.inc >>>   $00000000008F0FF0  CREATEBITMAPS,  line 3633 of intfgraphics.pas >>>   $000000000095B362  INSERTMASKED,  line 1802 of include/imglist.inc >>>   $0000000000958DC1  ADDMASKED,  line 1143 of include/imglist.inc >>>   $000000000086717C  DRAWMENUITEMICON,  line 5809 of gtk2 >>> >>> This is using GTK2. Has the implementation of the main menu changed >>> significantly? Unfortunately this is slightly tricky to debug, as >>> the entire desktop freezes. >> >> Do you use Glyphs in the menu? Anyway, please create a bug report and >> if possible, attach a sample project to reproduce. Thanks. > I do use glyphs on a few of the menu items. Unfortunately a small > project with just this doesn't show the error, so a sample project > will require some thought. I assume it's a specific glyph that doesn't work. Try to add a DebugLn with the menu item name into DRAWMENUITEMICON so that you'll know what menu item and glyph causes it. Ondrej From lazarus at kluug.net Mon Jan 29 11:29:12 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Mon, 29 Jan 2018 11:29:12 +0100 Subject: [Lazarus] High-DPI TImageList In-Reply-To: <4b0a369a-044a-39f0-75ae-81273ef9621c@freenet.de> References: <4b0a369a-044a-39f0-75ae-81273ef9621c@freenet.de> Message-ID: 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 >> http://wiki.freepascal.org/Lazarus_1.10.0_release_notes > > Porting the TurboPower SysTools library to Lazarus, I noticed today > (after having updated trunk to contain the new imagelist) that their > palette icons no longer have a transparent background. These icons are > old-fashioned bmp images with that pseudo-transparency, i.e. one > particular color is defined to become transparent. I'll switch to png > images anyway, but maybe this bmp transparency issue should be fixed. Please retest with r57180 (I don't have any components installed that use BMP icons). Ondrej From werner.pamler at freenet.de Mon Jan 29 11:55:31 2018 From: werner.pamler at freenet.de (Werner Pamler) Date: Mon, 29 Jan 2018 11:55:31 +0100 Subject: [Lazarus] High-DPI TImageList In-Reply-To: References: <4b0a369a-044a-39f0-75ae-81273ef9621c@freenet.de> Message-ID: Am 29.01.2018 um 11:29 schrieb Ondrej Pokorny via Lazarus: > On 29.01.2018 0:18, Werner Pamler via Lazarus wrote: >> Porting the TurboPower SysTools library to Lazarus, I noticed today >> (after having updated trunk to contain the new imagelist) that their >> palette icons no longer have a transparent background. These icons >> are old-fashioned bmp images with that pseudo-transparency, i.e. one >> particular color is defined to become transparent. I'll switch to png >> images anyway, but maybe this bmp transparency issue should be fixed. > > Please retest with r57180 (I don't have any components installed that > use BMP icons). Yes, working fine again. Thank you. From l at c-m-w.me.uk Mon Jan 29 23:10:51 2018 From: l at c-m-w.me.uk (C Western) Date: Mon, 29 Jan 2018 22:10:51 +0000 Subject: [Lazarus] High-DPI TImageList In-Reply-To: <04dc6aa8-70c9-9af9-f6dc-832aeaab500b@kluug.net> References: <6bebee49-501d-c2e2-047a-2b7fddbcdc4d@c-m-w.me.uk> <99c5fb52-b8eb-94cb-f51f-8257b3448b00@kluug.net> <94cca5f3-9329-ea01-15df-4aa76eaa276c@c-m-w.me.uk> <04dc6aa8-70c9-9af9-f6dc-832aeaab500b@kluug.net> Message-ID: <6a31fa07-ef60-3c1c-b124-50fa19421441@c-m-w.me.uk> On 29/01/18 09:44, Ondrej Pokorny via Lazarus wrote: > 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 >>>>> 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 >>>> >>>> With trunk my application now gives lots of tracebacks when using >>>> the main menu, which has some images set, though not using an >>>> imagelist: >>>> >>>> ERROR in LCL: TGtk2WidgetSet.CreateBitmapFromRawImage Incompatible >>>> BitsPerPixel >>>> Creating gdb catchable error: >>>> >>>>   $000000000088BA69  DEBUGLNSTACK,  line 731 of lazloggerbase.pas >>>>   $00000000007788E0  DUMPSTACK,  line 1392 of lclproc.pas >>>>   $0000000000776043  RAISEGDBEXCEPTION,  line 860 of lclproc.pas >>>>   $00000000006EB170  RAWIMAGE_CREATEBITMAPS,  line 417 of >>>> gtk2/gtk2lclintf.inc >>>>   $0000000000787202  RAWIMAGE_CREATEBITMAPS,  line 152 of >>>> include/lclintf.inc >>>>   $00000000008F0FF0  CREATEBITMAPS,  line 3633 of intfgraphics.pas >>>>   $000000000095B362  INSERTMASKED,  line 1802 of include/imglist.inc >>>>   $0000000000958DC1  ADDMASKED,  line 1143 of include/imglist.inc >>>>   $000000000086717C  DRAWMENUITEMICON,  line 5809 of gtk2 >>>> >>>> This is using GTK2. Has the implementation of the main menu changed >>>> significantly? Unfortunately this is slightly tricky to debug, as >>>> the entire desktop freezes. >>> >>> Do you use Glyphs in the menu? Anyway, please create a bug report and >>> if possible, attach a sample project to reproduce. Thanks. >> I do use glyphs on a few of the menu items. Unfortunately a small >> project with just this doesn't show the error, so a sample project >> will require some thought. > > I assume it's a specific glyph that doesn't work. Try to add a DebugLn > with the menu item name into DRAWMENUITEMICON so that you'll know what > menu item and glyph causes it. > > Ondrej I have submitted https://bugs.freepascal.org/view.php?id=33099 It does not show the crash, but it does show some issues. My investigations show that the test program does not crash in the same way as Masked is false for the menu image, whereas it is true in my full program, and I haven't been able to track down why yet. Colin From l at c-m-w.me.uk Mon Jan 29 23:22:36 2018 From: l at c-m-w.me.uk (C Western) Date: Mon, 29 Jan 2018 22:22:36 +0000 Subject: [Lazarus] High-DPI TImageList In-Reply-To: <6a31fa07-ef60-3c1c-b124-50fa19421441@c-m-w.me.uk> References: <6bebee49-501d-c2e2-047a-2b7fddbcdc4d@c-m-w.me.uk> <99c5fb52-b8eb-94cb-f51f-8257b3448b00@kluug.net> <94cca5f3-9329-ea01-15df-4aa76eaa276c@c-m-w.me.uk> <04dc6aa8-70c9-9af9-f6dc-832aeaab500b@kluug.net> <6a31fa07-ef60-3c1c-b124-50fa19421441@c-m-w.me.uk> Message-ID: <219039d7-e1fe-e157-15a4-138de22cb539@c-m-w.me.uk> On 29/01/18 22:10, C Western via Lazarus wrote: > On 29/01/18 09:44, Ondrej Pokorny via Lazarus wrote: >> 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 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 >>>>> >>>>> With trunk my application now gives lots of tracebacks when using >>>>> the main menu, which has some images set, though not using an >>>>> imagelist: >>>>> >>>>> ERROR in LCL: TGtk2WidgetSet.CreateBitmapFromRawImage Incompatible >>>>> BitsPerPixel >>>>> Creating gdb catchable error: >>>>> >>>>>   $000000000088BA69  DEBUGLNSTACK,  line 731 of lazloggerbase.pas >>>>>   $00000000007788E0  DUMPSTACK,  line 1392 of lclproc.pas >>>>>   $0000000000776043  RAISEGDBEXCEPTION,  line 860 of lclproc.pas >>>>>   $00000000006EB170  RAWIMAGE_CREATEBITMAPS,  line 417 of >>>>> gtk2/gtk2lclintf.inc >>>>>   $0000000000787202  RAWIMAGE_CREATEBITMAPS,  line 152 of >>>>> include/lclintf.inc >>>>>   $00000000008F0FF0  CREATEBITMAPS,  line 3633 of intfgraphics.pas >>>>>   $000000000095B362  INSERTMASKED,  line 1802 of include/imglist.inc >>>>>   $0000000000958DC1  ADDMASKED,  line 1143 of include/imglist.inc >>>>>   $000000000086717C  DRAWMENUITEMICON,  line 5809 of gtk2 >>>>> >>>>> This is using GTK2. Has the implementation of the main menu changed >>>>> significantly? Unfortunately this is slightly tricky to debug, as >>>>> the entire desktop freezes. >>>> >>>> Do you use Glyphs in the menu? Anyway, please create a bug report >>>> and if possible, attach a sample project to reproduce. Thanks. >>> I do use glyphs on a few of the menu items. Unfortunately a small >>> project with just this doesn't show the error, so a sample project >>> will require some thought. >> >> I assume it's a specific glyph that doesn't work. Try to add a DebugLn >> with the menu item name into DRAWMENUITEMICON so that you'll know what >> menu item and glyph causes it. >> >> Ondrej > > I have submitted https://bugs.freepascal.org/view.php?id=33099 > > It does not show the crash, but it does show some issues. My > investigations show that the test program does not crash in the same way > as Masked is false for the menu image, whereas it is true in my full > program, and I haven't been able to track down why yet. > > Colin Update: I found my main program had some code I had forgotten about that explicitly sets transparent for each menu bitmap: MenuItem2.Bitmap.Transparent := True; and that is why the error is triggered in my main program. (The need to do this may be a bug, but if so it has been present for a long time.) Colin From dibo20 at wp.pl Tue Jan 30 00:19:22 2018 From: dibo20 at wp.pl (Krzysztof) Date: Tue, 30 Jan 2018 00:19:22 +0100 Subject: [Lazarus] fpcres not found with custom FPC 2.6.4 installation on Ubuntu Message-ID: Hi, I have fresh and clean Ubuntu OS (actually KDE Neon) and want to install Lazarus and FPC not with .deb packages as I used to do from many years, but in custom home dir (nothing in /bin or /usr/bin) because I want to have FPC 2.6.4 and FPC 3.0.4 living together separated + Lazarus 1.8 compiled and using right FPC version. So I downloaded FPC binaries + source and Lazarus 1.8 source. At first started with FPC 2.6.4. Extracted everything into: /home//programowanie/fpc2/fpc <-- binaries /home//programowanie/fpc2/fpc-src <-- FPC source /home//programowanie/Lazarus_1_8_FPC2 <-- Lazarus source The "/home//programowanie/fpc2/fpc" dir is a result of "install.sh" from fpc-2.6.4.x86_64-linux.tar. I ran it without "sudo" so I'm sure that nothing is put in "/usr/bin" or "/bin" because it require root permission. File /home//.fpc.cfg is created correctly with all paths pointing to "/home//programowanie/fpc2/fpc". Everything looks fine. Now I have "mylazbuild.sh" build script in "Lazarus_1_8_FPC2" dir with content: #!/usr/bin/env bash make clean make all PP=/home//programowanie/fpc2/fpc/lib/fpc/2.6.4/ppcx64 LCL_PLATFORM=qt When run it (without sudo of course), it is compiling for a long while (promises good config), but at the end getting: lazbuild.lpr(1872,1) Error: (9021) resource compiler "fpcres" not found, switching to external mode Any idea what is wrong? Do I have specify something in "export PATH=...."? Tried even make symlink to the ".../fpc2/fpc/bin/fpcres" in "/usr/locale/bin" or "/usr/bin" or "/bin" but it didn't help Regards From dibo20 at wp.pl Tue Jan 30 00:34:31 2018 From: dibo20 at wp.pl (Krzysztof) Date: Tue, 30 Jan 2018 00:34:31 +0100 Subject: [Lazarus] fpcres not found with custom FPC 2.6.4 installation on Ubuntu In-Reply-To: References: Message-ID: Note that I'm using stable releases both for FPC and Lazarus. Even tried same "mylazbuild.sh" script on Lazarus 1.6.2 source (which should be more compatible with FPC 2.6.4) and still getting same fpcres error From den.jean at telenet.be Tue Jan 30 00:48:46 2018 From: den.jean at telenet.be (den.jean at telenet.be) Date: Tue, 30 Jan 2018 00:48:46 +0100 (CET) Subject: [Lazarus] FOSDEM 2018 Message-ID: <308544003.174591279.1517269726582.JavaMail.zimbra@telenet.be> Hi, https://fosdem.org/2018/ Anyone going ? https://fosdem.org/2018/schedule/event/hwenablement_uefi_for_dummies/ https://fosdem.org/2018/schedule/event/microkernel_toro_reducing_cpu_usage/ https://fosdem.org/2018/schedule/speaker/thomas_schatzl/ Regards, Jan Van hijfte From aaa5500 at ya.ru Tue Jan 30 06:05:09 2018 From: aaa5500 at ya.ru (Alexey) Date: Tue, 30 Jan 2018 08:05:09 +0300 Subject: [Lazarus] fpcres not found with custom FPC 2.6.4 installation on Ubuntu In-Reply-To: References: Message-ID: You can install both fpc 2 and 3, if you use the tool: fpcupdeluxe. Alex From nc-gaertnma at netcologne.de Tue Jan 30 06:35:14 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Tue, 30 Jan 2018 06:35:14 +0100 Subject: [Lazarus] fpcres not found with custom FPC 2.6.4 installation on Ubuntu In-Reply-To: References: Message-ID: <20180130063514.3c014720@limapholos.matflo.wg> On Tue, 30 Jan 2018 00:19:22 +0100 Krzysztof via Lazarus wrote: >[...] > /home//programowanie/fpc2/fpc <-- binaries > /home//programowanie/fpc2/fpc-src <-- FPC source > /home//programowanie/Lazarus_1_8_FPC2 <-- Lazarus source >[...] #!/usr/bin/env bash PATH="/home//programowanie/fpc2/fpc/lib/fpc/2.6.4/:$PATH" make clean make all PP=/home//programowanie/fpc2/fpc/lib/fpc/2.6.4/ppcx64 LCL_PLATFORM=qt You must start Lazarus with such a PATH too. Mattias From matiasevara at gmail.com Tue Jan 30 10:23:59 2018 From: matiasevara at gmail.com (Matias Vara) Date: Tue, 30 Jan 2018 10:23:59 +0100 Subject: [Lazarus] FOSDEM 2018 In-Reply-To: <308544003.174591279.1517269726582.JavaMail.zimbra@telenet.be> References: <308544003.174591279.1517269726582.JavaMail.zimbra@telenet.be> Message-ID: Hello, I am giving the talk about reducing the cpu usage of Toro appliance. Aparte of that, I will go for a couple of talks in the automotive room and in the virtualizacion room. Regards, Matias. 2018-01-30 0:48 GMT+01:00 Den Jean via Lazarus < lazarus at lists.lazarus-ide.org>: > Hi, > > https://fosdem.org/2018/ > > Anyone going ? > > https://fosdem.org/2018/schedule/event/hwenablement_uefi_for_dummies/ > https://fosdem.org/2018/schedule/event/microkernel_ > toro_reducing_cpu_usage/ > https://fosdem.org/2018/schedule/speaker/thomas_schatzl/ > > Regards, > > Jan Van hijfte > > > > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dibo20 at wp.pl Tue Jan 30 19:03:37 2018 From: dibo20 at wp.pl (Krzysztof) Date: Tue, 30 Jan 2018 19:03:37 +0100 Subject: [Lazarus] fpcres not found with custom FPC 2.6.4 installation on Ubuntu In-Reply-To: <20180130063514.3c014720@limapholos.matflo.wg> References: <20180130063514.3c014720@limapholos.matflo.wg> Message-ID: 2018-01-30 6:35 GMT+01:00 Mattias Gaertner via Lazarus : > #!/usr/bin/env bash > > PATH="/home//programowanie/fpc2/fpc/lib/fpc/2.6.4/:$PATH" > make clean > make all PP=/home//programowanie/fpc2/fpc/lib/fpc/2.6.4/ppcx64 > LCL_PLATFORM=qt > > You must start Lazarus with such a PATH too. Thanks a lot! Works now (but correct path must be: PATH="/home//programowanie/fpc2/fpc/bin/:$PATH" ) > You can install both fpc 2 and 3, if you use the tool: fpcupdeluxe. Interesting tool but already solved it with :$PATH and works perfect. Thanks anyway From joshyfun at gmail.com Tue Jan 30 19:20:48 2018 From: joshyfun at gmail.com (=?UTF-8?Q?Jos=c3=a9_Mejuto?=) Date: Tue, 30 Jan 2018 19:20:48 +0100 Subject: [Lazarus] LCL hide main menu Message-ID: <0aad8c02-9d0a-010d-2467-ad4434538ac6@gmail.com> Hello, I'm in the process of updating LCL-fpGUI widgetset and I found a problem that I was unable to solve: There is a main menu with one item, when I set Visible:=false for this item the whole menu is hidden (tested using Win32 widgetset) and the components in the form are "automagically" moved up to the space left by the hidden menu bar. In fpGUI widgetset the menu bar is hidden also but I was unable to instruct LCL to reposition all visual objects unless I send a SIZE message to the LCL, but, if I send this message further autosize is ignored as it only works if the message is sent as coming from the user input. Of course I tested with the Form.InvalidateClientRectCache but nothing happens until I sent the SIZE message. Can somebody enlight me ? -- From zeljko at holobit.net Wed Jan 31 19:18:29 2018 From: zeljko at holobit.net (zeljko) Date: Wed, 31 Jan 2018 19:18:29 +0100 Subject: [Lazarus] Problem with fpc-3.0.4 and double Message-ID: <593e447e-7b48-be0f-d44c-166edac8518e@holobit.net> Hi all, In one of my applications I'm using someDouble1 <> someDouble2 for years, now got problem with fpc-3.0.4 (all previous fpc versions were ok (3.0.2, 3.0.0, 2.6.4, 2.6.2, 2.6.0...etc) + kylix + delphi7), so now must use IsSameValue(someDouble1,someDouble2) to get correct comparision of double types. What exactly have been changed in fpc-3.0.4 with double types (or generally with floats) ? Do I have to check all of my code now and change comparisions of doubles to use IsSameValue() ? Anyone boomed by such problem ? P.S: Sorry for writing in lazarus list, don't have fpc list account... zeljko From freedos.la at gmail.com Wed Jan 31 19:27:31 2018 From: freedos.la at gmail.com (Ralf Quint) Date: Wed, 31 Jan 2018 10:27:31 -0800 Subject: [Lazarus] Problem with fpc-3.0.4 and double In-Reply-To: <593e447e-7b48-be0f-d44c-166edac8518e@holobit.net> References: <593e447e-7b48-be0f-d44c-166edac8518e@holobit.net> Message-ID: <5ecc08d8-ae89-b5aa-d424-66dc4961a65c@gmail.com> On 1/31/2018 10:18 AM, zeljko via Lazarus wrote: > Hi all, > In one of my applications I'm using someDouble1 <> someDouble2 for > years, now got problem with fpc-3.0.4 (all previous fpc versions were > ok (3.0.2, 3.0.0, 2.6.4, 2.6.2, 2.6.0...etc) + kylix + delphi7), so > now must use IsSameValue(someDouble1,someDouble2) to get correct > comparision of double types. > > What exactly have been changed in fpc-3.0.4 with double types (or > generally with floats) ?  Do I have to check all of my code now and > change comparisions of doubles to use IsSameValue() ? > > Anyone boomed by such problem ? Comparing any floating point value like this is pure luck when you claim that it worked in the past. In any programming language, unless maybe you are using one that by default utilizes BCD floats. Using binary floats, there are just too many values that can't be represented 100%, regardless of the length of the mantissa. https://en.wikipedia.org/wiki/Floating-point_arithmetic#Accuracy_problems Ralf --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus From zeljko at holobit.net Wed Jan 31 19:31:56 2018 From: zeljko at holobit.net (zeljko) Date: Wed, 31 Jan 2018 19:31:56 +0100 Subject: [Lazarus] Problem with fpc-3.0.4 and double In-Reply-To: <5ecc08d8-ae89-b5aa-d424-66dc4961a65c@gmail.com> References: <593e447e-7b48-be0f-d44c-166edac8518e@holobit.net> <5ecc08d8-ae89-b5aa-d424-66dc4961a65c@gmail.com> Message-ID: On 01/31/2018 07:27 PM, Ralf Quint via Lazarus wrote: > > Comparing any floating point value like this is pure luck when you claim > that it worked in the past. In any programming language, unless maybe > you are using one that by default utilizes BCD floats. > Using binary floats, there are just too many values that can't be > represented 100%, regardless of the length of the mantissa. > https://en.wikipedia.org/wiki/Floating-point_arithmetic#Accuracy_problems Thanks Ralf, I know what is floating point arithmetic, but something is changed between 3.0.2 and 3.0.4 and I want to know what it is. zeljko