Re: [glade--]Simple tutorial



John Motsweng wrote:
Please don't shoot me, because I am just the messenger. It is just hard to break into glademm and the recurring question about accessing widgets is not a bug or a nuisance, but an expression of genuine interest.

I bet it is easy to move on to gtkmm if you come from gtk, but I can't take that route. I can't turn away, because I never learned C and my C++ is just taking shape. All I want to achieve for now is a simple program with a button, an entry and a label. On the button click the contents should be send to standard out and to the label. A second part could maybe do a little string manipulation, concatenation type of thing.

Attached. Simply do "cd tutorial; glade-- tutorial.glade ; ./autogen.sh ; make ; src/tutorial". It should be really obvious what was needed to create the glade file with glade-2 - isn't it?


Here's the deal. If anybody on this list could mail me some commented code with these three little widgets I will study it and write a good tutorial adding the other little parts I already understand. I can then send it to one of the more knowledgeable members for review and comment and develop a tutorial as I learn, for the benefit of all us newbies.

I really think that two liners do not need comments (with approx. 40 chars a line).

Gtkmm.org has a really good documentation about the widget and their methods.

Maybe I should go as far as promise that I am willing to write a few more tutorials as I progress as long as somebody who knows can guide me a little.

No problem for me ;-)

   Christof

Attachment: tutorial.tgz
Description: GNU Unix tar archive



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]