Hi there, I try to help you in what I know.
On Fri, 2005-04-15 at 13:09 +0200, Sijmen Mulder wrote: > Hi, > > I'm currently trying to get into Gtk#, but I have hit some obstacles. I > would be very happy if someone could provide me with some links or an > explanation for these things: > > 1. Menu accelerators. It seems that Gtk# uses something similar to > ImageLists for keyboard accelerators for menu items. Is this true? And > how to use these accelerators? I haven't found any documentation on it > that I am able to use. > You should check that on monodoc or on http://www.go-mono.com/docs/. Quick Sample, to get you started: (indentation helps) AccelGroup accelGroup = new AccelGroup(); Window win = new Window ("Menu Sample App"); win.AddAccelGroup(accelGroup); VBox box = new VBox (false, 2); MenuBar mb = new MenuBar (); MenuItem file_item = new MenuItem("_File"); Menu file_menu = new Menu (); MenuItem exit_item = new MenuItem(); AccelLabel label = new Gtk.AccelLabel(""); label.TextWithMnemonic = "E_xit"; label.AccelWidget = exit_item; exit_item.Child = label; exit_item.AddAccelerator("activate", accelGroup, new AccelKey(Gdk.Key.B, Gdk.ModifierType.ShiftMask, Gtk.AccelFlags.Visible)); exit_item.Activated += new EventHandler (exit_cb); file_menu.Append (exit_item); file_item.Submenu = file_menu; mb.Append (file_item); box.PackStart(mb, false, false, 0); win.Add (box); win.ShowAll (); > 2. Gtk# in Windows. How exactly should one setup a Gtk# project in > Windows? I have installed Mono for Windows, which includes Gtk#. > However, the Gtk# assemblies did not appear in the GAC, so I linked to > the gtk-sharp assemblies (and some others) in the Mono program folder. > This did not succeed, as I kept getting DllNotFoundExceptions about a > glue dll. > Don't know, I don't use windows. :-( I have tryed to run an app on windows after setting up mono and it run fine. (It used gtk#) Are you searching for the dlls in the MS' GAC on ir Mono's GAC? > 3. The TreeView. I have used the TreeView a bit and it rocks! I'd just > like to know whether it is possible to let one item span the entire row > (ie, not bound to columns). > Don't know... > Any help would be appreciated, > Thanks! > > Sijmen Mulder > _______________________________________________ > Mono-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-list SpigaZ out... _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
