Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Scrolling in Fifth Edidtion

1 replies · 2,098 views · Started 03 May 2009

hi all,

i've a problem when scrolling on a view which displays HTML file. my problem started when i tried to supported "EButton1Down" Event by implemmenting "HandlePointerEventL" function. before adding thi function the scroll bar appears correctly and it works too in all HTML views. but when i added this function "ButtonDown" action worked correctly but it affected in scroll bar in all views that reqiure scrolling.

i can't get why this behavior?

for more details. my "HandlePointerEventL" function is as follows:

void CTawafCounterContainer::HandlePointerEventL(const TPointerEvent& aPointerEvent)
{
TPoint position;
position = aPointerEvent.iPosition;

if(aPointerEvent.iType == TPointerEvent::EButton1Down )
if(aPointerEvent.iType == TPointerEvent::EDrag)
iBrCtlInterface->HandlePointerEventL(aPointerEvent);

if(aPointerEvent.iType == TPointerEvent::EButton1Down)
{
if(iTopLabelRect.Contains(position))
{
StartLKPTimer();
}
else
{
iBrCtlInterface->HandlePointerEventL(aPointerEvent);
iBrCtlInterface->DrawDeferred();
}
}
}

i added this function bcoz in the same view i need to handle user clicks on a certain position were when he clicks in (x,y) a counter will increase else i want to check if EButtonDown && EDrag then view scrollBar.

how to do that ?

thnx.