comp.lang.ada
 help / color / mirror / Atom feed
* Gtk.Window refresh
@ 2010-11-15 16:34 ldries46
  2010-11-15 20:36 ` Dmitry A. Kazakov
  0 siblings, 1 reply; 2+ messages in thread
From: ldries46 @ 2010-11-15 16:34 UTC (permalink / raw)


I am using GTkAda to build a user interface, The TextView facility is used. 
Now I need to make a screen refresh because When I fill the textview element 
from a file I hasve to scrool my window up and down to see it. In Visual C++ 
on windows there is a possibility to refresh my view. How do I do that in 
Gtk ADA 




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Gtk.Window refresh
  2010-11-15 16:34 Gtk.Window refresh ldries46
@ 2010-11-15 20:36 ` Dmitry A. Kazakov
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry A. Kazakov @ 2010-11-15 20:36 UTC (permalink / raw)


On Mon, 15 Nov 2010 17:34:08 +0100, ldries46 wrote:

> I am using GTkAda to build a user interface, The TextView facility is used. 
> Now I need to make a screen refresh because When I fill the textview element 
> from a file I hasve to scrool my window up and down to see it.

Gtk_Text_View deploys MVC. When Gtk_Text_Buffer is modified, Gtk_Text_View
reflects the automatically changes. Similar happens when Gtk_Text_View out
in a Gtk_Scrolled_Window. The latter does all necessary actions upon
scrolling. If you feel that you need refresh, then you likely did something
wrong.

Otherwise there are lots of ways, e.g. disconnect the model and connect it
back. Emit "expose_event", "draw events" etc.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-15 20:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-15 16:34 Gtk.Window refresh ldries46
2010-11-15 20:36 ` Dmitry A. Kazakov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox