From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,bb5dc72588f47824 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder.news-service.com!easy.in-chemnitz.de!news2.arglkargh.de!noris.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Gtk.Window refresh Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <4ce16101$0$8930$703f8584@textnews.kpn.nl> Date: Mon, 15 Nov 2010 21:36:21 +0100 Message-ID: NNTP-Posting-Date: 15 Nov 2010 21:36:20 CET NNTP-Posting-Host: 93440d92.newsspool4.arcor-online.net X-Trace: DXC=[[ 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