OfferKeyEventL: if (aKeyEvent.iScanCode == EStdKeyRightArrow) ...
and again in draw function:
g.DrawRect(TRect(TPoint(20,20), TPoint(80,80) )) ; // erase old
g.DrawRect(TRect(TPoint(25,20), TPoint(85,80) )) ; // draw new
For it I need have public member
CWindowGc& gc;
But I can't set gc = SystemGc() inside the
void CCoeControl:raw(const TRect& aRect) const
What can I do with it ???? How usually pointer movement implemented?
basically you should do all of the drawing inside your Draw function, and in there you can get the gc and use it safely.
Basically to make it work you just define the point variables as member variables of your drawing class. Then in offer key you just chnage the values for them and call DrawNow(), then when the Draw function is executed, you just use the poit variables to determine the places to draw on your screen.