[Gtk-sharp-list] creating toolbars
Jacob Ilsø Christensen
jacobilsoe at gmail.com
Sun Sep 24 06:12:01 EDT 2006
On 9/22/06, gilbert <grim918 at gmail.com> wrote:
> Hello I am new to learning gtk#, but I am very dedicated. I ran into a
> problem when trying to learn how to build the toolbars. My main
> question is how do you add an item to the toolbar.
> I have been looking around the website and I can't figure it out. I
> ran into this
> I tried to use this but I get errors when I try to compile about the
> SignalFunc. I trired to look up SignalFunc but when I found it, it
> says not to use SignalFun. Can someone please help me out. Thank you.
About the SignalFunc, you should pass your own delegate here. You have
not provided a code example so it is hard to tell why you got a
compilation error. The code should look along the lines of this:
private void MySignalFunc()
toolbar.AppendItem(....., new SignalFunc(MySignalFunc));
But, the AppendItem method is deprecated. You should use
Insert(ToolItem, int) instead.
> By the way, I would like to help contribute by helping with the
> documentation. I would really like to put up some how to's on how to
> do some of the basic things with Gtk#. I think thats what mono needs.
> More how to's. Once again, Thank You.
More documentation is always welcome. I guess it is, at least! :-)
> Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com
More information about the Gtk-sharp-list