Re: [Lazarus] Completely solve the GTK trouble

2020-04-13 Thread Sven Barth via lazarus
jiaxing ruan via lazarus  schrieb am Di.,
14. Apr. 2020, 05:59:

> GTK changes too fast and our GTK3 binding is not updated. We don't have to
> resource to catch up GTK. I suggest we abandon the GTK3 and any later GTK
> version interface and instead create an IUP interface. IUP uses GTK
> underlying, so we don't miss anything. Our apps will look just like when
> they use the GTK widgetset. IUP focuses more on compatibility than GTK.
> Even software written for IUP 3.15 could easily compiled and run with IUP
> 3.27. IUP also has a permissive license. As far as I know IUP is as
> portable as Lazarus is, so we don't have to care about portability, too.
>
> Let me see what's your thoughts.
>
> With my ability I can only leave suggestion. I don't have the skill to do
> it myself nor the finance to hire someone else to do. But I think this is
> the most reasonable move for us.
>

We don't need to run after the latest GTK version. Even other applications
like GIMP or desktop environments like XFCE switch to GTK3 only now,
because it has become stable. So in fact this is the right point to get
GTK3 fully running and there has already been work put into the last
months. What's missing is people testing it, reporting bugs and maybe also
people who are willing to dig into it to fix those bugs.

Regards,
Sven

>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Online Package Manager question

2020-04-13 Thread Balázs Székely via lazarus
@Michael
I have not used the OPM extensively, but I think that once a package has
been registered/accepted, I think the original author must be able to
upload his
own changes.

@silvioprog
Me too. Many other PMs allows the component/library authors to upgrade
their packages. I personally would like to use any procedure instead of
sending e-mail.

Creating such an infrastructure would require a lot of work and time. First
you need a registration/login system for the package developers, a database
to store information about the packages, a mechanism to find
dependencies(currently is done by parsing a json), quotas for users, etc.
More over OPM shouldn't connect directly to the database, you need a third
application running on server side via cgi, also you need some kind of
traffic encryption. Definitely not a one man job.
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Completely solve the GTK trouble

2020-04-13 Thread jiaxing ruan via lazarus
GTK changes too fast and our GTK3 binding is not updated. We don't have to 
resource to catch up GTK. I suggest we abandon the GTK3 and any later GTK 
version interface and instead create an IUP interface. IUP uses GTK underlying, 
so we don't miss anything. Our apps will look just like when they use the GTK 
widgetset. IUP focuses more on compatibility than GTK. Even software written 
for IUP 3.15 could easily compiled and run with IUP 3.27. IUP also has a 
permissive license. As far as I know IUP is as portable as Lazarus is, so we 
don't have to care about portability, too.

Let me see what's your thoughts.

With my ability I can only leave suggestion. I don't have the skill to do it 
myself nor the finance to hire someone else to do. But I think this is the most 
reasonable move for us.

