Hi Everyone,
I need help here , I'm trying to check if the node is scrolled off or
not by doing this , but the State always come back focus and selectable.
The node in my case is HTML List Box
nsCOMPtr<nsIAccessibleRetrieval> cpAccRetrieval=
do_GetService("@mozilla.org/accessibleRetrieval;1");
if( nsnull != cpAccRetrieval )
{
nsCOMPtr<nsIAccessible> cpNodeAccessible = nsnull;
cpAccRetrieval->GetAccessibleFor( cpDomNode ,
getter_AddRefs(
cpNodeAccessible ) );
if ( nsnull != cpNodeAccessible)
{
PRUint32 state =
nsIAccessibleStates::STATE_UNAVAILABLE;
PRUint32 Extstate =
nsIAccessibleStates::STATE_UNAVAILABLE;
cpNodeAccessible->GetFinalState(
&state,&Extstate );
if ( (nsIAccessibleStates::STATE_OFFSCREEN &
state ) )
{
ZEROCLASS( pRect );
hr = S_FALSE;
}
}
}
The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose it
to anyone else. If you received it in error please notify us immediately and
then destroy it.
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding