Gtk Dev C++

Gtk Dev C++ 3,2/5 3348 votes

Most common quiestion is:

Is there any C++ GUI API?

My answer is MANY.

Not new to Ubuntu or programming but I am new to programming in C and gtk. Have been using Quickly for the odd program. I want to play around with C and gtk. What gtk packages do I need to install to have a working development environment with C? May 24, 2017 A quick video where we'll learn about GTK and analyze a basic GTK application that I wrote to add two numbers together. Hope you enjoyed the video! Check out this code here: https://github.com. Apr 16, 2020  Dev-C This IDE, written in Delphi is the right place for beginners. It isn't perfect and it allows you 'holes' and 'bugs' in your program.Thats why its good for beginners. Write a simple message dialog app. You can write your own GTK 3 message dialog easily in many programming languages through GObject-Introspection or bindings, or you can simply use bash.

There are many API's for making GUI applications.
Here are some.

C++

In this easy tutorial for beginners, a simple “Hello World” program is created using GTK+ 3 and programmed in the C programming language. Glade 3 is used to create the GUI window, button and text label in this GTK 3 C code hello world tutorial. Look at my edit. GTK is a dependency, but for apps to work, only the binary part is needed. What you need to compile is the headers, which come in a separate package - usually the library name with -dev at the end.

1. WinAPI: (C based)(MFC is C++ based)
Its a great API and the best solution if you are windows programmer. First code will look a bit difficult, but later (after making few apps.) you will see its not so rusty. I like it, because you can do almost everything with it (in windows). The only bad thing is, that you cannot make applications for Linux with it.
Tutorial:
'>http://www.winprog.org/tutorial/index.html
2. Qt4 / Qt3 (C++ based)
This is a nice API, for making GUI applications. It works under Linux, Windows and Mac OS X. Its really easy to learn and use. But, until you dont buy licenced version, you will need to add tons of -dll s, to run your application. Qt compiler doesnt work in Vista. And, Qt4 API has a bit complicated way, to get buttons to work, if button holds some more complicated operations(actually you have to make your own SLOT's).
Tutorial:
http://sector.ynet.sk/qt4-tutorial/
http://doc.trolltech.com/4.2/examples.html
3.GTK+ (C based)
Sorry, but I never tryed it, so Google might help you.
Tutorial:
http://www.gtk.org/tutorial/


Some examples:

WinAPI
Simple message box:

Simple window:


QT4
Simple Message Box:

Note: Use MsgBox for making message boxes


Simple Window:


GTK+

Simple window:

I hope this post will help anyone!


  • 3 Contributors
  • forum 3 Replies
  • 85,454 Views
  • 9 Years Discussion Span
  • commentLatest Postby sreenivasulaLatest Post

jan10241887

I also think newbies dont know for C++ IDE's. (Developing Enviroviment).

I will make a short description of some

1. Visual Studio 2005 (Visual C++)
This is a beautiful IDE for making console and win32 GUI applications. You can also compile DirectX10 or 9 projects as well. I didn't test it for compiling Qt or GTK+ applications yet.
Affcourse as a Microsoft product isn't free, but it seems to be really safe and stable IDE for Windows Applications.
I really like it, and I recommend it to everyone.

More info '>HERE

2. Code::Blocks
Great for compiling WinAPI, Qt, GTK+, WXWidgets, Ogre, D, C++ console, C console and other projects. I found some bugs, and sometimes there are problems to compile.
It's one of the best FREE IDE's.

Information and download '>HERE

3. Dev-C++
This IDE, written in Delphi is the right place for beginners. It isn't perfect and it allows you 'holes' and 'bugs' in your program.Thats why its good for beginners. VS2005 wouldnt compile most of the code, which Dev-C++ does.

Information and Download '>HERE

SOME LINUX IDE's:
-Code::Blocks
-Anjuta IDE
-QDevelop

Ah, and dont take care about all off my opinions. I prefer VS2005, but If you dont have a money, than choose Code::Blocks or Dev-C++.


I hope moderators will make this topic sticky (read me)

I hope this helps

BTW: Sorry for my grammatic mistakes.

About GTK+

GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off projects to complete application suites.

GTK+ is Free Software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties.

GTK+ is based on three libraries developed by the GTK+ team:

  • GLib is the low-level core library that forms the basis of GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system.
  • Pango is a library for layout and rendering of text, with an emphasis on internationalization. It forms the core of text and font handling for GTK+-2.0.
  • The ATK library provides a set of interfaces for accessibility. By supporting the ATK interfaces, an application or toolkit can be used with such tools as screen readers, magnifiers, and alternative input devices.

GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder provides an effective method of rapid application development.

Please note that GTK+ for Win32 is currently still in beta state. A release-quality version will be available when the next version is out.

Documentation

The API reference, tuturial etc. can be found at the GTK+ website:
http://www.gtk.org/

The original GTK+ for Win32 site is located at: http://www.gimp.org/win32/

Dependencies

This package depends on imagelib! Be sure to install it first. If you have installed any previous versions of this GTK+ package, remove it first before you install imagelib!

Download

Gtk Development Ide

Pioneer ddj sx traktor pro 2 mapping. Last updated: 1 October 2002
GTK+ 2.0.0 runtime libraries (3.1 MB)
GTK+ 2.0.0 development package (476 KB)