p/s: We already has an IUP binding, also permissive licensed that we could fork 
and merge into Lazarus: https://github.com/ruanjiaxing/iup_pascal
[https://avatars0.githubusercontent.com/u/62635950?s=400=4]
ruanjiaxing/iup_pascal
Pascal binding for Iup. Contribute to ruanjiaxing/iup_pascal development by 
creating an account on GitHub.
github.com

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Online Package Manager errors ?

2020-04-13 Thread Michael Van Canneyt via lazarus



On Tue, 14 Apr 2020, Sven Barth via lazarus wrote:


Balázs Székely via lazarus  schrieb am Mo.,
13. Apr. 2020, 20:08:



I have a naive suggestion for OPM. Some components depends on external

libraries/binaries (libffi, openssl, libsagui etc.), so it would be nice
any field like "Libraries", or "Dependencies", or even "External files"
inside the "Package info", providing previous information that the package
needs external libraries/files to work properly. (sorry if it is already
implemented, I'm using Lazarus 2.0.6)


Thanks for the suggestion. In my opinion the external libraries should be
shipped with the package(if possible). Adding a new entry in the package
tree it's not a problem, it can be done in 15-20 minutes, however the list
already has a "Christmas tree" feeling to it. Any extra info should be
added to the "package description"  or "community description" entries,
which can be opened in a separate form.



I don't agree. Especially on Linux (and the BSDs probably as well) that is
part of the OS' package manager, even for macOS there is an open source one
that one can install to handle such things. So a list of required
dependencies would be enough.

This list would also be useful for deployment of the final application
however so that one can either set up an installer / package correctly or
report to the user in a Readme or so what libraries are required.


+1.

Don't distribute binaries, only sources. The binary may not work on all
distributions, you'd need to provide one for all platforms (which you may
not have yourself). It may be outdated, no security fixed applied etc..

Michael.-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Online Package Manager question

2020-04-13 Thread silvioprog via lazarus
On Mon, Apr 13, 2020 at 8:05 PM silvioprog  wrote:

> Me too. Many other PMs allows the component/library authors to upgrade
> their packages. I personally would like to use any procedure instead of
> sending e-mail.
>

I meant "... to upgrade their packages by themselves."

-- 
Silvio Clécio
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Online Package Manager question

2020-04-13 Thread silvioprog via lazarus
On Mon, Apr 13, 2020 at 6:11 PM Michael Van Canneyt via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

> On Mon, 13 Apr 2020, Juha Manninen via lazarus wrote:
>
> > On Mon, Apr 13, 2020 at 8:47 PM silvioprog via lazarus <
> > lazarus@lists.lazarus-ide.org> wrote:
> >
> >> What do you think about to create a new project "OPM"
> >> at bugs.freepascal? ☺ This way, the package's author just opens an new
> >> issue categorized with "OPM" providing steps/requirements he wants to
> >> upgrade his package, making it public and available for
> >> future consultation/reference.
> >>
> >
> > That sounds dangerous. We would get bug reports of components delivered
> by
> > OPM although they are maintained elsewhere. Actually it has happened
> > already.
>
> I am also not in favour of such an approach.
> It's a bugtracker, not an upgrade manager.
>
> I have not used the OPM extensively, but I think that once a package has
> been registered/accepted, I think the original author must be able to
> upload his
> own changes.
>

Me too. Many other PMs allows the component/library authors to upgrade
their packages. I personally would like to use any procedure instead of
sending e-mail.

Part of the registration procedure could be uploading a public key for
> packages, which could be used to verify an upload. The OPM can generate
> this
> key (together with a private key, obviously) and sign the zips.
>
> I have seen that you can also have a JSON file with update instructions,
> but
> this seems a little abnormal to me, forcing the package creator to have
> some
> infrastructure in place for downloads.
>
> Michael.


Signed packages (tar.gz or zips) really would be very useful.

-- 
Silvio Clécio
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Online Package Manager question

2020-04-13 Thread silvioprog via lazarus
On Mon, Apr 13, 2020 at 4:22 PM Juha Manninen via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

> On Mon, Apr 13, 2020 at 8:47 PM silvioprog via lazarus <
> lazarus@lists.lazarus-ide.org> wrote:
>
>> What do you think about to create a new project "OPM"
>> at bugs.freepascal? ☺ This way, the package's author just opens an new
>> issue categorized with "OPM" providing steps/requirements he wants to
>> upgrade his package, making it public and available for
>> future consultation/reference.
>>
>
> That sounds dangerous. We would get bug reports of components delivered by
> OPM although they are maintained elsewhere. Actually it has happened
> already.
>

Indeed, it would be a big problem.


> (MinGW follows something like this, allowing merging from Github's PRs to
>> their upstream)
>>
>
> Then they both must be in the same source tree somehow. I don't know about
> their process.
>
Note, the sources of packages delivered by OPM are not merged to Lazarus
> source tree. They are just copied.
>
> Juha
>

--
Silvio Clécio
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Online Package Manager errors ?

2020-04-13 Thread silvioprog via lazarus
On Mon, Apr 13, 2020 at 3:08 PM Balázs Székely via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

> @silvioprog
> I updated Brook framework, by default win32/win64 and gtk2 are the
> supported widget sets. If your package works on other platform too, like:
> qt5, gtk3, cocoa, please let me know so I can update in OPM.
>

Thanks for updating! However, I would like to do some changes in "Package
info / Community description" info soon. Where can I change this?

Regarding qt/gtk/cocoa, the component doesn't depend on any widget.

I have a naive suggestion for OPM. Some components depends on external
>> libraries/binaries (libffi, openssl, libsagui etc.), so it would be nice
>> any field like "Libraries", or "Dependencies", or even "External files"
>> inside the "Package info", providing previous information that the package
>> needs external libraries/files to work properly. (sorry if it is already
>> implemented, I'm using Lazarus 2.0.6)
>>
> Thanks for the suggestion. In my opinion the external libraries should be
> shipped with the package(if possible). Adding a new entry in the package
> tree it's not a problem, it can be done in 15-20 minutes, however the list
> already has a "Christmas tree" feeling to it. Any extra info should be
> added to the "package description"  or "community description" entries,
> which can be opened in a separate form.
>

It is not often possible to distribute libraries due to license issues, so
something clear alerting about required libraries would be great.

--
Silvio Clécio
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Online Package Manager errors ?

2020-04-13 Thread Sven Barth via lazarus
Balázs Székely via lazarus  schrieb am Mo.,
13. Apr. 2020, 20:08:

>
> I have a naive suggestion for OPM. Some components depends on external
>> libraries/binaries (libffi, openssl, libsagui etc.), so it would be nice
>> any field like "Libraries", or "Dependencies", or even "External files"
>> inside the "Package info", providing previous information that the package
>> needs external libraries/files to work properly. (sorry if it is already
>> implemented, I'm using Lazarus 2.0.6)
>>
> Thanks for the suggestion. In my opinion the external libraries should be
> shipped with the package(if possible). Adding a new entry in the package
> tree it's not a problem, it can be done in 15-20 minutes, however the list
> already has a "Christmas tree" feeling to it. Any extra info should be
> added to the "package description"  or "community description" entries,
> which can be opened in a separate form.
>

I don't agree. Especially on Linux (and the BSDs probably as well) that is
part of the OS' package manager, even for macOS there is an open source one
that one can install to handle such things. So a list of required
dependencies would be enough.

This list would also be useful for deployment of the final application
however so that one can either set up an installer / package correctly or
report to the user in a Readme or so what libraries are required.

Regards,
Sven

>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

2020-04-13 Thread Luca Olivetti via lazarus

El 13/4/20 a les 23:42, Luca Olivetti via lazarus ha escrit:

El 13/4/20 a les 23:31, Erwin van den Bosch via lazarus ha escrit:

Op 13-4-2020 om 21:36 schreef Juha Manninen via lazarus:
I have the same problem with Manjaro + KDE Plasma. I had it for a 
long time already but didn't study further.
Manjaro has a recent version of everything. Maybe the pre-compiled 
libQt5Pas works only with older versions of QT5 libraries.

I didn't even try to build libQt5Pas myself yet.


I installed Manjaro+KDE Plasma 19.0.2 and got the same AccessViolation 
on the exit of a qt5 lazarus program. Manjaro qt5 version 5.14.1 is 
very recent. Kubuntu 19.10 qt version is 5.12.4. Kubuntu 18.04 LTS 
(that is working fine) is qt version 5.9.5.


The question is, why I don't see the segfault with kubuntu 19.10?
I just tested a simple program with a memo and a button, but lazarus 
itself doesn't segfaults.


Maybe it depends on the fpc version.
I did my tests with fpc 3.2.0RC1, but now I started my old lazarus 1.8 
compiled with 3.0.4 and it segfaults on exit, as it does an empty 
application compiled with it.


Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

2020-04-13 Thread Luca Olivetti via lazarus

El 13/4/20 a les 23:31, Erwin van den Bosch via lazarus ha escrit:

Op 13-4-2020 om 21:36 schreef Juha Manninen via lazarus:
I have the same problem with Manjaro + KDE Plasma. I had it for a long 
time already but didn't study further.
Manjaro has a recent version of everything. Maybe the pre-compiled 
libQt5Pas works only with older versions of QT5 libraries.

I didn't even try to build libQt5Pas myself yet.


I installed Manjaro+KDE Plasma 19.0.2 and got the same AccessViolation 
on the exit of a qt5 lazarus program. Manjaro qt5 version 5.14.1 is very 
recent. Kubuntu 19.10 qt version is 5.12.4. Kubuntu 18.04 LTS (that is 
working fine) is qt version 5.9.5.


The question is, why I don't see the segfault with kubuntu 19.10?
I just tested a simple program with a memo and a button, but lazarus 
itself doesn't segfaults.


Bye

--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

2020-04-13 Thread Erwin van den Bosch via lazarus

Op 13-4-2020 om 21:36 schreef Juha Manninen via lazarus:
I have the same problem with Manjaro + KDE Plasma. I had it for a long 
time already but didn't study further.
Manjaro has a recent version of everything. Maybe the pre-compiled 
libQt5Pas works only with older versions of QT5 libraries.

I didn't even try to build libQt5Pas myself yet.


I installed Manjaro+KDE Plasma 19.0.2 and got the same AccessViolation 
on the exit of a qt5 lazarus program. Manjaro qt5 version 5.14.1 is very 
recent. Kubuntu 19.10 qt version is 5.12.4. Kubuntu 18.04 LTS (that is 
working fine) is qt version 5.9.5.


As it happens after closing the application it could be some clean up / 
freeing objects that does not exists any more. Just a guess.


--
Erwin van den Bosch

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Online Package Manager question

2020-04-13 Thread Michael Van Canneyt via lazarus



On Mon, 13 Apr 2020, Juha Manninen via lazarus wrote:


On Mon, Apr 13, 2020 at 8:47 PM silvioprog via lazarus <
lazarus@lists.lazarus-ide.org> wrote:


What do you think about to create a new project "OPM"
at bugs.freepascal? ☺ This way, the package's author just opens an new
issue categorized with "OPM" providing steps/requirements he wants to
upgrade his package, making it public and available for
future consultation/reference.



That sounds dangerous. We would get bug reports of components delivered by
OPM although they are maintained elsewhere. Actually it has happened
already.


I am also not in favour of such an approach. 
It's a bugtracker, not an upgrade manager.


I have not used the OPM extensively, but I think that once a package has
been registered/accepted, I think the original author must be able to upload his
own changes.

Part of the registration procedure could be uploading a public key for
packages, which could be used to verify an upload. The OPM can generate this
key (together with a private key, obviously) and sign the zips.

I have seen that you can also have a JSON file with update instructions, but
this seems a little abnormal to me, forcing the package creator to have some
infrastructure in place for downloads.

Michael.-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

2020-04-13 Thread Juha Manninen via lazarus
On Mon, Apr 13, 2020 at 10:01 PM Erwin van den Bosch via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

> Just did a fresh install of kubuntu 18.04 LTS and all my Lazarus QT5
> projects works fine. No access violation error on application close. So
> there must be something wrong/incompatible with kubuntu 19.10.
>
> I did two installs of kubuntu 19.10. One on a real machine and one in
> VirtualBox. Same problem on both.
>
> Someone experience the same problem?
>

I have the same problem with Manjaro + KDE Plasma. I had it for a long time
already but didn't study further.
Manjaro has a recent version of everything. Maybe the pre-compiled libQt5Pas
works only with older versions of QT5 libraries.
I didn't even try to build libQt5Pas myself yet.

Juha
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

2020-04-13 Thread Luca Olivetti via lazarus

El 13/4/20 a les 20:26, Erwin van den Bosch via lazarus ha escrit:


Thanks for your answer. Is your system running on kubuntu 19.10?


Yes, that's why I replied. However, as I said, it's not a clean install, 
it has been dist-upgraded various times. I don't remember the version I 
started from, but now it's 19.10


luca@seis:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:Ubuntu 19.10
Release:19.10
Codename:   eoan




I have tried to compile the cbindings but without success on 19.10 
(something is missing)


Well, it compiles fine here, though now that I know that the distro 
provided library works I'll have no need for that.


Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Online Package Manager question

2020-04-13 Thread Juha Manninen via lazarus
On Mon, Apr 13, 2020 at 8:47 PM silvioprog via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

> What do you think about to create a new project "OPM"
> at bugs.freepascal? ☺ This way, the package's author just opens an new
> issue categorized with "OPM" providing steps/requirements he wants to
> upgrade his package, making it public and available for
> future consultation/reference.
>

That sounds dangerous. We would get bug reports of components delivered by
OPM although they are maintained elsewhere. Actually it has happened
already.

(MinGW follows something like this, allowing merging from Github's PRs to
> their upstream)
>

Then they both must be in the same source tree somehow. I don't know about
their process.
Note, the sources of packages delivered by OPM are not merged to Lazarus
source tree. They are just copied.

Juha
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

2020-04-13 Thread Erwin van den Bosch via lazarus

Op 13-4-2020 om 20:26 schreef Erwin van den Bosch via lazarus:


Will test it now on kubuntu 18.04 LTS in a virtual machine. Results 
later...


Just did a fresh install of kubuntu 18.04 LTS and all my Lazarus QT5 
projects works fine. No access violation error on application close. So 
there must be something wrong/incompatible with kubuntu 19.10.


I did two installs of kubuntu 19.10. One on a real machine and one in 
VirtualBox. Same problem on both.


Someone experience the same problem?

--
Erwin van den Bosch

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

2020-04-13 Thread Erwin van den Bosch via lazarus

Op 13-4-2020 om 19:43 schreef Luca Olivetti via lazarus:
No such problem here, but I compiled libQt5Pas myself, though I don't 
remember if I compiled it clean or reused from a previous kubuntu 
release.

IIRC I followed the instructions here

https://wiki.lazarus.freepascal.org/Qt5_Interface#Qt5_on_Ubuntu_18.4

specifically the part where it says "If you wish to build your own 
library, what you need is in your Lazarus tree, bindings sources are 
located in lcl/interfaces/qt5/cbindings , to build it just follow 
README.txt."



Now I tried installing the packaged libqt5pas and still see no segfault.
Note that this isn't a fresh install, I dist-upgraded it (or better 
do-release-upgraded it) many times, but I don't think that should matter.


Thanks for your answer. Is your system running on kubuntu 19.10?

I have tried to compile the cbindings but without success on 19.10 
(something is missing)


Will test it now on kubuntu 18.04 LTS in a virtual machine. Results later...

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Online Package Manager errors ?

2020-04-13 Thread Balázs Székely via lazarus
@Michael

> Or is there a reason for having the 2 lists separate ?
>
Other then visually separate files from folders there is no reason.

One list of names/masks should suffice, don't you think ?
>
Yes I agree, it can be done with a single list. I add it to my "to do list"
:)


@silvioprog
I updated Brook framework, by default win32/win64 and gtk2 are the
supported widget sets. If your package works on other platform too, like:
qt5, gtk3, cocoa, please let me know so I can update in OPM.

I have a naive suggestion for OPM. Some components depends on external
> libraries/binaries (libffi, openssl, libsagui etc.), so it would be nice
> any field like "Libraries", or "Dependencies", or even "External files"
> inside the "Package info", providing previous information that the package
> needs external libraries/files to work properly. (sorry if it is already
> implemented, I'm using Lazarus 2.0.6)
>
Thanks for the suggestion. In my opinion the external libraries should be
shipped with the package(if possible). Adding a new entry in the package
tree it's not a problem, it can be done in 15-20 minutes, however the list
already has a "Christmas tree" feeling to it. Any extra info should be
added to the "package description"  or "community description" entries,
which can be opened in a separate form.
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Online Package Manager question

2020-04-13 Thread silvioprog via lazarus
On Mon, Apr 13, 2020 at 2:12 PM Michael Van Canneyt via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

> I think that would be an excellent idea.
> Not sure if lazarus-ide.org has a mailer.
> I hope so, but if not, I can always create a lazarus-...@freepascal.org
> or somesuch.
>
> Please let me know, so I can correct the text if need be :-)
>
> Michael.


What do you think about to create a new project "OPM"
at bugs.freepascal? ☺ This way, the package's author just opens an new
issue categorized with "OPM" providing steps/requirements he wants to
upgrade his package, making it public and available for
future consultation/reference.

(MinGW follows something like this, allowing merging from Github's PRs to
their upstream)

--
Silvio Clécio
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

2020-04-13 Thread Luca Olivetti via lazarus

El 13/4/20 a les 19:31, Luca Olivetti via lazarus ha escrit:

El 13/4/20 a les 18:37, Erwin van den Bosch via lazarus ha escrit:
Just installed a fresh Kubuntu 19.10 with libQt5Pas (via: sudo apt 
install libqt5pas-dev)


But running a compiled qt5 program on this machine always exits with 
an unhandled exception: EAccessViolation.


This also happens with a simple project. (no code, just new project 
and hit compile)


A simple project compiled on a linux Mint 18.3 with Qt 5.6.1 also 
exits with EAccessViolation on Kubuntu 19.10.


Any ideas how to solve this?


No such problem here, but I compiled libQt5Pas myself, though I don't 
remember if I compiled it clean or reused from a previous kubuntu release.

IIRC I followed the instructions here

https://wiki.lazarus.freepascal.org/Qt5_Interface#Qt5_on_Ubuntu_18.4

specifically the part where it says "If you wish to build your own 
library, what you need is in your Lazarus tree, bindings sources are 
located in lcl/interfaces/qt5/cbindings , to build it just follow 
README.txt."



Now I tried installing the packaged libqt5pas and still see no segfault.
Note that this isn't a fresh install, I dist-upgraded it (or better 
do-release-upgraded it) many times, but I don't think that should matter.


Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

