uifw/ganes/src/HgGrid.cpp
branchRCL_3
changeset 10 9f56a4e1b8ab
parent 9 aabf2c525e0f
child 16 71dd06cfe933
equal deleted inserted replaced
9:aabf2c525e0f 10:9f56a4e1b8ab
   671 // -----------------------------------------------------------------------------
   671 // -----------------------------------------------------------------------------
   672 //
   672 //
   673 void CHgGrid::SelectDefaultItem()
   673 void CHgGrid::SelectDefaultItem()
   674     {
   674     {
   675     iSelectedIndex = CurrentIndex();
   675     iSelectedIndex = CurrentIndex();
   676     FitSelectionToView();
   676     if( iSelectedIndex >= 0 && iSelectedIndex < iItems.Count() )
   677     DrawDeferred();
   677         {
       
   678         FitSelectionToView();
       
   679         DrawDeferred();
       
   680         }
   678     }
   681     }
   679 
   682 
   680 // -----------------------------------------------------------------------------
   683 // -----------------------------------------------------------------------------
   681 // CHgGrid::CurrentIndex()
   684 // CHgGrid::CurrentIndex()
   682 // -----------------------------------------------------------------------------
   685 // -----------------------------------------------------------------------------
   758 EXPORT_C void CHgGrid::SetLandscapeScrollingSupport( TBool aSupportLandscapeScrolling )
   761 EXPORT_C void CHgGrid::SetLandscapeScrollingSupport( TBool aSupportLandscapeScrolling )
   759     {
   762     {
   760     iLandScapeScrollingSupported = aSupportLandscapeScrolling;
   763     iLandScapeScrollingSupported = aSupportLandscapeScrolling;
   761     }
   764     }
   762 
   765 
       
   766 // -----------------------------------------------------------------------------
       
   767 // CHgGrid::ChangeSelectedIndex()
       
   768 // -----------------------------------------------------------------------------
       
   769 //
   763 void CHgGrid::ChangeSelectedIndex( TInt aMove )
   770 void CHgGrid::ChangeSelectedIndex( TInt aMove )
   764     {
   771     {
   765     TInt nextIndex = 0;
   772     TInt nextIndex = 0;
   766     if( iSelectedIndex + aMove > iItems.Count() - 1 )
   773     if( iSelectedIndex + aMove > iItems.Count() - 1 )
   767         {
   774         {
   790         }
   797         }
   791     
   798     
   792     iSelectedIndex = nextIndex;
   799     iSelectedIndex = nextIndex;
   793     }
   800     }
   794 
   801 
       
   802 // -----------------------------------------------------------------------------
       
   803 // CHgGrid::HandleScrollbarVisibilityChange()
       
   804 // -----------------------------------------------------------------------------
       
   805 //
       
   806 void CHgGrid::HandleScrollbarVisibilityChange( TBool /*aVisible*/ )
       
   807     {
       
   808     
       
   809     }
       
   810 
   795 // End of File
   811 // End of File