Forum > General

If you want to learn how to use GUI libraries without the LCL where do you start

(1/4) > >>

vfclists:
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?

TRon:

--- Quote from: vfclists on October 14, 2024, 12:07:23 pm ---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?

--- End quote ---
At their respective SDK's ? That should provide examples on how to use their framework. If not then it is not a framework to be used for public consumption.

vfclists:
I'm talking about examples of such code, not reading about SDKs.

Sure I can start reading about the SDKs, but that assumes I am not doing other things as well, or that I am familiar with the process of linking Pascal code directly with C and C++ libraries.

Does anyone know any applications written in FreePascal that link with GUI libraries without going through the LCL or VCL?

Thaddy:
Still, what TRon suggested is the only way. For most widget sets there are examples, though.
Hey, the implementors of the widget sets are programmers too... 8-) Difference between you and them is that they are usually very, very good... ;D
For now the difference.... :D
There are also low-level units in Lazarus for all widget sets and tests. Start there. Grep's your uncle.

TRon:

--- Quote from: vfclists on October 14, 2024, 02:58:18 pm ---I'm talking about examples of such code, not reading about SDKs.

--- End quote ---
I was not referring to what you want or not want to read.


--- Quote ---Sure I can start reading about the SDKs, but that assumes I am not doing other things as well, or that I am familiar with the process of linking Pascal code directly with C and C++ libraries.

--- End quote ---
What has linking pascal code with C and C++ has to do anything with understanding how a framework actually works or is to be used ?


--- Quote ---Does anyone know any applications written in FreePascal that link with GUI libraries without going through the LCL or VCL?

--- End quote ---
Ah, you want the "normal rules do not apply to/for me instead I ask and want it now on a platter" answer.

The other day someone asked about quiche, a library that I am not familiar with. There are no examples written in Pascal. One starts by reading their SDK documentation and any hints provided in its headers.

Taking shortcuts as what you seem to wish for only provides examples written by someone else who made its own interpretation of that same SDK. Sometimes that is for the better but more often than not it is for the worse and you are copying the same bad habits. It's like using AI to develop software: in the end you have learned absolutely zilch.

Navigation

[0] Message Index

[#] Next page

Go to full version