Adrian M. wrote:
What is the proper way to set the text zooming ( similar to View->TextZoom in the seamonkey ) from an embedded mozilla?
You should set the textZoom property on the nsIMarkupDocumentViewer interface. To get to the right object that implements this interface, get the contentViewer off your docshell and QueryInterface it to nsIMarkupDocumentViewer.
Hi... I found out that the code below also works:
nsCOMPtr<nsIDOMWindow> domWindow; moz->EmbedRef->mWindow->mWebBrowser->GetContentDOMWindow(getter_AddRefs(domWindow)); if(domWindow) domWindow->SetTextZoom( moz->text_zoom/100. );
Perhaps it comes down to the same thing.
Adrian _______________________________________________ mozilla-embedding mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-embedding
