[Gtk-sharp-list] Win32-Gtk# TextView.Buffer.Text Exception

Adam Tauno Williams awilliam at whitemice.org
Tue Oct 11 22:45:29 EDT 2005


> Code looks like -
>   case "12345":
>      firstName.Text = "Test";
>      lastName.Text = "Name";
>      collector.Text = "Ms. Dide";
>      statusDate.Text = "2005-10-04";
>      notes.Buffer.Text = "Blah Blah Blah";
>      this.Show();
>      break;

I found a work around.  If I -
TextBuffer buffer = new TextBuffer(null);
buffer.Text = "Blah Blah Blah";
notes.Buffer = buffer;
- then the text area works on both M$ and LINUX.  Is there something
illegal about just -
notes.Buffer.Text = "Blah Blah Blah";
-  Doesn't a TextView always have a buffer?  You can put a text view on
a dialog, blank, an use it without explicitly creating a buffer,  and
then retrieve its contents. (?)



More information about the Gtk-sharp-list mailing list