[Gtk-sharp-list] HTML widget does not load images.

McP mariano.cano@hispalinux.es
Thu, 04 Dec 2003 07:19:41 +0100


I was 'playing' sometime ago with html widget. I used to do something
like that:

...
{
Html html = new HTML();
...
html.UrlRequest += new UrlRequestHandler()
...
}

void UrlRequested (object o, UrlRequestedArgs args)
{
	WebClient wc = new WebClient();
	try
	{
		Byte[] buffer =
			wc.DownloadData(GetCompleteUri(args.Url));
		args.Handle.Write(buffer, buffer.Length);
	}catch(Exception e)
	{
		Console.WriteLine(e);
	}
}

It isn't the best solution, but it works ;)

El jue, 04-12-2003 a las 17:18, Jorge De Gante escribió:
> Hi
> 
> I got an HTML widget on my app and loads html docs fine, except for the
> images.
> 
> How can I load images properly?
> 
> How can I print print the contents of an HTML widget?
> 
> 
> Thank you.
> 

-- 
McP <mariano.cano@hispalinux.es>