Hi, Alan. I'm a little embarrassed at the code I'm showing you. I'm still stuck, but I'm sure I have the gist. I can figure it out from here. It's just a matter of time in looking at all the examples from the gtkmm documentation and filling in the glitches I have here. I'm very self-taught in programming. I started out with “C” like most people of my era, before C++ came along. I migrated to C++, kicking and screaming, resisting change. I'm still getting the grip on classes and class structure. The current code doesn't compile. It doesn't do anything much yet (except out put to the console as you suggested as a start in your previous message). I used “label” instead of “frame”, because I'm currently more familiar with the label data structure (string). The “*1” and the “*2” comments in the code is where I get error. I understand this is because I haven't fully implemented the mylabel class yet. I'll give updates as I come along... and yes, progress is a good thing. I'm glad for the development of C++ over C. I appreciate the value, and have been using it for a while, but still learning and getting out of where I was stuck for a long time, using almost C exclusive in a C++ environment. // Code (work in progress): #include <gtkmm.h> #include <iostream> using namespace std; class myLabel: public Gtk::Window { // blah blah blah public: myLabel(); }; myLabel::myLabel() { // myLabel.set_text("hello"); // This line gives errors (*1) cout << "Hello..." << endl; } int main(int argc, char* argv[]) { Gtk::Main kit(argc, argv); Gtk::Window window; Gtk::TextView textview; Gtk::Label label; myLabel mylabel; string mylabeltext = "This is the first line of text in my gui window.\n"; window.set_default_size(600, 360); window.set_title("Gtkmm Programming - C++"); window.set_position(Gtk::WIN_POS_CENTER); label.show(); window.add(mylabel); // mylabel.set_text(mylabeltext); // This line gives errors (*2) mylabeltext += "About to run some routines...\n"; cout << "An initial line has been set to the gui window." << endl; Gtk::Main::run(mylabel); return 0; } // code end I tried to cleanup my code before posting it. Of course it's still sloppy. The Window comes up, but so far, no text in it. -- L. James -- L. D. James ljames apollo3 com www.apollo3.com/~ljames On Wed, 2013-07-31 at 08:13 -0700, Alan Mazer wrote: As I understand it, you just want a window that display the progress of a computation in ASCII readable text. |