diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-361BB951-DB74-4D83-ACFC-812383C8129C.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-361BB951-DB74-4D83-ACFC-812383C8129C.dita Wed Mar 31 11:11:55 2010 +0100 @@ -0,0 +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; + } + } + } +} +
+
+
+
\ No newline at end of file