I am new to smart phone development. I am using Delphi Xe5 to create a test application I can port to Android and IPhone.
I have a FireMonkey Mobile Application in which I have a TlistBox on the main form. I want the user to select an item in the list and I then display some information based on their selection in another form.
I currently use the ListBox's OnClick event to do this
However, when testing on devices, it seems that I have to touch it more than once (almost like a double click with a mouse).
Am I suppose to be using some kind of touch event? Gestures?
If so, how would I get the index of the selected item?
Example OnClick event
procedure TfrmProjects.lbxProjectsClick(Sender: TObject);
begin
ShowMessage(IntToStr(lbxProjects.ItemIndex));
end;
EDIT:
I have looked at the GestureManager and tied it to the ListBox's Touch property Gesture Manager, but can't seem to find a simple OnTouch
Thanks
OnClickdoesn't usually fire until the mouse button is released? - Marcus Adams