HiI'm create a SVN in Sourceforge with my modifications.https://geckobrowser.svn.sourceforge.net/svnroot/geckobrowserIf you want i can update your SVN (or not...)Add events:OnDocumentBeginOnDocumentCompleteOnDocumentUnloadOnDOMBlurOnDOMInputChangedOnDOMInputFocusOnPageShowAdd Property's:Popupmenu;Stop;StopAll;StopNetwork;January, 12 2010Add Property Links in TGeckoBrowser---------------------------------------------------Count -> Count links in pageHref[index] -> Return HREF link by IndexAnchorText[index] -> Return AnchorText of Link by Index (include HTML)Element[index] -> Return XPCOM nsIDOMHTMLAnchorElement by Index.Add Property Forms in TGeckoBrowser---------------------------------------------------Count -> Count forms in pageGetFormControlCount -> Return Count control by form Index (Include INPUT, TEXTAREA, SELECT)Values[fIndex, iIndex] -> Return ou write Value of control iIndex to form fIndex Names[fIndex, iIndex] -> Return Name of control iIndex to form fIndex (readonly) Add Property's---------------------------------------------------AllowImages: Boolean -> Enabled/Disabled Images in Browser (Read and write)AllowJavascript: Boolean -> Enabled/Disabled Javascript in Browser (Read and write)AllowPlugins: Boolean -> Enabled/Disabled Plugins in Browser (Read and write)AllowSubFrames: Boolean -> Enabled/Disabled Subframes in Browser document. (Read and write)
var LenS: DWORD; S, sValue: AnsiString; ...... sValue := 'SOFTWARE\Mozilla\Mozilla Firefox'; if RegOpenKeyEx(HKEY_LOCAL_MACHINE, PAnsiChar(sValue), 0, KEY_QUERY_VALUE, hRegKey) = ERROR_SUCCESS then begin SetLength(S, buflen); LenS := buflen; ok := RegQueryValueExA(hRegKey, PAnsiChar('CurrentVersion'), nil, nil, @S[1], @LenS) = ERROR_SUCCESS; RegCloseKey(hRegKey); if ok then begin S := PAnsiChar(S); sValue := sValue + '\' + S + '\Main'; LenS := buflen; ok := (RegOpenKeyEx(HKEY_LOCAL_MACHINE, PAnsiChar(sValue), 0, KEY_QUERY_VALUE, hRegKey) = ERROR_SUCCESS) and (RegQueryValueExA(hRegKey, PAnsiChar('Install Directory'), nil, nil, PByte(buf), @LenS) = ERROR_SUCCESS); RegCloseKey(hRegKey); if ok then begin NS_StrLCat(Buf, '\xpcom.dll', BufLen); Result := NS_OK; Exit; end; end; end;
Result := NS_ERROR_FAILURE;