From nc-gaertnma at netcologne.de Thu May 19 09:11:21 2022 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 19 May 2022 09:11:21 +0200 Subject: [Lazarus] Lazarus Release 2.2.2 Message-ID: <20220519091121.7946d836@limapholos> The Lazarus team is glad to announce the release of Lazarus 2.2.2. This is a bugfix release and was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_2.2.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.2 Here is the list of fixes for Lazarus 2.2.x: https://gitlab.com/freepascal.org/lazarus/lazarus/-/commits/fixes_2_2 The release is available for download on SourceForge: http://sourceforge.net/projects/lazarus/files/ Choose your CPU, OS, distro and then the "Lazarus 2.2.2" directory. Checksums for the SourceForge files: https://www.lazarus-ide.org/index.php?page=checksums#2_2_2 Minimum requirements: Windows: 2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit. FreeBSD/Linux: gtk 2.24 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit. Mac OS X: Cocoa (64bit) 10.12 to 12.3, Carbon (32bit) 10.5 to 10.14, qt and qt5 (32 or 64bit). The gitlab page: https://gitlab.com/freepascal.org/lazarus/lazarus/-/tree/lazarus_2_2_2 For people who are blocked by SF, the Lazarus releases from SourceForge are mirrored at:ftp://ftp.freepascal.org/pub/lazarus/releases/ Mattias From nc-gaertnma at netcologne.de Thu May 19 09:21:02 2022 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 19 May 2022 09:21:02 +0200 Subject: [Lazarus] Lazarus Release 2.2.2 Message-ID: <20220519092102.795a90ce@limapholos> The Lazarus team is glad to announce the release of Lazarus 2.2.2. This is a bugfix release and was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_2.2.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.2 Here is the list of fixes for Lazarus 2.2.x: https://gitlab.com/freepascal.org/lazarus/lazarus/-/commits/fixes_2_2 The release is available for download on SourceForge: http://sourceforge.net/projects/lazarus/files/ Choose your CPU, OS, distro and then the "Lazarus 2.2.2" directory. Checksums for the SourceForge files: https://www.lazarus-ide.org/index.php?page=checksums#2_2_2 Minimum requirements: Windows: 2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit. FreeBSD/Linux: gtk 2.24 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit. Mac OS X: Cocoa (64bit) 10.12 to 12.3, Carbon (32bit) 10.5 to 10.14, qt and qt5 (32 or 64bit). The gitlab page: https://gitlab.com/freepascal.org/lazarus/lazarus/-/tree/lazarus_2_2_2 For people who are blocked by SF, the Lazarus releases from SourceForge are mirrored at:ftp://ftp.freepascal.org/pub/lazarus/releases/ Mattias From nc-gaertnma at netcologne.de Thu May 19 09:21:23 2022 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 19 May 2022 09:21:23 +0200 Subject: [Lazarus] Lazarus Release 2.2.2 Message-ID: <20220519092123.09774b92@limapholos> The Lazarus team is glad to announce the release of Lazarus 2.2.2. This is a bugfix release and was built with FPC 3.2.2. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_2.2.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.2 Here is the list of fixes for Lazarus 2.2.x: https://gitlab.com/freepascal.org/lazarus/lazarus/-/commits/fixes_2_2 The release is available for download on SourceForge: http://sourceforge.net/projects/lazarus/files/ Choose your CPU, OS, distro and then the "Lazarus 2.2.2" directory. Checksums for the SourceForge files: https://www.lazarus-ide.org/index.php?page=checksums#2_2_2 Minimum requirements: Windows: 2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit. FreeBSD/Linux: gtk 2.24 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit. Mac OS X: Cocoa (64bit) 10.12 to 12.3, Carbon (32bit) 10.5 to 10.14, qt and qt5 (32 or 64bit). The gitlab page: https://gitlab.com/freepascal.org/lazarus/lazarus/-/tree/lazarus_2_2_2 For people who are blocked by SF, the Lazarus releases from SourceForge are mirrored at:ftp://ftp.freepascal.org/pub/lazarus/releases/ Mattias From nc-gaertnma at netcologne.de Thu May 19 09:33:48 2022 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 19 May 2022 09:33:48 +0200 Subject: [Lazarus] Lazarus Release 2.2.2 In-Reply-To: <20220519092123.09774b92@limapholos> References: <20220519092123.09774b92@limapholos> Message-ID: <20220519093348.765a27d8@limapholos> Sorry for the double posts. Mattias From leobronstain at gmail.com Fri May 20 06:59:52 2022 From: leobronstain at gmail.com (Leyba Bronstain) Date: Fri, 20 May 2022 07:59:52 +0300 Subject: [Lazarus] Some observations on components font styles Message-ID: <0eff9cf5-1259-88ee-8d1d-e8479914dcff@gmail.com> Hi all. I started investigating why the standard rrrrrr for nix doesn't change some text attributes (see https://forum.lazarus.freepascal.org/index.php/topic,59373.msg442622.html#msg442622). I found that for Unix-like OS, some TWinControl? descendans cannot have the font style fsStrikeOut and fsUnderline. But descendants of TGraphicControl (e.g. TLabel) display these styles correctly. What is it: a bug or a feature? -- /-- with best regards, Zoltanleo aka ???/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Scr_341.png Type: image/png Size: 4568 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Scr_342.png Type: image/png Size: 14219 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Scr_343.png Type: image/png Size: 11386 bytes Desc: not available URL: From coppolastudio at gmail.com Fri May 20 11:47:34 2022 From: coppolastudio at gmail.com (Salvatore Coppola) Date: Fri, 20 May 2022 11:47:34 +0200 Subject: [Lazarus] Lazarus Release 2.2.2 In-Reply-To: <20220519092123.09774b92@limapholos> References: <20220519092123.09774b92@limapholos> Message-ID: <5a703cc7-5334-407a-9c9c-cb847d9cc6fc@gmail.com> It seems that the list of changes is for 2.2.0 ?Ottieni BlueMail per Android ? Il giorno 19 Mag 2022, 09:21, alle ore 09:21, Mattias Gaertner via lazarus ha scritto: >The Lazarus team is glad to announce the release of Lazarus 2.2.2. > >This is a bugfix release and was built with FPC 3.2.2. > >Here is the list of changes for Lazarus and Free Pascal: >http://wiki.lazarus.freepascal.org/Lazarus_2.2.0_release_notes >http://wiki.lazarus.freepascal.org/User_Changes_3.2.2 > >Here is the list of fixes for Lazarus 2.2.x: >https://gitlab.com/freepascal.org/lazarus/lazarus/-/commits/fixes_2_2 > >The release is available for download on SourceForge: >http://sourceforge.net/projects/lazarus/files/ > >Choose your CPU, OS, distro and then the "Lazarus 2.2.2" directory. > >Checksums for the SourceForge files: >https://www.lazarus-ide.org/index.php?page=checksums#2_2_2 > >Minimum requirements: > >Windows: > 2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit. > >FreeBSD/Linux: > gtk 2.24 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit. > >Mac OS X: > Cocoa (64bit) 10.12 to 12.3, Carbon (32bit) 10.5 to 10.14, qt and > qt5 (32 or 64bit). > >The gitlab page: >https://gitlab.com/freepascal.org/lazarus/lazarus/-/tree/lazarus_2_2_2 > >For people who are blocked by SF, the Lazarus releases from SourceForge >are mirrored at:ftp://ftp.freepascal.org/pub/lazarus/releases/ > > >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 lazarus at mfriebe.de Fri May 20 12:16:22 2022 From: lazarus at mfriebe.de (Martin Frb) Date: Fri, 20 May 2022 12:16:22 +0200 Subject: [Lazarus] Lazarus Release 2.2.2 In-Reply-To: <5a703cc7-5334-407a-9c9c-cb847d9cc6fc@gmail.com> References: <20220519092123.09774b92@limapholos> <5a703cc7-5334-407a-9c9c-cb847d9cc6fc@gmail.com> Message-ID: <147bc211-8334-ab35-b9a6-e66c35693c08@mfriebe.de> On 20/05/2022 11:47, Salvatore Coppola via lazarus wrote: > It seems that the list of changes is for 2.2.0 > > Ottieni BlueMail per Android > Il giorno 19 Mag 2022, alle ore 09:21, Mattias Gaertner via lazarus > ha scritto: > > Here is the list of changes for Lazarus and Free Pascal: > http://wiki.lazarus.freepascal.org/Lazarus_2.2.0_release_notes > http://wiki.lazarus.freepascal.org/User_Changes_3.2.2 > > Here is the list of fixes for Lazarus 2.2.x: > https://gitlab.com/freepascal.org/lazarus/lazarus/-/commits/fixes_2_2 > 2.2.2 is a "FIXES" release based on 2.2.0 So it has no new features over 2.2.0. Only bug fixes. The "Release Notes" page are the feature announcement (and that hasn't changed) Below that is the link to what was fixed. -------------- next part -------------- An HTML attachment was scrubbed... URL: From md at delfire.net Fri May 20 16:28:59 2022 From: md at delfire.net (Marcos Douglas B. Santos) Date: Fri, 20 May 2022 11:28:59 -0300 Subject: [Lazarus] Simplest way to update a .lfm using a Component Editor Message-ID: Hello, I wrote a component which has a Component Editor. How is the simplest way to update the .lfm form, using this Component Editor? I took a look in fieldseditor to get some example, but I guess the code there is more complicated than I need it. best regards, Marcos Douglas -------------- next part -------------- An HTML attachment was scrubbed... URL: From nc-gaertnma at netcologne.de Fri May 20 16:50:28 2022 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Fri, 20 May 2022 16:50:28 +0200 Subject: [Lazarus] Simplest way to update a .lfm using a Component Editor In-Reply-To: References: Message-ID: <20220520165028.545826d4@limapholos> On Fri, 20 May 2022 11:28:59 -0300 "Marcos Douglas B. Santos via lazarus" wrote: > Hello, > I wrote a component which has a Component Editor. > How is the simplest way to update the .lfm form, using this Component > Editor? What do you mean with "update the lfm"? > I took a look in fieldseditor to get some example, but I guess the > code there is more complicated than I need it. Mattias From md at delfire.net Fri May 20 17:00:01 2022 From: md at delfire.net (Marcos Douglas B. Santos) Date: Fri, 20 May 2022 12:00:01 -0300 Subject: [Lazarus] Simplest way to update a .lfm using a Component Editor In-Reply-To: <20220520165028.545826d4@limapholos> References: <20220520165028.545826d4@limapholos> Message-ID: On Fri, May 20, 2022 at 11:50 AM Mattias Gaertner via lazarus wrote: > > On Fri, 20 May 2022 11:28:59 -0300 > "Marcos Douglas B. Santos via lazarus" > wrote: > > > Hello, > > I wrote a component which has a Component Editor. > > How is the simplest way to update the .lfm form, using this Component > > Editor? > > What do you mean with "update the lfm"? If the Component Editor (CE) changes some property on its owner (component), it doesn't reflect on form .lfm where this component is. If the CE changes something, I would like that the IDE enabled "Save button"; then, saving the form .lfm, it will be modified. For example, I was search some example on fieldseditor, fieldslist, newfield units?as the "Field Editor" creates fields in .lfm when user close it?uses a lot FDesigner instance such FDesigner.PropertyEditorHook.PersistendAdded, FDesigner.Modified, etc Marcos Douglas From md at delfire.net Fri May 20 17:38:19 2022 From: md at delfire.net (Marcos Douglas B. Santos) Date: Fri, 20 May 2022 12:38:19 -0300 Subject: [Lazarus] Simplest way to update a .lfm using a Component Editor In-Reply-To: References: <20220520165028.545826d4@limapholos> Message-ID: On Fri, May 20, 2022 at 12:00 PM Marcos Douglas B. Santos wrote: > > On Fri, May 20, 2022 at 11:50 AM Mattias Gaertner via lazarus > wrote: > > > > On Fri, 20 May 2022 11:28:59 -0300 > > "Marcos Douglas B. Santos via lazarus" > > wrote: > > > > > Hello, > > > I wrote a component which has a Component Editor. > > > How is the simplest way to update the .lfm form, using this Component > > > Editor? > > > > What do you mean with "update the lfm"? > > If the Component Editor (CE) changes some property on its owner > (component), it doesn't reflect on form .lfm where this component is. > If the CE changes something, I would like that the IDE enabled "Save > button"; then, saving the form .lfm, it will be modified. > > For example, I was search some example on fieldseditor, fieldslist, > newfield units?as the "Field Editor" creates fields in .lfm when user > close it?uses a lot FDesigner instance such > FDesigner.PropertyEditorHook.PersistendAdded, FDesigner.Modified, etc Ok, I realized that my problem depends on the case. Another Component Editor (CE), for another component works. So, I think I need to give more details: the problem occurs using a CE for a ToolBar descendent. The CE can add/delete/order the buttons. After user close CE using mrOK, the code remove all buttons, then include new ones https://github.com/tranquilit/pltis_uicomponents/blob/master/src/standard/tis.ui.toolbar.editor.pas#L146-L166 but it doesn't reflect on IDE. Marcos Douglas From md at delfire.net Fri May 20 17:58:15 2022 From: md at delfire.net (Marcos Douglas B. Santos) Date: Fri, 20 May 2022 12:58:15 -0300 Subject: [Lazarus] Simplest way to update a .lfm using a Component Editor In-Reply-To: References: <20220520165028.545826d4@limapholos> Message-ID: On Fri, May 20, 2022 at 12:38 PM Marcos Douglas B. Santos wrote: > > On Fri, May 20, 2022 at 12:00 PM Marcos Douglas B. Santos > wrote: > > > > On Fri, May 20, 2022 at 11:50 AM Mattias Gaertner via lazarus > > wrote: > > > > > > On Fri, 20 May 2022 11:28:59 -0300 > > > "Marcos Douglas B. Santos via lazarus" > > > wrote: > > > > > > > Hello, > > > > I wrote a component which has a Component Editor. > > > > How is the simplest way to update the .lfm form, using this Component > > > > Editor? > > > > > > What do you mean with "update the lfm"? > > > > If the Component Editor (CE) changes some property on its owner > > (component), it doesn't reflect on form .lfm where this component is. > > If the CE changes something, I would like that the IDE enabled "Save > > button"; then, saving the form .lfm, it will be modified. > > > > For example, I was search some example on fieldseditor, fieldslist, > > newfield units?as the "Field Editor" creates fields in .lfm when user > > close it?uses a lot FDesigner instance such > > FDesigner.PropertyEditorHook.PersistendAdded, FDesigner.Modified, etc > > Ok, I realized that my problem depends on the case. Another Component > Editor (CE), for another component works. > So, I think I need to give more details: the problem occurs using a CE > for a ToolBar descendent. > The CE can add/delete/order the buttons. After user close CE using > mrOK, the code remove all buttons, then include new ones > https://github.com/tranquilit/pltis_uicomponents/blob/master/src/standard/tis.ui.toolbar.editor.pas#L146-L166 > but it doesn't reflect on IDE. All right, I guess I need to add new buttons as TToolBarComponentEditor does, I mean, using Hook.PersistentAdded and Modified at the end. I will tell you when I have news... Marcos Douglas From md at delfire.net Fri May 20 19:58:42 2022 From: md at delfire.net (Marcos Douglas B. Santos) Date: Fri, 20 May 2022 14:58:42 -0300 Subject: [Lazarus] Simplest way to update a .lfm using a Component Editor In-Reply-To: References: <20220520165028.545826d4@limapholos> Message-ID: On Fri, May 20, 2022 at 12:58 PM Marcos Douglas B. Santos wrote: > > On Fri, May 20, 2022 at 12:38 PM Marcos Douglas B. Santos > wrote: > > > > On Fri, May 20, 2022 at 12:00 PM Marcos Douglas B. Santos > > wrote: > > > > > > On Fri, May 20, 2022 at 11:50 AM Mattias Gaertner via lazarus > > > wrote: > > > > > > > > On Fri, 20 May 2022 11:28:59 -0300 > > > > "Marcos Douglas B. Santos via lazarus" > > > > wrote: > > > > > > > > > Hello, > > > > > I wrote a component which has a Component Editor. > > > > > How is the simplest way to update the .lfm form, using this Component > > > > > Editor? > > > > > > > > What do you mean with "update the lfm"? > > > > > > If the Component Editor (CE) changes some property on its owner > > > (component), it doesn't reflect on form .lfm where this component is. > > > If the CE changes something, I would like that the IDE enabled "Save > > > button"; then, saving the form .lfm, it will be modified. > > > > > > For example, I was search some example on fieldseditor, fieldslist, > > > newfield units?as the "Field Editor" creates fields in .lfm when user > > > close it?uses a lot FDesigner instance such > > > FDesigner.PropertyEditorHook.PersistendAdded, FDesigner.Modified, etc > > > > Ok, I realized that my problem depends on the case. Another Component > > Editor (CE), for another component works. > > So, I think I need to give more details: the problem occurs using a CE > > for a ToolBar descendent. > > The CE can add/delete/order the buttons. After user close CE using > > mrOK, the code remove all buttons, then include new ones > > https://github.com/tranquilit/pltis_uicomponents/blob/master/src/standard/tis.ui.toolbar.editor.pas#L146-L166 > > but it doesn't reflect on IDE. > > All right, I guess I need to add new buttons as > TToolBarComponentEditor does, I mean, using Hook.PersistentAdded and > Modified at the end. > I will tell you when I have news... I was right about PersistentAdded... anyway, it's working now https://github.com/tranquilit/pltis_uicomponents/commit/f977bf24077f0cad56c02b8ffdf5b834c8800441 Sorry the noise. Marcos Douglas From markbass72 at zoho.com Tue May 24 09:19:10 2022 From: markbass72 at zoho.com (Marcello) Date: Tue, 24 May 2022 09:19:10 +0200 Subject: [Lazarus] Pas2Js and component binding Message-ID: <8440ca1e-e692-e049-5e7f-f003c822ae76@zoho.com> An HTML attachment was scrubbed... URL: From michael at freepascal.org Tue May 24 09:30:49 2022 From: michael at freepascal.org (Michael Van Canneyt) Date: Tue, 24 May 2022 09:30:49 +0200 (CEST) Subject: [Lazarus] Pas2Js and component binding In-Reply-To: <8440ca1e-e692-e049-5e7f-f003c822ae76@zoho.com> References: <8440ca1e-e692-e049-5e7f-f003c822ae76@zoho.com> Message-ID: On Tue, 24 May 2022, Marcello via lazarus wrote: > > hi all > > I've some problems in binding html elements. > > This is the thread I open in forum, attached you can found the my source project. > https://forum.lazarus.freepascal.org/index.php/topic,59432.0.html > > The strange is: inside doRun I call BindElements and seems it works. > Inside the OnClick event of a button, the bind is not valid anymore and I need to bind again before using components. > > 1. procedure?TMyApplication.doLoginClick(aEvent:?TJSEvent); > 2. begin > 3. ??Writeln('doLoginClick'); > 4. ??// BindElements; ? // <- uncomment and all works! > 5. ??writeln('edtEmail.Value = ',?edtEmail.value);?? ?// <- this give the error > 6. ? DoServerLogin(edtEmail.Value,edtPassword.Value); > 7. end; > > So, why the bind is not persistent and I need to bind again before use a component in OnClick event? > Any idea? Normally the bind should be persistent. I use the described technique since several years meanwhile. Please check if your program code contains an Application.Free after the Application.Run. If it does, remove it. Earlier versions of Lazarus generated this statement erroneously when using the 'new web application' wizard. I've been bitten by that problem myself several times. Michael. From markbass72 at zoho.com Tue May 24 09:41:50 2022 From: markbass72 at zoho.com (Marcello) Date: Tue, 24 May 2022 09:41:50 +0200 Subject: [Lazarus] Pas2Js and component binding In-Reply-To: References: <8440ca1e-e692-e049-5e7f-f003c822ae76@zoho.com> Message-ID: <04f083bd-2d69-8560-167c-51aea8b6e693@zoho.com> Il 24/05/22 09:30, Michael Van Canneyt ha scritto: > So, why the bind is not persistent and I need to bind again before use > a component in OnClick event? > > Normally the bind should be persistent. I use the described technique > since several years meanwhile. > > Please check if your program code contains an Application.Free after > the Application.Run. > If it does, remove it. > > Earlier versions of Lazarus generated this statement erroneously when > using > the 'new web application' wizard. > That?s the problem. Application.Free removed, now works perfectly! I'll report this solution in the forum. thanks nomorelogic