PDA

View Full Version : programming x



cocteau
November 4th, 2006, 04:37 AM
Hi

Does anyone know of a good online resource for learning how to do program X?

I've been making terminal programs for a while now and want to know how to create windows and use mouse events.

nereid
November 4th, 2006, 08:16 AM
Do you really want to use the xlibs or just one of the toolkits (GTK, Qt, wxWidgets,...)? The xlibs are a pain in the behind.

cocteau
November 4th, 2006, 02:13 PM
I'm not really shure to be honest. I would like to use something that is platform independent. And since GTK is for Gnome and Qt is for KDE (as far as I understand it anyway), I was looking for something else. Don't know about wxWidgets though.

Besides. I'm really looking for basic functionality. Shadow effects and 3D stuff is way beyong what I'm looking for. Just something that can draw me a window with a few buttons on it.

tseliot
November 4th, 2006, 02:18 PM
QT work in Linux, Mac and Windows.

I suggest you to use QT if you're planning to release your programs under the GPL licence.

nereid
November 4th, 2006, 03:49 PM
I would recommend, that you choose the toolkit that you like best. Qt is a little bit more crossplatform than the others but there is also a Windows version of GTK and wxWidgets, as far as I know, also work on different OS.

Lord Illidan
November 4th, 2006, 03:53 PM
wxWidgets and QT are the most cross platform, I think.

And they work on GNOME and KDE..

moma
November 4th, 2006, 06:26 PM
My recommendation is XCB.
XCB is a replacement for the old, ancient, awkward Xlib.
http://xcb.freedesktop.org/wiki/

Turn to wxWidgets if you want to do cross platform applications in C++.

wxWidgets & Code::Blocks IDE.
http://wxwidgets.org
+
http://codeblocks.org

+ My Code::Blocks story: "Compiling Code::Blocks IDE from the latest source.....". Just type the commands and you have C::B up & running in 15 minutes.
http://linux1.no/node/1938

almahtar
November 5th, 2006, 12:07 AM
QT work in Linux, Mac and Windows.

I suggest you to use QT if you're planning to release your programs under the GPL licence.

I second that. Programming with Qt has been a real pleasure, for me. The documentation is amazing, and it has tons of examples that it ships with (TONS).

cocteau
November 5th, 2006, 12:52 AM
Thanks for the answers. I've been looking around and I seem to be stuck between wxwidgets and qt. I guess the best thing to do from here would be to do a few tutorials and see what I like best.

Eric_T
November 5th, 2006, 02:08 PM
Don't forget to check out Tk as well. It's truly cross-platform, and
really easy to learn for simple stuff like you mention.

cocteau
November 5th, 2006, 09:18 PM
Yup. Added tcl/tk to my todo list :)

Xealot
November 6th, 2006, 07:28 AM
If you are going to use QT, I suggest reading their license first to make sure their ideas fit yours. For example, your program can not be closed source

other than that, good luck. :cool:


I personally prefer GTK2, allthough some of the widgets are less documentet which i dont like very much :sad: