I want to set focus to a contro programatically based on some
data validation. For example inside 'OkToExitL()' I want to validate the data enterted on a form and set focus to a control that has invalid data. I have tried something like this :
CEikEdwin* myEdwin = STATIC_CAST(CEikEdwin*,ControlOrNull
What I observed is that the 'caret' is moving to my edit control but the focus indicator - black rectagle is not drawn and keyboard input is going to another control which had focus earlier.
Are there any additional APIs to call?