comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Printing with GtkADA
Date: Fri, 20 Jun 2008 17:13:43 +0200
Date: 2008-06-20T17:13:43+02:00	[thread overview]
Message-ID: <17ibcqwjp5k8x$.1mqnp1id4k4f9.dlg@40tude.net> (raw)
In-Reply-To: 485bbed4$0$6000$9a622dc7@news.kpnplanet.nl

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



  reply	other threads:[~2008-06-20 15:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-20 14:29 Printing with GtkADA ldries46
2008-06-20 15:13 ` Dmitry A. Kazakov [this message]
2008-06-21 12:05   ` ldries46
2008-06-21 13:38     ` Dmitry A. Kazakov
replies disabled

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