Re: [Lazarus] Using packages for often used units across projects?

2023-02-12 Thread Bo Berglund via lazarus
On Sun, 12 Feb 2023 15:35:27 +0100, Luca Olivetti via lazarus wrote: >El 12/2/23 a les 14:44, Bo Berglund via lazarus ha escrit: > >> I found the wiki page: >> https://wiki.lazarus.freepascal.org/Lazarus_Packages >> >> it seems not to describe my use case, I believe. > >Actually it does, if you

Re: [Lazarus] Using packages for often used units across projects?

2023-02-12 Thread Luca Olivetti via lazarus
El 12/2/23 a les 14:44, Bo Berglund via lazarus ha escrit: I found the wiki page: https://wiki.lazarus.freepascal.org/Lazarus_Packages it seems not to describe my use case, I believe. Actually it does, if you follow the heading "5.4 Creating a package for your common units" right at the

Re: [Lazarus] Using packages for often used units across projects?

2023-02-12 Thread Kostas Michalopoulos via lazarus
On 2/12/23 15:44, Bo Berglund via lazarus wrote: It seems not so good to copy the files into each project. In Delphi they were accessed from one location by several projects by using search path settings (not available in Lazarus). You can set per-project unit search paths. This is available

[Lazarus] Using packages for often used units across projects?

2023-02-12 Thread Bo Berglund via lazarus
I am working on porting a set of applications (company internal tools and utilities mostly) from Delphi to FPC/Lazarus and now I have encountered use of a number of same units in several different applications. It seems not so good to copy the files into each project. In Delphi they were accessed

Re: [Lazarus] How to make TBitButton set the ModalResult properly and close the form?

2023-02-12 Thread Bo Berglund via lazarus
On Sat, 11 Feb 2023 21:15:25 +0100, Bo Berglund via lazarus wrote: >So in order to fix this on the first form I have had to implement the OnClick >event and code the following into them: > >ModalResult := mrOk >(or mrCancel) as needed. > >This causes the wanted behaviour. > >But this was not how

Re: [Lazarus] How to make TBitButton set the ModalResult properly and close the form?

2023-02-12 Thread Salvatore Coppola via lazarus
Did you call the form with Form2.ShowModal? Ottieni BlueMail per Android Il giorno 11 Feb 2023, 23:26, alle ore 23:26, Bart via lazarus ha scritto: >On Sat, Feb 11, 2023 at 9:26 PM gabor via lazarus > wrote: > >> Have you set the TBitButton.ModalResult property or TBitButton.Kind >>