[MonoDevelop] gecko sharp
Christian Ortiz
cpalst at gmail.com
Thu Jan 3 12:07:04 EST 2008
the source code
using System;
using Gtk;
using Gecko;
public partial class MainWindow: Gtk.Window
{
WebControl web = new WebControl();
public MainWindow (): base (Gtk.WindowType.Toplevel)
{
Build ();
string mozillaEnvPath = System.Environment.GetEnvironme
ntVariable("GECKOSHILLA_BASEPATH");
if(mozillaEnvPath != null && mozillaEnvPath.Length != 0){
Gecko.WebControl.CompPath = mozillaEnvPath;
}
web.Show();
alignment1.Add(web);
web.LoadUrl(entry1.Text);
}
protected void OnDeleteEvent (object sender, DeleteEventArgs a)
{
Application.Quit ();
a.RetVal = true;
}
protected virtual void OnEntry1Activated (object sender,
System.EventArgs e)
{
web.LoadUrl(entry1.Text);
}
protected virtual void OnBtnIrActivated (object sender, System.EventArgse)
{
web.LoadUrl(entry1.Text);
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20080103/ba6818f9/attachment.html
More information about the Monodevelop-list
mailing list