[Lazarus] Completely solve the GTK trouble

jiaxing ruan ruanjiaxing1234 at outlook.com
Tue Apr 14 15:03:48 CEST 2020


We have no control over GTK, too. IUP is better in this regard as it doesn't change as much as GTK. IUP is much smaller than GTK, too. Creating binding for IUP I only have to use h2pas. I don't think h2pas is able to create binding for the whole GTK stuffs, which also include GDK, ATK, GObject, GLib... I know about gir2pascal, but if it good enough why our GTK binding is too bad?

@Sven Barth<mailto:pascaldragon at googlemail.com> I tried with Lazarus trunk + FPC trunk from Fpcupdeluxe, built using Win64 interface but after that I configured to rebuild it with GTK3 inferface and it failed immediately. So I don't know how could I help testing Lazarus GTK3 as even build it is impossible. I installed GTK3 runtime and MinGW 8.1, both properly added to PATH. Does a Linux machine absolutely needed? I only do Windows stuffs so I afraid I can't help with that.

________________________________
From: lazarus <lazarus-bounces at lists.lazarus-ide.org> on behalf of Michael Van Canneyt via lazarus <lazarus at lists.lazarus-ide.org>
Sent: Tuesday, April 14, 2020 6:57 PM
To: jiaxing ruan via lazarus <lazarus at lists.lazarus-ide.org>
Cc: Michael Van Canneyt <michael at freepascal.org>
Subject: Re: [Lazarus] Completely solve the GTK trouble



On Tue, 14 Apr 2020, jiaxing ruan via lazarus wrote:

> I skipped the Lua part in my binding because I think it will not needed for Free Pascal. Don't know if we would have any use for it.

I only mentioned it because it contains ideas for properties.
I don't propose to create/use lua bindings.

>
> About 1: Could we do canvas drawing with IUPCD? It use CD (Canvas Draw) graphic library, also developed by the same developer. Note that IUPCD is shipped with IUP itself, we don't need to install a separate library CD.

I don't know, the info I can find is not conclusive.

>
> About 2: I don't know about that. But I think there should be way to do absolute layout with IUP. Could you check it again? I have never use absolute position with IUP, though.

iupCBox seems to be intended for absolute positioning.

> I don't want it to replace GTK2 interface.  But the GTK3 interface is
> definitely bad.  I want to use IUP as an abstract layer on top of GTK.
> IUP, something not changed much, ontop of GTK, something changes rapidly.
> It will save us a lot of maintenance job in the future.  It's my
> reasoning.

Yes, I understood that.
At the same time it is an extra layer on top of gtk over which you have no
control...

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: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20200414/ff032714/attachment-0001.html>


More information about the lazarus mailing list