No offence, but I think you perhaps will get better answers if you are more detailed in your questions and add more context. I have to admit I have problems understanding what you are asking.
Really sorry about this post, and I was leaving home and do not have time to write more. The problem is this, I have a listview that clicking performs an action, I would like when the user longclick one that I would call another Form with some additional information about the customer. and again sorry for my english via google translator.
(I'll describe how it works in VCL and you can use the same approach for other platforms). The right approach would be to create a descendant of TListView (or other listview class), then intercept button down and button up. When ButtonDown happens, you start the timer. If ButtonUp or MouseMove happens, you stop the timer. If the timer ticks, you stop it and fire you LongClick event.
No offence, but I think you perhaps will get better answers if you are more detailed in your questions and add more context. I have to admit I have problems understanding what you are asking.
ReplyDeleteReally sorry about this post, and I was leaving home and do not have time to write more.
ReplyDeleteThe problem is this, I have a listview that clicking performs an action, I would like when the user longclick one that I would call another Form with some additional information about the customer.
and again sorry for my english via google translator.
longclick is drag?
ReplyDeleteI only know click, double click and right click.
I know, I'm talking to the API of android such function
ReplyDeletehttp://developer.android.com/reference/android/view/View.OnLongClickListener.html
Ah! Now you are making sense!
ReplyDeleteUnfortunately, I have no clue!
:-) Thanks
ReplyDeleteHi Andre,
ReplyDeleteas i know where is no onLongClick event in XE5
Thanks ivane
ReplyDelete(I'll describe how it works in VCL and you can use the same approach for other platforms). The right approach would be to create a descendant of TListView (or other listview class), then intercept button down and button up. When ButtonDown happens, you start the timer. If ButtonUp or MouseMove happens, you stop the timer. If the timer ticks, you stop it and fire you LongClick event.
ReplyDeleteAndré Faria If ListView in FMX, you can use GestureManager, which can determinate a lot of kind of gesture.
ReplyDeleteAndré Faria A link on Documentation: http://docwiki.embarcadero.com/RADStudio/XE5/en/Gestures_in_FireMonkey
ReplyDeleteAlso look at useful links below of page
Thanks eugene great idea !
ReplyDelete