Hi I would like to know how I can get my widget to give the options that
WebView gives?

Currently the widget derived its features from Gtk.Bin, but I also want
WebView methods and features included.  You cna only derive from one base
class.   Im not sure if Interfacing couldbe used to rebuild the widget to
give both powers.  I'm fairly new to C# and not sure how to go about this.


using System;
using Gtk;
using WebKit;

namespace MyWidgetLibrary
{               
        [System.ComponentModel.ToolboxItem(true)]
        public partial class MyWebView : Gtk.Bin
        {
                WebView webView  = new WebView();

                public MyWebView()
                {
                        this.Build();
                        this.Add (webView);
                }

                public void Open(string url) // making my own link to WebView 
Open
Feature.
                {
                        webView.Open(url);
                }
        }
}

-- 
View this message in context: 
http://www.nabble.com/Inherritance-of-WebKit.WebView-features-tp21049070p21049070.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to