|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Sep 2004
Messaggi: 3967
|
[C# - Monodevelop + Glade2] un browser che non browsa...UFF!
Codice:
using System;
using Gtk;
using Glade;
using Gecko;
public class GladeApp
{
[Widget] Frame frame1;
[Widget] Entry entry1;
WebControl web;
public static void Main (string[] args)
{
new GladeApp (args);
}
public GladeApp (string[] args)
{
Application.Init ();
Glade.XML gxml = new Glade.XML (null, "gui.glade", "window1", null);
gxml.Autoconnect (this);
web = new WebControl();
web.Show();
frame1.Add(web);
entry1.Activated += load_url;
Application.Run ();
}
// Connect the Signals defined in Glade
private void OnWindowDeleteEvent (object sender, DeleteEventArgs a)
{
Application.Quit ();
a.RetVal = true;
}
void load_url ( object source, EventArgs args) {
web.LoadUrl(entry1.Text);
}
}
http://primates.ximian.com/~edasque/...al/glade2.html Il problema è che l'applicazione mi si compila tranquillamente,mi si esegue,riesco a scrivere l'indirizzo nella casella di testo del browser,ma quando poi premo invio non succede nulla mentre invece dovrei riuscire a navigare. Any ideas?
__________________
Dai wafer di silicio nasce: LoHacker... il primo biscotto Geek
|
|
|
|
|
|
#2 |
|
Senior Member
Iscritto dal: Sep 2004
Messaggi: 3967
|
up
__________________
Dai wafer di silicio nasce: LoHacker... il primo biscotto Geek
|
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 07:34.



















