1. How do i insert a "carriage return" char into CEikEdwin?
i can insert a tab character ('\t'), but doesn't work on "carriage return" character('\n'). any idea?
2. I have the following two Class - CAppView (inherits CCoeControl, MCoeControlObserver)and CBoard (inherits CCoeControl, MCoeControlObserver).
CBoard implements the game board such as "checkers". For user movement, the arrows key is used. what i do is to trap the key event in the following code:
TKeyResponse CBoard::OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType)
iCurrentGrid++; // type TInt, to know which grid has the focus
// code of redraw the grid to reflect the new focused grid
// similar code goes here for up, down, and left arrow movement
the problem is whenever i press the arrows movement, the event is generated 3 times by the system. so it moves 3 grids for one key press. please help with this simple bugs. thanks =)