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: 103376,a59789c94002960f X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newspeer.monmouth.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Printing with GtkADA 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: <485bbed4$0$6000$9a622dc7@news.kpnplanet.nl> Date: Fri, 20 Jun 2008 17:13:43 +0200 Message-ID: <17ibcqwjp5k8x$.1mqnp1id4k4f9.dlg@40tude.net> NNTP-Posting-Date: 20 Jun 2008 17:13:43 CEST NNTP-Posting-Host: 15316989.newsspool3.arcor-online.net X-Trace: DXC=a6LY0o0>mF56LoE[g X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:783 X-Original-Bytes: 1730 Date: 2008-06-20T17:13:43+02:00 List-Id: On Fri, 20 Jun 2008 16:29:48 +0200, ldries46 wrote: > Therefore I am using > GTKAda. I cannot find any reference to how to print the info in a TextView > window. Gtk's Gtk_Text_View uses the MVC model. That means you have to change the model in order to make the viewer to show anything. In short you should modify the text buffer of the widget in order to make Text_View to show it. For example, you could use Set_Text. See for Gtk_Text_Buffer http://www.adacore.com/wp-content/files/auto_update/gtkada-docs/gtkada_rm/gtkada_rm/gtk-text_buffer.html (the function Get_Buffer returns the current text buffer of the widget) -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de