textinput/peninputcommonctrls/src/peninputdropdownlist/peninputlistonerowwithouticonwithbubble.cpp
branchRCL_3
changeset 7 6defe5d1bd39
parent 0 eb1f2e154e89
equal deleted inserted replaced
6:6ceef9a83b1a 7:6defe5d1bd39
   104             {
   104             {
   105             if(iClickedRect != candidate->GetRect())
   105             if(iClickedRect != candidate->GetRect())
   106                 {
   106                 {
   107                 iMoveLatestRect = iClickedRect;
   107                 iMoveLatestRect = iClickedRect;
   108                 iClickedRect.SetRect(candidate->GetRect().iTl, candidate->GetRect().Size());
   108                 iClickedRect.SetRect(candidate->GetRect().iTl, candidate->GetRect().Size());
       
   109                 
       
   110                 // Compare the two rect, then decide draw it or not
       
   111                 CompareRect(iMoveLatestRect, iClickedRect);               
       
   112                 
   109                 iOwner->ClearBubble();
   113                 iOwner->ClearBubble();
   110                 iOwner->DrawBubble(iClickedRect, candidate->GetCandidate());
   114                 iOwner->DrawBubble(iClickedRect, candidate->GetCandidate());
   111                 }
   115                 }
   112             }
   116             }
   113         else
   117         else
   114             {
   118             {
   115             iOwner->ClearBubble();
   119             iOwner->ClearBubble();
   116             
   120             
   117             iMoveLatestRect = iClickedRect;
   121             iMoveLatestRect = iClickedRect;
   118             iClickedRect = KEmptyRect;
   122             iClickedRect = KEmptyRect;
   119             }         
   123             
   120         
   124             // Compare the two rect, then decide draw it or not
   121         // Compare the two rect, then decide draw it or not
   125             CompareRect(iMoveLatestRect, iClickedRect);
   122         CompareRect(iMoveLatestRect, iClickedRect);
   126             }
   123         }
   127         }
   124     }
   128     }
   125 
   129 
   126 // -----------------------------------------------------------------------------
   130 // -----------------------------------------------------------------------------
   127 // CListOneRowWithoutIconWithBubble::HandlePointerUpL
   131 // CListOneRowWithoutIconWithBubble::HandlePointerUpL