equal
deleted
inserted
replaced
388 // CToolBar::UpdateCursorPosition() |
388 // CToolBar::UpdateCursorPosition() |
389 // Method to update cursor position |
389 // Method to update cursor position |
390 // ---------------------------------------------------------------------------- |
390 // ---------------------------------------------------------------------------- |
391 void CToolBar::UpdateCursorPosition() |
391 void CToolBar::UpdateCursorPosition() |
392 { |
392 { |
393 if (iButtonArray->Length() > 0 && iButtonArray->Length() >= iFocusedButtonIndex) { |
393 if (iButtonArray->Count() > iFocusedButtonIndex) { |
394 CToolBarButton* b = iButtonArray->At(iFocusedButtonIndex); |
394 CToolBarButton* b = iButtonArray->At(iFocusedButtonIndex); |
395 if (b) { |
395 if (b) { |
396 TPoint pt = iPosition + b->Position() + TPoint(b->Size().iWidth/2,b->Size().iHeight/2); |
396 TPoint pt = iPosition + b->Position() + TPoint(b->Size().iWidth/2,b->Size().iHeight/2); |
397 iCursorPosition = pt; |
397 iCursorPosition = pt; |
398 SelectableItemHighlighted(CanActivateButton()); |
398 SelectableItemHighlighted(CanActivateButton()); |
729 } |
729 } |
730 |
730 |
731 case EToolBarViewImages: |
731 case EToolBarViewImages: |
732 { |
732 { |
733 TRAP_IGNORE(iToolBarCallback->ViewImagesL()); |
733 TRAP_IGNORE(iToolBarCallback->ViewImagesL()); |
|
734 TRAP_IGNORE(iToolBarCallback->CloseToolBarL()); |
734 break; |
735 break; |
735 } |
736 } |
736 |
737 |
737 case EToolBarFindKeyword: |
738 case EToolBarFindKeyword: |
738 { |
739 { |