Re: How to update the interface?



MERT TUGCU wrote:

Hi everyone,



In my interface, I have button that is used to process an image. Since the process takes some time, the button is either left pressed, does not pop back during process or nothing happens. Is there any way to finish updating the interface first then finishing the call to a function? Also I have a textview widget I use in my application to show the user what steps are taken during the process. During the process, it doesn’t update (or print the text buffer) the textview widget also. Lastly, I would like to use the textview widget pretty much like a terminal. For example, how can I do like: textview_object << “string” << an integer << an stl vector << endl; so that I can print my stl vector variables or integers etc.

Thank you for your response in advance,


_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list

There are conflicting opinions on how exactly to update the UI and process some method at the same time. I say use threads. Others said process the method and periodically clear the event queue for the UI. I say use threads.

As for the textview, take a look at the docs. Its something like textview->get_buffer()->set_text( string text ) ;

Cheers,
Paul



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