From michael at freepascal.org Wed Dec 4 18:39:59 2024 From: michael at freepascal.org (Michael Van Canneyt) Date: Wed, 4 Dec 2024 18:39:59 +0100 (CET) Subject: [Lazarus] Project Session info question Message-ID: Hi, Is there a way to make sure the project option under 'Session': 'Save editor info only for project files' is always checked whenever I start a new project ? Michael. From n7800 at inbox.ru Wed Dec 4 22:58:38 2024 From: n7800 at inbox.ru (=?UTF-8?B?bjc4MDA=?=) Date: Thu, 05 Dec 2024 00:58:38 +0300 Subject: [Lazarus] =?utf-8?q?Project_Session_info_question?= In-Reply-To: References: Message-ID: <1733349518.516933334@f726.i.mail.ru> In the Project Options window there is a checkbox in the corner called "Set compiler options as default", but as the name suggests it does not save the options from the "Project Options" category, which is where your setting belongs. ? So I can only recommend you to use "Project Templates". It is more complicated, but it even allows you to customize what your default main file will look like and much more. ? https://wiki.freepascal.org/Project_Templates ? ? ? ? ? >?????, 4 ??????? 2024, 22:37 +05:00 ?? Michael Van Canneyt via lazarus : >? > >Hi, > >Is there a way to make sure the project option under 'Session': > >'Save editor info only for project files' > >is always checked whenever I start a new project ? > >Michael. >-- >_______________________________________________ >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 michael at freepascal.org Wed Dec 4 23:26:31 2024 From: michael at freepascal.org (Michael Van Canneyt) Date: Wed, 4 Dec 2024 23:26:31 +0100 (CET) Subject: [Lazarus] Project Session info question In-Reply-To: <1733349518.516933334@f726.i.mail.ru> References: <1733349518.516933334@f726.i.mail.ru> Message-ID: <567fadb3-464c-b53-1981-3c388acbed6@freepascal.org> On Thu, 5 Dec 2024, n7800 via lazarus wrote: > > In the Project Options window there is a checkbox in the corner called "Set compiler options as default", but as the name suggests it does not save the options from the "Project Options" category, which is where your setting belongs. > ? > So I can only recommend you to use "Project Templates". It is more complicated, but it even allows you to customize what your default main file will look like and much more. > ? > https://wiki.freepascal.org/Project_Templates I thought of this (I wrote the Project Templates functionality, after all...), but as far as I know a template project cannot be set as a 'default project' at startup. I have 'Simple program' as the startup project. Hm. Maybe I should simply create a descendant of the 'simple program' class and see if I can change the setting in code. Then I can set that as my start project... In each case, it seems to me that the other settings (not compiler related) also should be settable as default. Michael. From n7800 at inbox.ru Thu Dec 5 00:23:41 2024 From: n7800 at inbox.ru (=?UTF-8?B?bjc4MDA=?=) Date: Thu, 05 Dec 2024 02:23:41 +0300 Subject: [Lazarus] =?utf-8?q?Project_Session_info_question?= In-Reply-To: <567fadb3-464c-b53-1981-3c388acbed6@freepascal.org> References: <1733349518.516933334@f726.i.mail.ru> <567fadb3-464c-b53-1981-3c388acbed6@freepascal.org> Message-ID: <1733354621.786643568@f346.i.mail.ru> The template project is also configured as a startup project in the options: IDE Options > Environment > IDE Startup > combobox "New Project Type". ? But if you can/want to change the IDE sources, then it is enough to add the line "AProject.Flags := AProject.Flags + [pfSaveOnlyProjectUnits];" to the "TProjectSimpleProgramDescriptor.InitProject" method of the "ide/projectdescriptortypes.pas" unit. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nightrider43 at gmail.com Sun Dec 15 12:39:39 2024 From: nightrider43 at gmail.com (=?UTF-8?Q?Ar=C3=AD_Ricardo_Ody?=) Date: Sun, 15 Dec 2024 08:39:39 -0300 Subject: [Lazarus] Detect Caps Lock key status change Message-ID: Hello everyone! I recently bought a Philips wireless keyboard. However, I noticed that it does not have an indicator to show whether the Caps Lock key is activated. That is why I had the idea of developing a program in Lazarus that could run continuously in the Windows environment (and possibly in Linux as well). This program would work on top of other applications and would be able to detect the state of the Caps Lock key. When the key was activated, the program would display a colored dot in a small window on the screen. I would like to know if anyone is willing to tell me how the implementation would be to detect the state of the Caps Lock key in real time. I need the program to be able to monitor the key continuously and identify changes in status (from activated to deactivated and vice versa) to update the indicator on the screen immediately. It is worth emphasizing that the aforementioned detection must occur in real time. Thanks in advance! Greetings from S?o Paulo, Brazil, Ar? Ricardo nightrider43 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From nightrider43 at gmail.com Sun Dec 15 18:05:15 2024 From: nightrider43 at gmail.com (=?UTF-8?Q?Ar=C3=AD_Ricardo_Ody?=) Date: Sun, 15 Dec 2024 14:05:15 -0300 Subject: [Lazarus] Handling the Caps Lock key Message-ID: I posted a question earlier about how to handle and display the status of the CapsOn keys since my keyboard has no indicator. With the help of chatGPT I put together a small program that tries to do this by checking the status and trying to change the Text property of a TEdit object. It turns out that every time I run the program I get an "Access Violation". I'm attaching the project files and would like to see if anyone is willing to tell me what's wrong. I'm using Lazarus 3.6 on Windows 11. Greetings from S?o Paulo - Brazil Ar? Ricardo -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: trata_caps_lock.7z Type: application/octet-stream Size: 65423 bytes Desc: not available URL: From jose.dachao at gmail.com Fri Dec 20 11:44:37 2024 From: jose.dachao at gmail.com (Jose Chao) Date: Fri, 20 Dec 2024 07:44:37 -0300 Subject: [Lazarus] Handling the Caps Lock key In-Reply-To: References: Message-ID: Hello everyone. How are you Ari? After a few changes it worked for me. Code attached to this message. Greetings from Pinhalzinho/SP - Brazil Jos? Ch?o Em dom., 15 de dez. de 2024 ?s 14:18, Ar? Ricardo Ody via lazarus < lazarus at lists.lazarus-ide.org> escreveu: > I posted a question earlier about how to handle and display the status of > the CapsOn keys since my keyboard has no indicator. > > With the help of chatGPT I put together a small program that tries to do > this by checking the status and trying to change the Text property of a > TEdit object. It turns out that every time I run the program I get an > "Access Violation". I'm attaching the project files and would like to see > if anyone is willing to tell me what's wrong. I'm using Lazarus 3.6 on > Windows 11. > > Greetings from S?o Paulo - Brazil > > Ar? Ricardo > -- > _______________________________________________ > lazarus mailing list > lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: trata_caps_lock.7z Type: application/x-compressed Size: 65537 bytes Desc: not available URL: From jose.dachao at gmail.com Fri Dec 20 11:52:14 2024 From: jose.dachao at gmail.com (Jose Chao) Date: Fri, 20 Dec 2024 07:52:14 -0300 Subject: [Lazarus] Handling the Caps Lock key In-Reply-To: References: Message-ID: Por favor, remova a linha Sleep(50) do evento OnTimer. Sauda??o de Pinhalzinho/SP - Brasil Jos? Ch?o Em sex., 20 de dez. de 2024 ?s 07:44, Jose Chao escreveu: > Hello everyone. > How are you Ari? > After a few changes it worked for me. > Code attached to this message. > > Greetings from Pinhalzinho/SP - Brazil > > Jos? Ch?o > > > Em dom., 15 de dez. de 2024 ?s 14:18, Ar? Ricardo Ody via lazarus < > lazarus at lists.lazarus-ide.org> escreveu: > >> I posted a question earlier about how to handle and display the status of >> the CapsOn keys since my keyboard has no indicator. >> >> With the help of chatGPT I put together a small program that tries to do >> this by checking the status and trying to change the Text property of a >> TEdit object. It turns out that every time I run the program I get an >> "Access Violation". I'm attaching the project files and would like to see >> if anyone is willing to tell me what's wrong. I'm using Lazarus 3.6 on >> Windows 11. >> >> Greetings from S?o Paulo - Brazil >> >> Ar? Ricardo >> -- >> _______________________________________________ >> 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 marc at dommelstein.nl Mon Dec 23 09:54:56 2024 From: marc at dommelstein.nl (Marc Weustink) Date: Mon, 23 Dec 2024 09:54:56 +0100 Subject: [Lazarus] Lazarus server maintenance Message-ID: Hi, Starting 9.00 UTC I'll start a system upgrade. This means the Lazarus and Freepascal forum, the Lazarus mailinglist, packages and website will be down until further notice. Thanks for you understanding, Marc From marc at dommelstein.nl Mon Dec 23 09:55:24 2024 From: marc at dommelstein.nl (Marc Weustink) Date: Mon, 23 Dec 2024 09:55:24 +0100 Subject: [Lazarus] Lazarus server maintenance Message-ID: <92ec401f-8a90-463b-a5ab-5301c131d555@dommelstein.nl> Hi, Starting 9.00 UTC I'll start a system upgrade. This means the Lazarus and Freepascal forum, the Lazarus mailinglist, packages and website will be down until further notice. Thanks for you understanding, Marc From marc at dommelstein.nl Mon Dec 23 14:51:59 2024 From: marc at dommelstein.nl (Marc Weustink) Date: Mon, 23 Dec 2024 14:51:59 +0100 Subject: [Lazarus] Lazarus server maintenance In-Reply-To: <92ec401f-8a90-463b-a5ab-5301c131d555@dommelstein.nl> References: <92ec401f-8a90-463b-a5ab-5301c131d555@dommelstein.nl> Message-ID: <45e6ff15-cf93-4980-9880-ca1d86f7db22@dommelstein.nl> Hi, Everything should be back online. The forum software itself will be done in a later stage Marc On 23/12/2024 09:55, Marc Weustink via lazarus wrote: > Hi, > > Starting 9.00 UTC I'll start a system upgrade. This means the Lazarus > and Freepascal forum, the Lazarus mailinglist, packages and website will > be down until further notice. > > Thanks for you understanding, > > Marc >