It is safer to use the scrolling methods exposed by nsIDOMWindow than using the nsITextScroll interface (which is private)

The nsIDOMWindow interface is available from nsIWebBrowser::GetContentDOMWindow(...)

-- rick

Valeri Todorov wrote:
[EMAIL PROTECTED]">
In article 9pav6p$[EMAIL PROTECTED]"><9pav6p$[EMAIL PROTECTED]>, [EMAIL PROTECTED] says...

hi, everyone
is there anybody who knows how to send a key to the gtkmozembed widget ?
what I am intending to do is programmablly scroll up/down window by line or
page.
my programme is based entirely on
mozilla/embedding/browser/gtk/tests/TestGtkEmbed.cpp.

IDocShell = do_GetInterface(nsIWebBrowser);
ITextScroll = do_QueryInterface(IDocShell);
ITextScroll->ScrollByLines(iHowManyLines);




Reply via email to