diff -r 51a74ef9ed63 -r ae94777fff8f Symbian3/SDK/Source/GUID-361BB951-DB74-4D83-ACFC-812383C8129C.dita --- a/Symbian3/SDK/Source/GUID-361BB951-DB74-4D83-ACFC-812383C8129C.dita Wed Mar 31 11:11:55 2010 +0100 +++ b/Symbian3/SDK/Source/GUID-361BB951-DB74-4D83-ACFC-812383C8129C.dita Fri Jun 11 12:39:03 2010 +0100 @@ -1,45 +1,45 @@ - - - - - -Activating -items in a listThis document describes the code changes required to activate items -in a list on single-tap. - -Replace the EEventItemDoubleClicked event -with EEventItemSingleClicked. Remove the EEventItemClicked processing -code if any. -

The following code snippet illustrates the changes to the event -handling code of a File Browser application.

// ---------------------------------------------------------------------------- -// CFileBrowseBaseView::HandleListBoxEventL -// -// If single-tap is enabled, the touch related events must be handled here -// ---------------------------------------------------------------------------- -// -void CFileBrowseBaseView::HandleListBoxEventL(CEikListBox* /*aListBox*/, TListBoxEvent aEventType) - { - if(AknLayoutUtils::PenEnabled()) - { - switch (aEventType) - { - //case EEventItemDoubleClicked: ----- Remove this code-------------- - case EEventItemSingleClicked: //------- Include this new event for item activation--- - { - NavigateL(iListBox->CurrentItemIndex()); // user defined function for navigating to the selected folder - OpenFolderL(); // user defined function for opening the selected folder - break; - } - } - } -} -
-
-
+ + + + + +Activating +items in a listThis document describes the code changes required to activate items +in a list on single-tap. + +Replace the EEventItemDoubleClicked event +with EEventItemSingleClicked. Remove the EEventItemClicked processing +code if any. +

The following code snippet illustrates the changes to the event +handling code of a File Browser application.

// ---------------------------------------------------------------------------- +// CFileBrowseBaseView::HandleListBoxEventL +// +// If single-tap is enabled, the touch related events must be handled here +// ---------------------------------------------------------------------------- +// +void CFileBrowseBaseView::HandleListBoxEventL(CEikListBox* /*aListBox*/, TListBoxEvent aEventType) + { + if(AknLayoutUtils::PenEnabled()) + { + switch (aEventType) + { + //case EEventItemDoubleClicked: ----- Remove this code-------------- + case EEventItemSingleClicked: //------- Include this new event for item activation--- + { + NavigateL(iListBox->CurrentItemIndex()); // user defined function for navigating to the selected folder + OpenFolderL(); // user defined function for opening the selected folder + break; + } + } + } +} +
+
+
\ No newline at end of file