Re: Scrolling issue in Windows

Kenny <[email protected]>
Newsgroups gmane.comp.mozilla.devel.embedding
Organization http://groups.google.com
Message-ID <65bb2605-f66f-4951-8469-94327c69be87@y36g2000pra.googlegroups.com>
It works now. In the example code in of th embedding app in
WebbrowserChrom.cpp the roiginal code reads


NS_IMETHODIMP WebBrowserChrome::GetVisibility(PRBool * /
*aVisibility*/)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

This causes the scrolling not to work. Changing the code to

NS_IMETHODIMP WebBrowserChrome::GetVisibility(PRBool * aVisibility)
{
    NS_ENSURE_ARG_POINTER(aVisibility);
    *aVisibility = PR_TRUE;
    return NS_OK;
}

Gives a lot better results. I hope this may prevent other people from
spending valuable time searching a solution for this strange
behaviour.

Kenny


On Feb 4, 9:42 am, Kenny <[email protected]> wrote:
> Hi all,
>
> I have built the example inhttps://wiki.mozilla.org/Embedding/NewApi
> (great work: it does help to make things easier for newcomers).
> This projects compiles, builds and runs in its original form. I have
> built it with visual studio 2010 and against gecko 2.0 bete 4.
> There is one issue though: the scroll bars cannot be dragged and the
> scroll wheel doesn't work. In the firefox 4.0 beta I have built this
> does work all right. Any idea how to get this working?
>
> Thanx
>
> Kenny
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.