Ok, I'm trying to call my void COwnclassView::UserDraw() const method from my COwnclassUI.cpp via menu command with the following in the userdraw:
Nothing happens, what am I doing wrong?Code:void CAnimAppView::UserDraw() const { CWindowGc& gc = SystemGc(); TRect rect = Rect(); ActivateGc(); Draw(rect); gc.Clear(rect); const CFont* fontUsed = iEikonEnv->NormalFont(); gc.SetPenColor(KRgbBlack); gc.UseFont(fontUsed); _LIT(KWord, "Words"); gc.DrawText(KWords, TPoint(100,30)); DeactivateGc(); }
EDIT:
It seems that when I call this userdraw from my animate method which is used with active object running, it draws the content when the active object gets stopped. I tried to stop it from the menu command, and that works, but calling userdraw after it just does nothing!?!? What should I call or set in order to make it draw?

Reply With Quote

