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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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!news3.google.com!news4.google.com!news.germany.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeeder.wxs.nl!divide.nova.planet.nl!posting.nova.planet.nl!not-for-mail From: "ldries46" Newsgroups: comp.lang.ada References: <485bbed4$0$6000$9a622dc7@news.kpnplanet.nl> <17ibcqwjp5k8x$.1mqnp1id4k4f9.dlg@40tude.net> Subject: Re: Printing with GtkADA Date: Sat, 21 Jun 2008 14:05:53 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-RFC2646: Format=Flowed; Original Message-ID: <485ceea5$0$6030$9a622dc7@news.kpnplanet.nl> NNTP-Posting-Host: 86.88.17.1 X-Trace: 1214049957 news.kpnplanet.nl 6030 86.88.17.1:56728 X-Complaints-To: abuse@direct-adsl.nl Xref: g2news1.google.com comp.lang.ada:797 Date: 2008-06-21T14:05:53+02:00 List-Id: It 's clear to me how to get my text buffer back. Now I want to send it to the printer within windows, so I want to see for instance the windows printer dialog to choose my printer (or PDF creator) or a GTK alternative for it. The last would be better if I want to design my program in a Windows enviroment and run it also in a Linux enviroment for instance. "Dmitry A. Kazakov" schreef in bericht news:17ibcqwjp5k8x$.1mqnp1id4k4f9.dlg@40tude.net... > 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