The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 04-10-2007
Registered User
 

Join Date: Feb 2007
Posts: 67
GUI without GTK - Is it possible?

Is GUI programming without GTK possible? If so, how? Or what libraries should I #include? Google seems to tell me that GUI programming in C++ is much more popular then in C. I'm assuming because of the Object Orientedness (if that is even a word)?

Before you say things like "Search the forums", I know there have been threads on GUI programming before, but this focuses on without using GTK. Even if I lose features, I don't plan on using GUI programming that much.
Reply With Quote
Forum Sponsor
  #2  
Old 04-10-2007
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,469
Is this page useful?

http://www.geocities.com/SiliconVall...4/guitool.html

I had a taste of Qt some time ago. The main concern is whether you want cross-platform: Qt and GTK+ has pretty high platform independence. I have seen people using FLTK too.
Reply With Quote
  #3  
Old 04-11-2007
Hitori's Avatar
Registered User
 

Join Date: Jun 2006
Posts: 360
See http://www.yolinux.com/TUTORIALS/Lin...#GUIFRAMEWORKS
Reply With Quote
  #4  
Old 04-24-2007
Registered User
 

Join Date: Feb 2007
Location: Boston, MA
Posts: 64
Quote:
Originally Posted by Octal
Is GUI programming without GTK possible? If so, how? Or what libraries should I #include? Google seems to tell me that GUI programming in C++ is much more popular then in C. I'm assuming because of the Object Orientedness (if that is even a word)?

Before you say things like "Search the forums", I know there have been threads on GUI programming before, but this focuses on without using GTK. Even if I lose features, I don't plan on using GUI programming that much.
You can use "curses.h" to create some level of GUI. Not sure if thats what you meant.
Reply With Quote
  #5  
Old 04-24-2007
Registered User
 

Join Date: Feb 2007
Posts: 67
Quote:
Originally Posted by Deal_NoDeal
You can use "curses.h" to create some level of GUI. Not sure if thats what you meant.
curses.h is pretty cool; not exactly what I was looking for, but cool.
Reply With Quote
  #6  
Old 04-25-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
[quote=Octal]Is GUI programming without GTK possible? If so, how?[quote]

#include <X11/Intrinsics.h>

and use the Widgets.

GUI on Unix is normally done with X11, this is a layered architecture with Xlib at the bottem, which gives you a raw C api to the protocol, then Intrinisics which give you Widgets which are basically object orientated constructs supporting windowing on X11. Start with 'man XtCreateWidget'.

If you want a comparison using Xlib and Intrinsics is comparable to using the Win32 API without MFC.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:06 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0