I try'd this,
but now i have the problem that some Widgets like ComboBox have a CellEditable 
and no Editable interface :-((
But all Widget i need have the "Changed" event. Under MS my coding works.
This may be a bug?

/
Wolfgang

> Hey,
>
> first your way of connecting to the "Changed" event seems to be very
> strange. Why don't you use
> if (widget is Gtk.Editable) {
>     (widget as Gtk.Editable).Changed += this.OnWidgetChanged ;
> }?
>
> if that doesn't help, try applying the [GLib.ConnectBeforeAttribute] to
> the OnWidgetChanged method; see
> http://gtk-sharp.sourceforge.net/faq.html#3.3 (but that doesn't seem to
> be the reason in this case).
>
> Christian
>
> Wolfgang Mauer schrieb:
> > Hi all,
> > i try'd to bind a Method("OnWidgetChanged") to the "Changed"-Event of
> > some Widgets but like this the event never raised.
> > Any Help?
> >
> >     EventInfo eInfo = this.widget.GetType().GetEvent("Changed");
> >     if (eInfo != null)
> >     {
> >             MethodInfo mi = this.GetType().GetMethod("OnWidgetChanged",
> > BindingFlags.Instance | BindingFlags.NonPublic);
> >             if (mi != null)
> >             {
> >                     Delegate del = 
> > Delegate.CreateDelegate(eInfo.EventHandlerType, this,
> > mi); if (del != null)
> >                     {
> >                             eInfo.AddEventHandler(this.widget, del);
> >                     }
> >             }
> >     }
> > ......
> >
> > void OnWidgetChanged(object sender, EventArgs e)
> > {
> > }
>
> _______________________________________________
> Gtk-sharp-list maillist  -  [email protected]
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list



-- 
Top-Soft
Softwareentwicklung
Inhaber: Wolfgang Mauer
Reitesweg 9, 96103 Hallstadt
Tel.: +49 (0)951 / 2221520
Fax: +49 (0)951 / 2221521
_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to