View Full Version : GtkWidget tutorial hunt.
August 17th, 2005, 02:37 AM
I'm trying to use ajunta and my very rusty C knowledge to throw something together.
I dont seem to be able to throw things together in C like in good old Delphi
I really never thought I would say this but I miss the whole Delphi thing. For simple RAD it was fun.
Now the widget I'm having fun ](*,) with is GtkTreeView. I want to use it as a list. very simple I'm sure..
Any Idea on where to find some more tutorials.. I have a collection of example code that just seems to make it worse for me!!
August 17th, 2005, 05:53 AM
what kind of list do you want excactly??
I programmed a bit here: http://www.ubuntuforums.org/showthread.php?t=56953
It´s c# but i think you can configure it to your needs.
And there is this google search thingy which gives me several tutorials ;-)
The second one is a very in depth view. Boh depend on C or C++ AFAIK (didn´t read through the first one right now).
Greetings and i hope it helps
August 17th, 2005, 05:59 AM
for programming with gtk in a more visual way you should take a look at the nice glade which you can find here: http://glade.gnome.org/
Hope it helps
August 17th, 2005, 12:15 PM
Thanks Andre, (sorry I cant find the accent for the "e" yet.)
That C# looks interesting. I will have to take a closer look sometime.
Other Links are the ones I have already looked at.. the first is in relation to Python and second is still too heavy for me. I cant see how to rewire the example code for my needs either.
To be clear of what I'm doing it is like this.
GtkWidget * entry = lookup_widget(GTK_WIDGET(button), "Data_entry");
GtkWidget * list = lookup_widget(GTK_WIDGET(button), "AppList_treeview");
I want to populate AppList_treeview with data from Data_entry.
Ultimatly I will find a way to parse data from a file and use that to populate AppList_treeview
The GUI tool I'm using is Glade with anjuta.
August 17th, 2005, 06:25 PM
i think what you need is a File I/O tutorial like this one: http://www.cpp-home.com/FileIO_tutorial.php
creating a treeView should work like the stuff in my code
and finally you should add rows to this list like here: http://scentric.net/tutorial/sec-treemodel-add-rows.html
Yes, it's the scentric again but it's the most informative source for this one i think...
BTW, i am just starting with gtk also and i really would like to see your program when you finished. Could you post a message here and i give you my email adress per PM or could you upload your code when you are done?? I would be really interested.
P.S.: If you still have questions and i am able to help with them i really like to. So please (!) ask ;-)
August 17th, 2005, 06:29 PM
Me again ;-)
If you ever want to try Mono or C# let me know.
I think they are really nice and i have some links for it.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.