Hi,

(1)When I try to add NPlot.Gtk.PlotSurface2D into Gtk.Widget (such as
HBox), I got this compile error:
error CS1502: The best overloaded method match for
`Gtk.Container.Add(Gtk.Widget)' has some invalid arguments
error CS1503: Argument 1: Cannot convert from
`NPlot.Gtk.PlotSurface2D' to `Gtk.Widget'

strange, in my case it is Widget-convertable without any problems since it is DrawingArea.
 

(2)Do we need gtk-dotnet.dll in order to use NPlot? If yes, where can I get it?

no
 
(3)Do we need nplot.gtk.dll in order to use NPlot on gtk#? If yes,
where can I get it?

yes and no, you can delete sysdraw.cs and use gtk-dotnet.dll or you can simply replace it
with http://svn.myrealbox.com/source/trunk/gtk-sharp/gtkdotnet/Graphics.cs. Also it is necessary
to correct namespace name there in both cases.  

(4)I saw there are many version NPlot on internet (such as
http://primates.ximian.com/~miguel/tmp/NPlot-Gtk-0.9.8.5.tar.gz and
http://gnomefiles.org/app.php?soft_id=639) . Which one is suitable for
GTK# on Windows platform?

You can use 9.8.5 (afaik it is the last port) or in order to have the last version it is better to grab the last from
NPlot sourceforge page and try to extend it with Miguel's files Gtk.PlotSurface2D.cs and Graphics.cs
from gtk-dotnet. Should work fine.

--Gena
 

_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to