[Gtk-sharp-list] Namespace problem using Gtk.DotNet
hywelt
hywel at controlspecials.demon.co.uk
Thu Feb 5 15:28:27 EST 2009
Yes, that's fixed the problem - but is this a compiler limitation? - that
it's not looking further out to the enclosing 'using Gtk.DotNet' statement
when it can't resolve it within NPlot.Gtk? I also get the same error if I
try and use Gtk.Drawable *specifically* within the NPlot.Gtk namespace
rather than let it use the 'using Gtk' statement. Perhaps it would work if I
could use 'using Gtk.DotNet', though in this case I get a conflict between
System.Drawing.Graphics and Gtk.DotNet.Graphics. I'd like to understand a
bit more, if you have any pointers.
-- Hywel
Peter Johanson-2 wrote:
>
>
> Add the following:
>
> using DNGraphics = Gtk.DotNet.Graphics;
>
> using (Graphics g = DNGraphics.FromDrawable(args.Event.Window)){
>
> This uses a little/less known feature of C# know as "type aliases":
>
> http://msdn.microsoft.com/en-us/library/aa664765(VS.71).aspx
>
> in case you're not familiar with it.
>
> -pete
>
> _______________________________________________
> Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
>
--
View this message in context: http://www.nabble.com/Namespace-problem-using-Gtk.DotNet-tp21858218p21860439.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
More information about the Gtk-sharp-list
mailing list