2020-04-13 Thread Luca Olivetti via lazarus

El 13/4/20 a les 18:37, Erwin van den Bosch via lazarus ha escrit:
Just installed a fresh Kubuntu 19.10 with libQt5Pas (via: sudo apt 
install libqt5pas-dev)


But running a compiled qt5 program on this machine always exits with an 
unhandled exception: EAccessViolation.


This also happens with a simple project. (no code, just new project and 
hit compile)


A simple project compiled on a linux Mint 18.3 with Qt 5.6.1 also exits 
with EAccessViolation on Kubuntu 19.10.


Any ideas how to solve this?


No such problem here, but I compiled libQt5Pas myself, though I don't 
remember if I compiled it clean or reused from a previous kubuntu release.

IIRC I followed the instructions here

https://wiki.lazarus.freepascal.org/Qt5_Interface#Qt5_on_Ubuntu_18.4

specifically the part where it says "If you wish to build your own 
library, what you need is in your Lazarus tree, bindings sources are 
located in lcl/interfaces/qt5/cbindings , to build it just follow 
README.txt."


Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Online Package Manager errors ?

2020-04-13 Thread silvioprog via lazarus
On Mon, Apr 13, 2020 at 1:58 PM Balázs Székely via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

> @silvioprog
> I will update Brook framework soon.
>

