Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-20 Thread L. D. James
On 08/20/2013 08:51 PM, Gavin Lambert wrote: Quoth L. D. James: And, No. There aren't any significantly open issues. The code presented by Alan works perfectly. It has already been in production with my clients for over a week without a glitch. Several people (including myself) have

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-20 Thread L. D. James
searching (https://wiki.gnome.org/DocumentationProject/Contributing). From my reading and the standards described I see it takes a lot of dedication. I appreciate the patience the community is showing with me. I hope to give back to the community with my dedication by following all the pro

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-20 Thread L. D. James
tances. Both Alan's and Andrews compiles quickly and easily and can be easily tested. If I develop a glitch, I'll study it and try to figure out how to fix it. But at present, I'm just stuck with using what actually works at thi

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-20 Thread L. D. James
xample5 locks up when clicking the close button I'd be glad to test it and tell you if it's works. Thanks! -- L. James -- L. D. James lja...@apollo3.com www.apollo3.com/~ljames ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-20 Thread L. D. James
lest would be come the easiest to get an immediate grip for starting. If they are able to look at the simplest, understand it, and possibly be able to recreate it from memory they may have a better grip. That's the way it works in my case. Thanks again for all the suggestions! -- L. J

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-20 Thread L. D. James
can't make changes at this time. It's working perfectly and making changes would brake it. Again, I'd gladly test any lines that you post and tell you if the code still works. -- L. James -- L. D. James lja...@apollo3.com www.apollo3.com/~ljames __

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-19 Thread L. D. James
;m working with it to make it append the text rather than replace the text displayed. I really appreciate your taking the time to understand the question. -- L. James -- L. D. James lja...@apollo3.com www.apollo3.com/~ljames ___ gtkmm-list mailing list

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-19 Thread L. D. James
widget of the original code from Alan to the textview widget is because in my research it appeared that font and text output manipulation was easier with the textview widget. Thanks! -- L. James -- L. D. James lja...@apollo3.com www.apollo3.com/~ljames ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-19 Thread L. D. James
to me what they see, when they see a black screen, they say they don't see anything. It takes a while for them to realize the black screen has usable information. I'm starting to send the same text to a graphical window. My clients has no problems reading that screen and relating to

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-19 Thread L. D. James
e key (studying Alan's and Kjell's examples). I'm studying in detail the links that you're providing, but I can't see from those links what specific I should change and still have the code function as desired. -- L. James -- L. D. James lja...@apollo3.

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-19 Thread L. D. James
scribing with my current code, that would be great! I'd be glad to work with it and see the functionality. But so far all the technical suggestions that I'm getting appears to actually already be implemented in the 47 lines of code that I published. -- L. James -- L. D. James l

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-18 Thread L. D. James
); And have the text updated that way. Thanks again for your input and your attempts to understand my question. Again, I believe the current question is answered with the last code I posted, unless you see a problem with it. After I have a good clean example of my attempt to create the "gpr

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-17 Thread L. D. James
fPtr app = Gtk::Application::create(argc, argv, "org.gtkmm.example"); HelloWorld helloworld; //Shows the window and returns when it is closed. return app->run(helloworld); } // // Code End -- L. James -- L. D. James lja...@apollo3.com www.apollo3.com/~ljames ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-12 Thread L. D. James
On 08/12/2013 12:55 AM, Gavin Lambert wrote: Quoth L. D. James: Thanks Gavin I'm glad that your message suggests that I may have done something right. I have tried. I appreciate your pointing out about bugs in gtkmm. I'm sure with my investigation I'll eventually learn abo

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-11 Thread L. D. James
advise and start studying gtk, but I'll be very leery to start creating my own interface when you describe it so complicated that it's broken in gtkmm which has been in the development for a number of years. I hope that I presented my efforts to comply with everything that I

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-11 Thread L. D. James
L) { lret += buff; } pclose(in); return lret; } // // void HelloWorld::on_button_clicked() // // { // // std::cout << "Hello World" << std::endl; // // } // -- // code end -- L. James -- L. D. James lja...@apollo3.com www.apollo3.com/~ljames ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-11 Thread L. D. James
On 08/11/2013 09:54 AM, Chris Vine wrote: On Sun, 11 Aug 2013 08:33:18 -0400 "L. D. James" wrote: [snip] I appreciate all the tips from all the experts here. However, I can tell from many of the comments that a lot of you are thinking I'm trying to do something different that

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-11 Thread L. D. James
he examplewindow.cc and the exampleworker.cc parts. But I believe I'm getting there! Of course your reference to where to put my code "ExampleWorker::do_worker()" clears up a lot. Thanks! -- L. James -- L. D. James lja...@apollo3.com www.apollo3.com/~ljames __

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-11 Thread L. D. James
rit and I'll start to get more support within the context of my actual question. Thanks for everything, Kjell, especially for taking my last question serious enough to consider adding a chapter to the well organized documentation, and for taking the time to explain the problems with my questions and current position, so that I can attempt to clarify the parts you might misunderstand. -- L. James -- L. D. James lja...@apollo3.com www.apollo3.com/~ljames ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-10 Thread L. D. James
, now I'm trying to implement the gprint() function. I have it in place, but it's not clean enough to post it for comments yet. -- L. James -- L. D. James lja...@apollo3.com www.apollo3.com/~ljames On Sun, 2013-08-11 at 01:20 +0100, Chris Vine wrote: > On Sat, 10 Aug 2013 19:41:33 -0400

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-10 Thread L. D. James
t a matter of getting a grip of a few vague concepts. While I'm having problems just sending text to a window, you're suggesting that I dive figure and use gtkmm for my other calls. I might get to that at some time. But at present, I just want to use gtkmm to output to a gui s

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-10 Thread L. D. James
e Java, is that you can't set the suid bit for some of the routines that needs to be run as root. I was doing that with a C++ wrapper to call the Java program. But now, I'm trying to do it all in C++ with gtkmm. Once I develop the "gprint()" function, I'm sure t

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-10 Thread L. D. James
;r"))){ return lret; } while (fgets(buff, sizeof(buff), in) != NULL){ lret += buff; } pclose(in); return lret; } // - // code end -- L. James -- L. D. James lja...@apollo3.com www.apollo3.com/~ljames ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-10 Thread L. D. James
the system. But, I'm sure I'll be able to comment and have such a flow that you might be able to easily follow it just by looking at it, or, on your own, comment out the parts that makes changes. Thanks! -- L. James -- L. D. James lja...@apollo3.com www.apollo3.com/~ljames __

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-10 Thread L. D. James
of outputting the status to a friendly gui window. I don't mean to sound ungrateful with my reply, but I'm hoping that I'm clarifying what I'm trying to do, and that it does have some merit. -- L. James -- L. D. James lja...@apollo3.com www.apollo3.com/~ljames On Sat, 2013-

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-10 Thread L. D. James
thread to perform the blocking_operation * function. */ thread = Glib::Threads::Thread::create(op_functor); app->run(win); } }; int main(int argc, char *argv[]) { Example example(argc, argv); example.run(); return 0; } // --

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-10 Thread L. D. James
y is another lesson. I'm sure once I'm able to fully grasp the use of a single widget (in this case, the textview), the other examples will soon be a cinch to understand. Thanks! -- L. James -- L. D. James lja...@apollo3.com www.apollo3.com/~ljames ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: What is the minimum number of lines to update a gui window without user clicking a button

