Recent

Author Topic: Setting Up And Getting Started GTK-2  (Read 3377 times)

James_Parsons

  • New Member
  • *
  • Posts: 14
Setting Up And Getting Started GTK-2
« on: February 04, 2014, 04:18:01 pm »
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?
For Each each in eaches()
   each()
Next each

taazz

  • Hero Member
  • *****
  • Posts: 5363
Re: Setting Up And Getting Started GTK-2
« Reply #1 on: February 04, 2014, 04:28:23 pm »
How do I set up Lazarus to use the GTK2 on Windows?
Install the GTK2 runtime on your computer and that should be enough to let you write GTK2 base applications.
Do I need any external libraries besides the GTK runtime?
No.

After I am set up, where can I find a tutorial on using the GTK2 with pascal?
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.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Leledumbo

  • Hero Member
  • *****
  • Posts: 8114
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Setting Up And Getting Started GTK-2
« Reply #2 on: February 04, 2014, 04:45:15 pm »
After I am set up, where can I find a tutorial on using the GTK2 with pascal?
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.
There are some actually (though might need adjustments here and there):