Thank you very much for maintaining OPM! And feel absolutely free to ask
any question about the package if you need. 

I have a naive suggestion for OPM. Some components depends on external
libraries/binaries (libffi, openssl, libsagui etc.), so it would be nice
any field like "Libraries", or "Dependencies", or even "External files"
inside the "Package info", providing previous information that the package
needs external libraries/files to work properly. (sorry if it is already
implemented, I'm using Lazarus 2.0.6)

--
Silvio Clécio
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Online Package Manager errors ?

2020-04-13 Thread silvioprog via lazarus
On Mon, Apr 13, 2020 at 11:56 AM Michael Van Canneyt via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

> As you are the author, I think it is your responsability to update the
> package entry, no ?


hm... I never published a package at OPM repository before, so I don't know
how to do that (yet). 

In next message Balázs wrote he will update it soon, so I would appreciate
to help him on that.

I have a naive suggestion for OPM. I'm going to talk about that a little in
next message ...

--
Silvio Clécio
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Online Package Manager question

2020-04-13 Thread Michael Van Canneyt via lazarus



On Mon, 13 Apr 2020, Balázs Székely via lazarus wrote:



It's for the lazarus book


Cool. Thank you.

I wanted to be sure the instructions are correct.



The instructions are correct, however that getm...@gmail.com it's kinda
silly looking email. Perhaps we should switch to something more official
like: o...@lazarus-ide.org or something similar. I must talk to @Marc, maybe
he can create an email account.


I think that would be an excellent idea. 
Not sure if lazarus-ide.org has a mailer.

I hope so, but if not, I can always create a lazarus-...@freepascal.org or 
somesuch.

Please let me know, so I can correct the text if need be :-)

Michael.
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Online Package Manager errors ?

2020-04-13 Thread Michael Van Canneyt via lazarus



On Mon, 13 Apr 2020, Balázs Székely via lazarus wrote:


@Michael

I implemented the 'open package entry' feature in  r.62959. If a package is
available locally, you can open it by clicking the Open button or double
click the selected package(screenshot1). More over if a package
compile/install fails, OPM will offer you to open the package(screenshot2).


Nice :-) Great job !

While we're at it: meanwhile I enabled the 'Package maintainer' profile.
I get then the option to specify files/directories that should be excluded
from zip files.

I see no need to make this 2 lists ? 
.gitignore and friends also don't need 2 separate lists.


One list of names/masks should suffice, don't you think ? 
Or is there a reason for having the 2 lists separate ?

(maybe I fail to see something)

Michael.-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Online Package Manager question

2020-04-13 Thread Balázs Székely via lazarus
>
> It's for the lazarus book
>
Cool. Thank you.

I wanted to be sure the instructions are correct.
>
The instructions are correct, however that getm...@gmail.com it's kinda
silly looking email. Perhaps we should switch to something more official
like: o...@lazarus-ide.org or something similar. I must talk to @Marc, maybe
he can create an email account.
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Online Package Manager errors ?

2020-04-13 Thread Balázs Székely via lazarus
@Michael

I implemented the 'open package entry' feature in  r.62959. If a package is
available locally, you can open it by clicking the Open button or double
click the selected package(screenshot1). More over if a package
compile/install fails, OPM will offer you to open the package(screenshot2).

@silvioprog
I will update Brook framework soon.
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] EAccessViolation exception on exit qt5 project in Kubuntu 19.10

2020-04-13 Thread Erwin van den Bosch via lazarus
Just installed a fresh Kubuntu 19.10 with libQt5Pas (via: sudo apt 
install libqt5pas-dev)


But running a compiled qt5 program on this machine always exits with an 
unhandled exception: EAccessViolation.


This also happens with a simple project. (no code, just new project and 
hit compile)


A simple project compiled on a linux Mint 18.3 with Qt 5.6.1 also exits 
with EAccessViolation on Kubuntu 19.10.


Any ideas how to solve this?

Regards,
Erwin

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Feeback wanted: Tutoring kids with Pascal project idea

2020-04-13 Thread jaminson via lazarus
Thank you so much for the post! Such interesting info for me, because I was
searching for something like that, I am also a tutor) So, thank you for the
idea one more time! 



--
Sent from: http://free-pascal-lazarus.989080.n3.nabble.com/
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Checkbox behaviour on Mac ?

2020-04-13 Thread Michael Van Canneyt via lazarus



On Mon, 13 Apr 2020, Michael Van Canneyt wrote:




On Mon, 13 Apr 2020, Dmitry Boyarintsev via lazarus wrote:


On Mon, Apr 13, 2020 at 6:55 AM Michael Van Canneyt via lazarus <
lazarus@lists.lazarus-ide.org> wrote:


As I said, a stock Lazarus 2.0.6 install. From the about dialog, it seems
to
be using carbon.



It does worth bug reporting.
With macOS 10.16, the installer (2.0.8) might need to include both 32-bit
carbon and 64-bit cocoa builds or have two separate installers.


Thanks, I will post a report !


Done:
https://bugs.freepascal.org/view.php?id=36911

Michael.
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Online Package Manager errors ?

2020-04-13 Thread Michael Van Canneyt via lazarus



On Mon, 13 Apr 2020, silvioprog via lazarus wrote:


Hi all.

On Mon, Apr 13, 2020 at 7:50 AM Michael Van Canneyt via lazarus <
lazarus@lists.lazarus-ide.org> wrote:


Hi,

I tried to install a package using the package manager (Brook framework).
The package manager tells me the compile failed.



I took a look at the version available in OPM and noticed it provides the
outdated version, available only for historical purposes.


As you are the author, I think it is your responsability to update the
package entry, no ?

Michael.
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Online Package Manager errors ?

2020-04-13 Thread silvioprog via lazarus
Hi all.

On Mon, Apr 13, 2020 at 7:50 AM Michael Van Canneyt via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

> Hi,
>
> I tried to install a package using the package manager (Brook framework).
> The package manager tells me the compile failed.
>

I took a look at the version available in OPM and noticed it provides the
outdated version, available only for historical purposes.

New applications have to use Brook Tardigrade, available at
risoflora/brookframework  (with
a branch for minor changes: risoflora/brookframework/tree/v5.1
). The OPM is
supposed to provide it, named as "Brook Framework".

The old version is available at risoflora/brookfreepascal
, however, it is not
maintained so often.

cheers

--
Silvio Clécio
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Checkbox behaviour on Mac ?

2020-04-13 Thread Michael Van Canneyt via lazarus



On Mon, 13 Apr 2020, Dmitry Boyarintsev via lazarus wrote:


On Mon, Apr 13, 2020 at 6:55 AM Michael Van Canneyt via lazarus <
lazarus@lists.lazarus-ide.org> wrote:


As I said, a stock Lazarus 2.0.6 install. From the about dialog, it seems
to
be using carbon.



It does worth bug reporting.
With macOS 10.16, the installer (2.0.8) might need to include both 32-bit
carbon and 64-bit cocoa builds or have two separate installers.


Thanks, I will post a report !

Michael.
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Online Package Manager question

2020-04-13 Thread Michael Van Canneyt via lazarus



On Mon, 13 Apr 2020, Balázs Székely via lazarus wrote:


Hi Michael,

'Upload somewhere the files and send the link to getm...@gmail.com or

press the submit button, the files are directly uploaded to a remote
server.'
Is this still the official procedure ?


