Forum > GTK

Setting Up And Getting Started GTK-2

(1/1)

James_Parsons:
How do I set up Lazarus to use the GTK2 on Windows? Do I need any external libraries besides the GTK runtime? After I am set up, where can I find a tutorial on using the GTK2 with pascal?

taazz:

--- Quote from: James_Parsons on February 04, 2014, 04:18:01 pm ---How do I set up Lazarus to use the GTK2 on Windows?

--- End quote ---
Install the GTK2 runtime on your computer and that should be enough to let you write GTK2 base applications.

--- Quote from: James_Parsons on February 04, 2014, 04:18:01 pm ---Do I need any external libraries besides the GTK runtime?

--- End quote ---
No.


--- Quote from: James_Parsons on February 04, 2014, 04:18:01 pm ---After I am set up, where can I find a tutorial on using the GTK2 with pascal?

--- End quote ---
There isn't one you see lcl is based on a concept that you can use what ever you want as the underline widgetset from the ones supported. So you simple use the lcl controls forms etc and just tell lazarus to build a GTK2 application instead of windows, change the lclwidgetType in the project options see attachment.

Leledumbo:

--- Quote from: taazz on February 04, 2014, 04:28:23 pm ---
--- Quote from: James_Parsons on February 04, 2014, 04:18:01 pm ---After I am set up, where can I find a tutorial on using the GTK2 with pascal?

--- End quote ---
There isn't one you see lcl is based on a concept that you can use what ever you want as the underline widgetset from the ones supported. So you simple use the lcl controls forms etc and just tell lazarus to build a GTK2 application instead of windows, change the lclwidgetType in the project options see attachment.

--- End quote ---
There are some actually (though might need adjustments here and there):

* http://www.freepascal.org/packages/gtk.html
* http://www.linuxjournal.com/article/5975

Navigation

[0] Message Index

Go to full version