2013-08-10 Thread L. D. James
ergy anyone applies would more likely answer the question. Thanks! -- L. James -- L. D. James lja...@apollo3.com www.apollo3.com/~ljames On Fri, 2013-08-09 at 23:13 -0700, Andrew Potter wrote: > Mr. James, > This reply has 3 examples. The last time I sent you a complete > solution

What is the minimum number of lines to update a gui window without user clicking a button

2013-08-09 Thread L. D. James
50 and 75 lines. If I could see the minimum, I'm sure I'd have a grip, where everything else in the documentation will become clearer. Thanks for allowing me to use this maillist resource for my question. -- L. James -- L. D. James lja...@apollo3.com www.apollo3.com/~ljames __

Re: New multi-threaded example program in the gtkmm tutorial

2013-08-07 Thread L. D. James
will include my asking questions... not bugs. Some of my questions might possibly serve some benefit that might help other novice that are intimated in asking questions, but might also be stuck. -- L. James -- L. D. James lja...@apollo3.com www.apollo3.com/~ljames On Wed, 2013-08-07 at 10:29 +0200,

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-08-06 Thread L. D. James
Thanks, Alan. I understand those lines better with your explanation. I'm able to strip the example down by 5 lines. -- L. James -- L. D. James lja...@apollo3.com www.apollo3.com/~ljames On 08/06/2013 10:29 AM, Alan Mazer wrote: Just, as we mentioned yesterday, put a ! before the

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-08-05 Thread L. D. James
o the console. Since I have this current working model to be able to update the gui window, I can use it in my current applications, while continuing to study on the side how to make my "gprint()" function. -- L. James -- L. D. James lja...@apollo3.com www.apollo3.com/~ljames On

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-08-05 Thread L. D. James
Thanks, Moh. That resolved the error issue. As far as I can see, it's functioning perfect! I'll have some questions on Threading. But I'll reserve this for a new topic. -- L. James -- L. D. James lja...@apollo3.com www.apollo3.com/~ljames On Mon, 2013-08-05 at 22:07 +010

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-08-05 Thread L. D. James
XX_SRCS := C++_SRCS := CC_SRCS := OBJS := C++_DEPS := C_DEPS := CC_DEPS := CPP_DEPS := EXECUTABLES := CXX_DEPS := C_UPPER_DEPS := # Every subdirectory with source files must be described here SUBDIRS := \ src \ // ------------- // Code end -- L. James -

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-08-05 Thread L. D. James
rgv[]) { if (!Glib::thread_supported()) Glib::thread_init(); else { cerr << "Threads aren't supported!" << endl; exit(1); } Gtk::Main kit(argc, argv); myLabel mylabel;

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-08-03 Thread L. D. James
ut threading will be a plus of which will help me to optimize my years of crude programs that I already use. I'm glad that you can see progress and report that we're nearing it. Enjoy your weekend! -- L. James -- L. D. James lja...@apollo3.com www.apollo3.com/~ljames On Sat, 2013-0

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-08-02 Thread L. D. James
<< endl; myprocess1(); cout << "Window should be displayed" << endl; } myLabel::~myLabel() { } void myprocess1() { cout << "Running another process that is generating output..." << endl; } int main(int argc, char* argv[]) { Gtk::Main kit(argc, ar

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-08-02 Thread L. D. James
n(int argc, char* argv[]) { // Gtk::Main kit(argc, argv); Glib::RefPtr app = Gtk::Application::create(argc, argv, "org.gtkmm.example"); myLabel mylabel; // Gtk::Main::run(mylabel); return app->run(mylabel); // return 0; } // --

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-08-02 Thread L. D. James
not sure if my problem is described clear. -- L. James -- L. D. James lja...@apollo3.com www.apollo3.com/~ljames On Fri, 2013-08-02 at 11:28 +0200, Murray Cumming wrote: > Sorry, I'm not interested in being in a big email thread with such > verbose responses. If you have specific problems w

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-08-02 Thread L. D. James
have code that is doing exactly this. They just are not thinking about it. There has to be a simple way to append text to text already displayed without the user having to sit at the console and click a button every time they want the program to continue. I'll comment again after I have stud

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-08-01 Thread L. D. James
the internet of how to do this in Java. I'll take all your suggestions and code examples for "gtkmm" into study for how to use "gtkmm" but as for as my Java example, I don't think those few lines violate any standard. Variations of those two lines are repeate

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-08-01 Thread L. D. James
- // sample code end I believe the above Java working example (from one of my Java applications) should clearly show exactly what I'm trying to do. The sleep function isn't sleep in my code. It's a function to go out and work and it take about an hour to complete.

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-08-01 Thread L. D. James
). By the way, the closest that I could find on the gtkmm example site is the progress bar example. I spent a lot of time studying it, but at present it was too complicated for me to figure out how to remove all the buttons, show a text screen and where to place my function. -- L. James -- L.

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-07-31 Thread L. D. James
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 co

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-07-31 Thread L. D. James
ry hopeful to me. -- L. James -- L. D. James lja...@apollo3.com www.apollo3.com/~ljames On Wed, 2013-07-31 at 10:15 -0700, Alan Mazer wrote: > On 7/31/2013 9:24 AM, L. D. James wrote: > > > Java is very easy. The Window and Frame is up and has a buffer. > > All you have to do

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-07-31 Thread L. D. James
enty! I have lots of work cut out for me. -- L. James - - L. D. James lja...@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. > &

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-07-31 Thread L. D. James
ifferent. After each message I try to take in the gist and start looking for that perspective. Once user sent a private message telling me what I'm trying to do is extremely complicated. -- L. James -- L. D. James lja...@apollo3.com www.apollo3.com/~ljames Being so new to this very uniq

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-07-31 Thread L. D. James
of which I should look at. -- L. James -- L. D. James lja...@apollo3.com www.apollo3.com/~ljames On Wed, 2013-07-31 at 22:37 +1200, Ian Martin wrote: > Hi, > On review, you're using Gtk::Main::run(), which is in the process of > getting deprecated, and probably shouldn't be us

Re: Gtkmm web front-end.

2013-07-31 Thread L. D. James
solate it to some smallest sample detail, the process of creating a sample might reveal to you a possible glitch in your code. -- L. James -- L. D. James lja...@apollo3.com www.apollo3.com/~ljames ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-07-30 Thread L. D. James
, I'll post the resolution back to the group for anyone else that is stuck. -- L. James -- L. D. James lja...@apollo3.com www.apollo3.com/~ljames On Wed, 2013-07-31 at 12:48 +1200, Ian Martin wrote: > Hi, > Have you looked at the code for the progress bar example? > https://devel

Re: How to update both the Console and the GTKMM gui window after running other functions

2013-07-30 Thread L. D. James
age of processes and operations. I'm attempting to update // the status to the user. //A MODIFICATION HERE '+=' instead of yours '='' mylabeltext += "Other events are taking place that has taken another 60 seconds\n"; cout << "Other

How to update both the Console and the GTKMM gui window after running other functions

2013-07-30 Thread L. D. James
e: https://developer.gnome.org/ https://developer.gnome.org/gtkmm-tutorial/3.2/gtkmm-tutorial.html http://en.wikipedia.org/wiki/Gtkmm -- L. James -- L. D. James lja...@apollo3.com www.apollo3.com/~ljames ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list