[Gtk-sharp-list] ScrolledWindow and TextView

Michael Hutchinson m.j.hutchinson at gmail.com
Sat Jun 28 15:32:09 EDT 2008


On Fri, Jun 27, 2008 at 12:14 AM, Jestin Stoffel
<jestin.stoffel at gmail.com> wrote:
> I am using a TextView inside a ScrolledWindow in an application designed
> using Monodevelop 1.0 with the Stetic designer.  When I type text into
> the TextView, it works but does not scroll with the text.  A little
> research into this helped me find a solution where I add the TextView to
> the ScrolledWindow first, and then add the ScrolledWindow to its
> container.  Since I am using the Stetic designer, and not adding my GUI
> elements in code, is there any way to get the desired result, or do
> TextViews simply not work with ScrolledWindows in the designer?

They certainly *should* work; this sounds like a strange bug, and I
dont know if it's in GTK, GTK# or Stetic...

In fact, the following code generated by stetic seems to indicate that
it does things in the "correct" order:

this.scrolledwindow4.Add(this.extraCompilerTextView);
this.table5.Add(this.scrolledwindow4);

Could you take a look at the stetic-generated code in the gtk-gui
directory to check whether it's ordering things differently for you?

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Gtk-sharp-list mailing list