[Gtk-sharp-list] TextViewer

Lee Mallabone gnome@fonicmonkey.net
19 May 2003 09:06:24 +0100

On Mon, 2003-05-19 at 06:49, Patrik Olterman wrote:
> What methods and members are there of the TextViewer class, that is how
> can I access the text written in there? 

IIRC there is a Text property on the TextBuffer class. You can probably
get the relevant text buffer with a Buffer property - until the C# docs
are complete, it often helps to check the Gtk+ docs for better info.

>  Alternatively how do I make it so I can reuse the
> window even when destroyed (submitting the code here, forgive the messy
> code its my first try) 

If you destroy the window, it is no longer usable. 
If you hide the window and you find that it is getting destroyed implicitly, you need to call window.Ref() before hiding it so that Gtk doesn't decide it's no longer needed....