Yes, pretty much. The most popular way is a dedicated thread in the forum(
https://forum.lazarus.freepascal.org/index.php/topic,34297.0.html ).
All I need is a link to the package, I will try to add it to OPM in less
then 24 hours. getm...@gmail.com is also a valid alternative.


Sure, thank you. It's for the lazarus book, I wanted to be sure the
instructions are correct.

Michael.-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Online Package Manager list behaviour

2020-04-13 Thread Michael Van Canneyt via lazarus



On Mon, 13 Apr 2020, Balázs Székely via lazarus wrote:


Hi Michael,

When I scroll the Online Package manager list of packages with the trackpad

of the mac, then the list scrolls a couple of items and then jumps back to
the item that was displayed initially.
So it is impossible to scroll. e..g. to the end of the list.

If I use the scrollbar at the right, then it works as expected and I can
scroll to the end of the list.

Anyone else having this behaviour ?


Unfortunately I'm not a mac user, I have no idea why the trackpad is
misbehaving. If you know the package name, there is a filter window in the
top of the form.
Alternatively you can also use incremental search in the package tree.


I don't know the package name. I wanted to browse to see what is available.

What control is the list using ? Virtual treeview ?


Michael.-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Online Package Manager errors ?

2020-04-13 Thread Michael Van Canneyt via lazarus



On Mon, 13 Apr 2020, Balázs Székely via lazarus wrote:


Hi Michael,

I tried to install a package using the package manager (Brook framework).

The package manager tells me the compile failed.
How can I see what the actual error is ?


The Message Window is not obscured by OPM, usually I check the error
messages there.


Duh !  I should have checked that... 
The message window was obscured in my case. 
Damn this docked IDE, I can't get used to it ;-)




Ideally you shouldn't see any error messages :), however there are too many
Lazarus/FPC version/widgetsets. I cannot check each package on every single
platform. This should be the package maintainers job.
In Lazarus trunk there is a small improvement though, if a package is not
tested against a specific widgetset/Laz/FPC version, OPM will warn you,
that the package compile might fail.


OK, seems like a good idea.

BTW, the message was not meant to point out that there is a broken package.
I understand perfectly you cannot check every possible package out there.
I simply didn't see the messages window.

for completeness sake, here is the actual error:

brookfclfcgibroker.pas(23,12) Fatal: Cannot find CustFCGI used by 
BrookFCLFCGIBroker of package BrookRT.




Or must I open the package manually, compile manually to see the error ?

If so, why isn't there a 'open this package' entry in the list of packages
?


This is a good idea, I can add an "open this package" entry.


Yes, please. That would be really handy ! See below.



have no easy way of locating the package.

In the options, I found where the OLPM downloads the packages,
but to get there on a mac involves an insane amount of clicking,
provided I managed to remember the location where the package is supposed
to
be...


Please click the "Local Repo" button(see attachment) , it will open a file
manager window with the folder where the packages are installed.


Yes, I did that before mailing.

But when I open a package in this dialog, it shows me an empty file list :(

So, in order to open the package, I must then
* remember the location
* close this dialog and go to the 'open package file' dialog in the package 
menu.
* Browse to home directory.
* Enable showing hidden files with Cmd-Shift-Period to be able to select the 
.lazarus
directory (this is Mac!)
* Continue to correct directory
* Open package file.
And then I see the correct file list in the package...

Now you will understand why I think the 'open this package' entry is a good 
idea ;-)

Thanks for looking at this :-)

Michael.-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Online Package Manager list behaviour

2020-04-13 Thread Balázs Székely via lazarus
Hi Michael,

When I scroll the Online Package manager list of packages with the trackpad
> of the mac, then the list scrolls a couple of items and then jumps back to
> the item that was displayed initially.
> So it is impossible to scroll. e..g. to the end of the list.
>
> If I use the scrollbar at the right, then it works as expected and I can
> scroll to the end of the list.
>
> Anyone else having this behaviour ?
>
Unfortunately I'm not a mac user, I have no idea why the trackpad is
misbehaving. If you know the package name, there is a filter window in the
top of the form.
Alternatively you can also use incremental search in the package tree.

regards,
Balázs

On Mon, Apr 13, 2020 at 1:53 PM Michael Van Canneyt via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

>
> Hi,
>
> On a mac, lazarus 2.0.6:
> When I scroll the Online Package manager list of packages with the trackpad
> of the mac, then the list scrolls a couple of items and then jumps back to
> the item that was displayed initially.
> So it is impossible to scroll. e..g. to the end of the list.
>
> If I use the scrollbar at the right, then it works as expected and I can
> scroll to the end of the list.
>
> Anyone else having this behaviour ?
>
> Michael.
> --
> ___
> lazarus mailing list
> lazarus@lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Online Package Manager question

2020-04-13 Thread Balázs Székely via lazarus
Hi Michael,

