[Gtk2] I'm developing a program under Linux with gtk2.

Mattias Gaertner nc-gaertnma at netcologne.de
Tue May 26 12:28:05 CEST 2009


On Tue, 26 May 2009 12:17:11 +0200
Denis Gottardello <info at denisgottardello.it> wrote:

>  	
> I'm developing a program under Linux with gtk2. I think the graphic
> is a little ugly.
> In my multithread program I use Synchronize() procedure to update a
> TMemo object.
> By Synchronize() procedure the thread adds a few lines, but sometimes
> they do not appear correctly. I have to use the mouse scroll to read
> them all. If I add Application.ProcessMessage in the updating
> synchronized procedure, it displays all the lines correctly. However,
> the program becomes very slow. Do you think about? What can I do to
> improve my program?

Call Application.ProcessMessages is the only supported way for painting.
Call it only a few times a second by comparing 'Now' and the last
time - otherwise your program will become slow.

Mattias




More information about the Gtk2 mailing list