Recent

Author Topic: If you want to learn how to use GUI libraries without the LCL where do you start  (Read 1421 times)

Fred vS

  • Hero Member
  • *****
  • Posts: 3413
    • StrumPract is the musicians best friend
Hello.
For Windows and his GDI you may take a look at source of fpGUI or MSEgui project.
But for unixes (Linux, BSD and Mac), they use the "root" X11 interface without any dependencies to any widgetset.

... but in this Wayland future, X might be an additional dependency in the near future.

Indeed.
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Fred vS

  • Hero Member
  • *****
  • Posts: 3413
    • StrumPract is the musicians best friend
Hello.
For Windows and his GDI you may take a look at source of fpGUI or MSEgui project.
But for unixes (Linux, BSD and Mac), they use the "root" X11 interface without any dependencies to any widgetset.

... but in this Wayland future, X might be an additional dependency in the near future.

Sincerely, I hope Wayland will not be the future.
Wayland is pushed by RedHat + IBM, is obsolete, brings little more than X11 but above all removes a lot of cool things.
Wayland destroys the soul of the "free-desktop".
https://gist.github.com/probonopd/9feb7c20257af5dd915e3a9f2d1f2277

At the limit I prefer the option of OpenBSD which decided to continue the development of X11 and libx11.so.7, with the pluses that XWayland offers without the minuses that Wayland imposes.
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

silvercoder70

  • Jr. Member
  • **
  • Posts: 96
    • Tim Coates
If you want to learn how to use GUI libraries without the VCL where do you start?

Using the LCL/VCL prevents the learning of how to link wo the widget sets directly.

Where do I start if I want to learn this and where can some example be found, starting with "Hello World" dialogs on Gtk3, Qt and Windows?

Honestly,  in my experience the first thing I do after installing is t look at what demos are installed and go from there.

After that it's how do I do this with lib Y? in google
Explore the beauty of modern Pascal programming with Delphi & Free Pascal - https://www.youtube.com/@silvercoder70

 

TinyPortal © 2005-2018