cmmanager/cmmgr/Framework/Src/cmdlg.cpp
branchRCL_3
changeset 26 0a9e01492035
parent 24 c45d4fe2ff0a
child 36 04408506c6e0
equal deleted inserted replaced
24:c45d4fe2ff0a 26:0a9e01492035
   188     iListbox->HandleItemAdditionL();
   188     iListbox->HandleItemAdditionL();
   189     
   189     
   190     if ( iHighlight )
   190     if ( iHighlight )
   191         {
   191         {
   192         iListbox->ScrollToMakeItemVisible( iHighlight );
   192         iListbox->ScrollToMakeItemVisible( iHighlight );
   193         iListbox->SetCurrentItemIndexAndDraw( iHighlight );
   193         iListbox->SetCurrentItemIndex( iHighlight );
   194         }    
   194         }    
   195     }
   195     }
   196     
   196     
   197 // --------------------------------------------------------------------------
   197 // --------------------------------------------------------------------------
   198 // CCmDlg::DynInitMenuPaneL
   198 // CCmDlg::DynInitMenuPaneL
  1040         if (itemstemp < iListbox->Model()->NumberOfItems())
  1040         if (itemstemp < iListbox->Model()->NumberOfItems())
  1041             {
  1041             {
  1042             //first item cannot be deleted
  1042             //first item cannot be deleted
  1043             iListbox->ScrollToMakeItemVisible( 
  1043             iListbox->ScrollToMakeItemVisible( 
  1044                                     iListbox->Model()->NumberOfItems() -1 );
  1044                                     iListbox->Model()->NumberOfItems() -1 );
  1045             iListbox->SetCurrentItemIndexAndDraw( iHighlight );
  1045             iListbox->SetCurrentItemIndex( iHighlight );
  1046             }
  1046             }
  1047         }
  1047         }
  1048     }
  1048     }
  1049 
  1049 
  1050 // --------------------------------------------------------------------------
  1050 // --------------------------------------------------------------------------
  1683             selected = count - 1; // index, so --
  1683             selected = count - 1; // index, so --
  1684             }
  1684             }
  1685         if ( selected >= 0 )
  1685         if ( selected >= 0 )
  1686             {
  1686             {
  1687             iListbox->ScrollToMakeItemVisible( selected);
  1687             iListbox->ScrollToMakeItemVisible( selected);
       
  1688             iListbox->SetCurrentItemIndex( selected );
  1688             }
  1689             }
  1689         }
  1690         }
  1690     }
  1691     }
  1691     
  1692     
  1692 
  1693