'Upload somewhere the files and send the link to getm...@gmail.com or
> press the submit button, the files are directly uploaded to a remote
> server.'
> Is this still the official procedure ?
>
Yes, pretty much. The most popular way is a dedicated thread in the forum(
https://forum.lazarus.freepascal.org/index.php/topic,34297.0.html ).
All I need is a link to the package, I will try to add it to OPM in less
then 24 hours. getm...@gmail.com is also a valid alternative.

regards,
Balázs

On Mon, Apr 13, 2020 at 11:55 AM Michael Van Canneyt via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

>
> Hi,
>
> How can one include a new package in the Online Package Manager repository
> ?
>
> on
>
> https://wiki.freepascal.org/Online_Package_Manager
>
> There is somewhere
>
> 'Upload somewhere the files and send the link to getm...@gmail.com or
> press the submit button, the files are directly uploaded to a remote
> server.'
>
> Is this still the official procedure ?
>
> Michael.
> --
> ___
> lazarus mailing list
> lazarus@lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Online Package Manager errors ?

2020-04-13 Thread Balázs Székely via lazarus
Hi Michael,

I tried to install a package using the package manager (Brook framework).
> The package manager tells me the compile failed.
> How can I see what the actual error is ?
>
The Message Window is not obscured by OPM, usually I check the error
messages there.
Ideally you shouldn't see any error messages :), however there are too many
Lazarus/FPC version/widgetsets. I cannot check each package on every single
platform. This should be the package maintainers job.
In Lazarus trunk there is a small improvement though, if a package is not
tested against a specific widgetset/Laz/FPC version, OPM will warn you,
that the package compile might fail.


Or must I open the package manually, compile manually to see the error ?
> If so, why isn't there a 'open this package' entry in the list of packages
> ?
>
 This is a good idea, I can add an "open this package" entry.

have no easy way of locating the package.
> In the options, I found where the OLPM downloads the packages,
> but to get there on a mac involves an insane amount of clicking,
> provided I managed to remember the location where the package is supposed
> to
> be...
>
Please click the "Local Repo" button(see attachment) , it will open a file
manager window with the folder where the packages are installed.

regards,
Balázs.



On Mon, Apr 13, 2020 at 1:50 PM Michael Van Canneyt via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

>
> Hi,
>
> I tried to install a package using the package manager (Brook framework).
> The package manager tells me the compile failed.
>
> How can I see what the actual error is ?
>
> Or must I open the package manually, compile manually to see the error ?
>
> If so, why isn't there a 'open this package' entry in the list of packages
> ?
>
> I have no easy way of locating the package.
> In the options, I found where the OLPM downloads the packages,
> but to get there on a mac involves an insane amount of clicking,
> provided I managed to remember the location where the package is supposed
> to
> be...
>
> A browser's 'downloads' window allows you to open the file or open the file
> location. I think this could be a good addition to the OLPM.
>
>
> Michael.
>
>
> --
> ___
> lazarus mailing list
> lazarus@lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Sorting BufferDataset

2020-04-13 Thread Santiago A. via lazarus

El 13/4/20 a las 13:24, Michael Van Canneyt via lazarus escribió:

The other one is for when you set the indexfields property directly, I
think. 


That solves the my sorting problem!!

No need to create indexes or dropping indexes or changing fields of an 
index. Just leave IndexName blank and play with IndexFieldNames (that in 
fact changes the fields of index ''). and if you set  IndexFieldNames to 
blank it restores the original table order.


That make of TbufDataset a useful component, not a nightmare. It needs 
desperately documentation.


How can I help with doc?


--

Saludos
Santiago A.

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Checkbox behaviour on Mac ?

2020-04-13 Thread Dmitry Boyarintsev via lazarus
On Mon, Apr 13, 2020 at 6:55 AM Michael Van Canneyt via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

> As I said, a stock Lazarus 2.0.6 install. From the about dialog, it seems
> to
> be using carbon.
>

It does worth bug reporting.
With macOS 10.16, the installer (2.0.8) might need to include both 32-bit
carbon and 64-bit cocoa builds or have two separate installers.

thanks,
Dmitry
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Sorting BufferDataset

2020-04-13 Thread Michael Van Canneyt via lazarus



On Mon, 13 Apr 2020, Santiago A. via lazarus wrote:


El 13/4/20 a las 12:43, Michael Van Canneyt via lazarus escribió:
So, if I want to process the dataset in different orders with 
TbufferDataset, before opening the dataset I must set MaxIndexesCount to 
all the orders I'm going to use.


Yes.



Am I right? Or I have missed something?


You are right.

Probably we should at least now offer the possibility to delete indexes, 
and
I am not sure the MaxIndexesCount is still needed. 


At least it is used.

If you create the indexes before opening the dataset, MaxIndexesCount is 
automatically updated to hold your indexes plus the two default indexes.


But in an active dataset, you can't call addindex more than MaxIndexesCount, 
and being aware that two slots are used by two default indexes. You may get 
"The maximum amount of indexes is reached."


By the way. I got "The maximum amount of indexes is reached." and I went mad 
trying to find where I was creating two indexes. Was I calling addindex 
twices before and I wasn't aware?. Finally I looked at the code and when you 
call addindex, it creates two indexes: 'DEFAULT_ORDER' and ''. What are those 
two phantom indexes for? I couldn't find any documentation about


Default order is the index used for the records as they are read from the
file or from the query.

The other one is for when you set the indexfields property directly, I
think.

Michael.
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Sorting BufferDataset

2020-04-13 Thread Santiago A. via lazarus

El 13/4/20 a las 12:43, Michael Van Canneyt via lazarus escribió:
So, if I want to process the dataset in different orders with 
TbufferDataset, before opening the dataset I must set MaxIndexesCount 
to all the orders I'm going to use.


Yes.



Am I right? Or I have missed something?


You are right.

Probably we should at least now offer the possibility to delete 
indexes, and
I am not sure the MaxIndexesCount is still needed. 


At least it is used.

If you create the indexes before opening the dataset, MaxIndexesCount is 
automatically updated to hold your indexes plus the two default indexes.


But in an active dataset, you can't call addindex more than 
MaxIndexesCount, and being aware that two slots are used by two default 
indexes. You may get "The maximum amount of indexes is reached."


By the way. I got "The maximum amount of indexes is reached." and I went 
mad trying to find where I was creating two indexes. Was I calling 
addindex twices before and I wasn't aware?. Finally I looked at the code 
and when you call addindex, it creates two indexes: 'DEFAULT_ORDER' and 
''. What are those two phantom indexes for? I couldn't find any 
documentation about





--

Saludos
Santiago A.

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Checkbox behaviour on Mac ?

2020-04-13 Thread Michael Van Canneyt via lazarus


As I said, a stock Lazarus 2.0.6 install. From the about dialog, it seems to
be using carbon.

Michael.

On Mon, 13 Apr 2020, Dmitry Boyarintsev wrote:


it looks like Carbon build. is it?

On Monday, April 13, 2020, Michael Van Canneyt via lazarus <
lazarus@lists.lazarus-ide.org> wrote:



Hi,

The checkbox in Lazarus 2.0.6 is almost unusable in at least 2 cases:
- Object inspector.
  On average, I must click 3 to 5 times to get the result I need.
- in the online package manager

See attached screenshots.

In both cases the checkbox disappears in the row where the mouse cursor is
located. Kind of difficult to check something then. Clicking is also a
haphazard
experience.

This is a stock Lazarus 2.0.6. Am I the only one experiencing this ? has
this been reported yet ?
if not: should I report it so it can please be included in 2.0.8 (if it is
not too late yet)
?

Michael.




--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Online Package Manager list behaviour

2020-04-13 Thread Michael Van Canneyt via lazarus


Hi,

On a mac, lazarus 2.0.6:
When I scroll the Online Package manager list of packages with the trackpad
of the mac, then the list scrolls a couple of items and then jumps back to
the item that was displayed initially. 
So it is impossible to scroll. e..g. to the end of the list.


If I use the scrollbar at the right, then it works as expected and I can
scroll to the end of the list.

Anyone else having this behaviour ?

Michael.
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Checkbox behaviour on Mac ?

2020-04-13 Thread Dmitry Boyarintsev via lazarus
it looks like Carbon build. is it?

On Monday, April 13, 2020, Michael Van Canneyt via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

>
> Hi,
>
> The checkbox in Lazarus 2.0.6 is almost unusable in at least 2 cases:
> - Object inspector.
>   On average, I must click 3 to 5 times to get the result I need.
> - in the online package manager
>
> See attached screenshots.
>
> In both cases the checkbox disappears in the row where the mouse cursor is
> located. Kind of difficult to check something then. Clicking is also a
> haphazard
> experience.
>
> This is a stock Lazarus 2.0.6. Am I the only one experiencing this ? has
> this been reported yet ?
> if not: should I report it so it can please be included in 2.0.8 (if it is
> not too late yet)
> ?
>
> Michael.
>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Online Package Manager errors ?

2020-04-13 Thread Michael Van Canneyt via lazarus


Hi,

I tried to install a package using the package manager (Brook framework).
The package manager tells me the compile failed.

How can I see what the actual error is ?

Or must I open the package manually, compile manually to see the error ?

If so, why isn't there a 'open this package' entry in the list of packages ?

I have no easy way of locating the package. 
In the options, I found where the OLPM downloads the packages, 
but to get there on a mac involves an insane amount of clicking, 
provided I managed to remember the location where the package is supposed to

be...

A browser's 'downloads' window allows you to open the file or open the file
location. I think this could be a good addition to the OLPM.


Michael.


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Sorting BufferDataset

2020-04-13 Thread Michael Van Canneyt via lazarus



On Mon, 13 Apr 2020, Santiago A. via lazarus wrote:


Hello:

I'm trying to sort a TBufferDataset by several criteria, and I'm a 
little confused.


There is no sort method, so I decided to use indexes, but I have a lot 
of doubts.


When you close the TBufferDataset, all the data is cleaned.


Correct.



TbufferDataset has a MaxIndexesCount that limits the number of indexes. 
By default this property is intialized to 2, and two indexes are created 
and used by default as soon as you call addIndex. So you must call 
addIndex before opening the table, or set MaxIndexesCount to at least 3 
in order to be able to add an index with the table active. (you can't 
close the table to add new index or you'll lost data).


Correct.



There is no way to drop a single index, and there is no way to change 
the index fields on the fly, you must call clearIndexes. And to call 
clearIndexes, before you must close the dataset, and so loose data. Am I 
right?


Yes.

So, if I want to process the dataset in different orders with 
TbufferDataset, before opening the dataset I must set MaxIndexesCount to 
all the orders I'm going to use.


Yes.



Am I right? Or I have missed something?


You are right.

Probably we should at least now offer the possibility to delete indexes, and
I am not sure the MaxIndexesCount is still needed.


By the way, What does the index option "ixNonMaintained" mean?


I don't think it is used in FPC, I think it's a Delphi compatibility option.

Michael.
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Sorting BufferDataset

2020-04-13 Thread Santiago A. via lazarus

Hello:

I'm trying to sort a TBufferDataset by several criteria, and I'm a 
little confused.


There is no sort method, so I decided to use indexes, but I have a lot 
of doubts.


When you close the TBufferDataset, all the data is cleaned.

TbufferDataset has a MaxIndexesCount that limits the number of indexes. 
By default this property is intialized to 2, and two indexes are created 
and used by default as soon as you call addIndex. So you must call 
addIndex before opening the table, or set MaxIndexesCount to at least 3 
in order to be able to add an index with the table active. (you can't 
close the table to add new index or you'll lost data).


There is no way to drop a single index, and there is no way to change 
the index fields on the fly, you must call clearIndexes. And to call 
clearIndexes, before you must close the dataset, and so loose data. Am I 
right?


So, if I want to process the dataset in different orders with 
TbufferDataset, before opening the dataset I must set MaxIndexesCount to 
all the orders I'm going to use.


Am I right? Or I have missed something?

By the way, What does the index option "ixNonMaintained" mean?

--
Saludos
Santiago A.

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Checkbox behaviour on Mac ?

2020-04-13 Thread Michael Van Canneyt via lazarus


Hi,

The checkbox in Lazarus 2.0.6 is almost unusable in at least 2 cases:
- Object inspector.
  On average, I must click 3 to 5 times to get the result I need.
- in the online package manager

See attached screenshots.

In both cases the checkbox disappears in the row where the mouse cursor is located. 
Kind of difficult to check something then. Clicking is also a haphazard

experience.

This is a stock Lazarus 2.0.6. 
Am I the only one experiencing this ? 
has this been reported yet ?
if not: 
should I report it so it can please be included in 2.0.8 (if it is not too late yet)

?

Michael.
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus on Ubuntu 18 does not restore all minimized windows with the main window

2020-04-13 Thread Bo Berglund via lazarus
On Sun, 12 Apr 2020 23:22:48 +0200, Luca Olivetti via lazarus
 wrote:

>El 12/4/20 a les 22:24, Bo Berglund via lazarus ha escrit:
>> On Sun, 12 Apr 2020 22:16:06 +0200, Bo Berglund via lazarus
>>  wrote:
>> 
>>> I don't know if this is a problem with Ubuntu or with Lazarus on
>>> Ubuntu but it is rather annoying in any case.
>> 
...
>
>As I said I use kubuntu (ubuntu with kde desktop) where this problem 
>doesn't arise (but only if I restore the main window, any other window 
>only restores itself), so I suppose it's a similar feature of the kde 
>taskbar, its purpose it to show only one instance of various similar 
>windows on the taskbar to save space.
>

Hi Luca!
I have now solved this problem by installing the MATE desktop handler
in my Ubuntu 18.04 laptop!
https://itsfoss.com/install-mate-desktop-ubuntu/

After it was done I now have a much more useful environment (in my
view as a programmer in any case) and there is no more
minimize/restore problem. It works exactly as in Windows and Raspbian
Buster concerning the window handling.

So I did not have to start over altogether but can still keep what I
have done so far.


-- 
Bo Berglund
Developer in Sweden

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Online Package Manager question

2020-04-13 Thread Michael Van Canneyt via lazarus


Hi,

How can one include a new package in the Online Package Manager repository ?

on

https://wiki.freepascal.org/Online_Package_Manager

There is somewhere

'Upload somewhere the files and send the link to getm...@gmail.com or
press the submit button, the files are directly uploaded to a remote
server.'

Is this still the official procedure ?

Michael.
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Is there a demo for SHDocVw_1_1_TLBP.lpk

2020-04-13 Thread frans via lazarus

Hi,

I'm using Lazarus 2.04 on Windows10.
I've used the shdocvw_1_1_tlb.pas unit (imported on 2-1-2016 from 
C:\Windows\SysWOW64\shdocvw.dll) to show helptext in a browser. Now 
there is a new package ActiveXInternetExplorer and the contents of 
shdocvw_1_1_tlb.pas (imported on 23-7-2017 from 
C:\Windows\System32\ieframe.dll) is very much different from the older one.
I've tried to figure out how to use this new pakage, but I don't 
understand it and I can't find any documentation. Is there someone who 
can explain this to me? Or show it to me in a little demo?


Thx very much.

--
mvg
Frans van Leeuwen
M 06-51695390


--
Deze e-mail is gecontroleerd op virussen door AVG.
http://www.avg.com

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus