BaH.GTKWebGTKHTML: Types Modinfo Source  

GTKMaxGUI Linux HTMLView Widget

Types Summary

TGTKWebGTKHTML An HTMLView gadget, based on gtkhtml.

Types

Type TGTKWebGTKHTML Extends TGTKHTMLView
DescriptionAn HTMLView gadget, based on gtkhtml.
InformationCall it a kludge if you like.. but it mostly works. The gtkhtml widget is wrapped inside a scrollwindow, which itself is placed inside a vbox. The reason being that I couldn't get the gtkhtml/scrollwindow to resize when/how I wanted, but by placing it inside a gtkbox widget, I can resize that and the rest will follow automagically :-)
Of course, the gtkhtml widget doesn't do much in the way of URL processing, *nor* in fetching any of its own content, all of which passes thru a LoadString() in a callback.
I say - HACKY.... but it works, mostly :-p.
Functions Summary
LinkClicked Called when a link is clicked.
PageLoaded Called when the page finishes loading.
processURL Called when a URL requires processing.
urlAnchor Returns a anchor from a full URL, If there was one.
urlLessAnchor Returns a URL minus an anchor, If there was one.
Function LinkClicked(handle:Byte Ptr, link:Byte Ptr, obj:Object)
DescriptionCalled when a link is clicked.
InformationIf HTMLVIEW_NONAVIGATE is set For the view, an event is raised, rather than the link followed.
Function PageLoaded(handle:Byte Ptr, obj:Object)
DescriptionCalled when the page finishes loading.
Function processURL(handle:Byte Ptr, url:Byte Ptr, html_stream:Byte Ptr, data:Object)
DescriptionCalled when a URL requires processing.
InformationThis can Include images during a page load, etc.
Function urlAnchor:String(url:String)
DescriptionReturns a anchor from a full URL, If there was one.
Function urlLessAnchor:String(url:String)
DescriptionReturns a URL minus an anchor, If there was one.

Module Information

Version1.02
AuthorBruce Henderson
LicenseBlitz Shared Source Code
CopyrightBruce A Henderson
ModserverBRL
History1.02
HistoryProcessURL changes to use banks. [Simon Armstrong]
History1.01
HistoryMinor tweaks.
History1.00
HistoryInitial Release.