How to move the screen up and down.

Login to reply to this topic.
Fri, 2005-09-09 12:21
Joined: 2005-08-19
Forum posts: 11
Hello. I would like to know how to move the screen up and down because I have a lot of texts to view. I just know that it should be in OfferKeyEventL();
Please help me...Thanks

Fri, 2005-09-09 15:08
Joined: 2005-03-14
Forum posts: 91
Re: How to move the screen up and down.
Lots of ways to do this, depending on exactly what you are aiming to achieve.
For instance, take a look at CEikEdwin::MoveDisplayL() to moving by pages / lines.

You might be better off, however, leaving it to the built-in widgets to sort out scrolling etc.

---
Kevin Dixon
Symsource Ltd.
www.symsource.com

Thu, 2005-11-24 02:54
Joined: 2005-11-16
Forum posts: 34
Re: How to move the screen up and down.
I know this is way too late to answer your question but this might help some newbies out there who's having the same problem with yours.

Here is the code:

Code:
TKeyResponse CRTF_XMLContainer::OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType )
{
switch(aKeyEvent.iCode) {
case EKeyUpArrow:{
iRtEd->MoveDisplayL(TCursorPosition::EFLineUp);
break;
}

case EKeyDownArrow:{
iRtEd->MoveDisplayL(TCursorPosition::EFLineDown);
break;
}

default: {
return iRtEd->OfferKeyEventL(aKeyEvent, aType);
break;
}
}

return EKeyWasNotConsumed;
}   

Chiao!
  • Login to reply to this topic.