[MonoDevelop] Stetic Textview text ?

Jacob Ilsø Christensen jacobilsoe at gmail.com
Tue Nov 28 12:43:20 EST 2006


Hi.

On 11/28/06, Nil Gradisnik <ghaefbgtk at gmail.com> wrote:
> I put this in some button event function...
>
> protected virtual void OnProcessButtonClicked(object sender,
> System.EventArgs e) {
>
>   textview1.Buffer.Text = "some text";
> }
>
> So the button should trigger it.
>

It looks ok. I just tried it out myself. No problems. Can you post the
code of the entire class?

> On 11/28/06, Jacob Ilsø Christensen <jacobilsoe at gmail.com> wrote:
> > Hi.
> >
> > On 11/28/06, Nil Gradisnik <ghaefbgtk at gmail.com> wrote:
> > > I created TextView widget from Monodevelop GUI designer - Stetic. I
> > > clicked Bind to Field which created "protected Gtk.TextView
> > > textview1;" entry in my code.
> > >
> > > I don't know how to initialize TextView variable?
> > >
> >
> > Well, where have you put the code below? In the constructor?
> >
> > textview1.Buffer.Text = "some text";
> >
> > /Jacob
> >
> > > And yeah I mean textview1 not treeview1.
> > >
> > >
> > > On 11/28/06, Jacob Ilsø Christensen <jacobilsoe at gmail.com> wrote:
> > > > Hi.
> > > >
> > > > Are you sure the TextView variable has been initialized before you use it?
> > > >
> > > > Have you looked at whether it is treeview1 or treeview1.Buffer which
> > > > is null? Is it on purpose that the TextView variable is named
> > > > treeview1 or is it a stetic suggestion?
> > > >
> > > > /Jacob
> > > >
> > > > On 11/28/06, Nil Gradisnik <ghaefbgtk at gmail.com> wrote:
> > > > > Can someone please help me on this one.
> > > > >
> > > > > I'm developing this app fairly simple, I'm using Monodevelop 0.12 and
> > > > > I've built my gui in stetic. I need to put some text into Textview
> > > > > widget which I created with Stetic designer in Monodevelop.
> > > > >
> > > > > If I use this code:
> > > > >
> > > > > treeview1.Buffer.Text = "some text";
> > > > >
> > > > > I get "Object reference not set to an instance of an object".
> > > > > How do I put some text in my Textview ?
> > > > >
> > > > >
> > > > > I need help on this one ASAP.
> > > > >
> > > > > Thanks
> > > > > _______________________________________________
> > > > > Monodevelop-list mailing list
> > > > > Monodevelop-list at lists.ximian.com
> > > > > http://lists.ximian.com/mailman/listinfo/monodevelop-list
> > > > >
> > > >
> > >
> >
>


More information about the Monodevelop-list mailing list