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
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.
Forum posts: 91
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
Forum posts: 34
Here is the code:
{
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!