Recent

Author Topic: [LAMW] jPanel OnTouchUp event?  (Read 2091 times)

Segator

  • Full Member
  • ***
  • Posts: 168
    • https://github.com/Nenirey
[LAMW] jPanel OnTouchUp event?
« on: December 30, 2020, 04:06:43 pm »
Hi all, @jmpessoa can you add the OnTouchUp event to the jPanel component?, actualy i simulate it with a timer  :D, thanks.
i am Reinier, Nenirey and Segator :) https://github.com/Nenirey

jmpessoa

  • Hero Member
  • *****
  • Posts: 2330
Re: [LAMW] jPanel OnTouchUp event?
« Reply #1 on: December 30, 2020, 05:59:59 pm »
Ok. I will try!

Edited:

Done!!!
(need tests!)
« Last Edit: December 30, 2020, 08:10:53 pm by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Segator

  • Full Member
  • ***
  • Posts: 168
    • https://github.com/Nenirey
Re: [LAMW] jPanel OnTouchUp event?
« Reply #2 on: December 31, 2020, 04:06:56 pm »
Thank's a lot @jmpessoa and happy new year!!!
i am Reinier, Nenirey and Segator :) https://github.com/Nenirey

Segator

  • Full Member
  • ***
  • Posts: 168
    • https://github.com/Nenirey
Re: [LAMW] jPanel OnTouchUp event?
« Reply #3 on: January 04, 2021, 04:59:28 pm »
i test the OnUp event and work in normal way like simple down and up touch, but i use the panel in a WindowManager floating window and i have to capture the up event when the user stop moving the floating window and up then finger, in thats condition the event is not capture, when you make a down and then drag the up event is not capture.
i am Reinier, Nenirey and Segator :) https://github.com/Nenirey

jmpessoa

  • Hero Member
  • *****
  • Posts: 2330
Re: [LAMW] jPanel OnTouchUp event?
« Reply #4 on: January 04, 2021, 06:23:20 pm »
Quote
when you make a down...

1) Can you capture a down event?

hint:  try

Code: Pascal  [Select][+][-]
  1. ShowMessage('down');

2) Please,  teste using a  WindowManager  "demo" as a reference...
 
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Segator

  • Full Member
  • ***
  • Posts: 168
    • https://github.com/Nenirey
Re: [LAMW] jPanel OnTouchUp event?
« Reply #5 on: January 04, 2021, 09:56:14 pm »
if you make a simple click and up on the panel the event is capturing, the problem is when you make a touchdown and drag the window before up you finger because the up event is not triggered.
i am Reinier, Nenirey and Segator :) https://github.com/Nenirey

jmpessoa

  • Hero Member
  • *****
  • Posts: 2330
Re: [LAMW] jPanel OnTouchUp event?
« Reply #6 on: January 04, 2021, 10:21:58 pm »
Quote
because the up event is not triggered.

Ok. but, is the event "down" triggered  when you "touchdown"?
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Segator

  • Full Member
  • ***
  • Posts: 168
    • https://github.com/Nenirey
Re: [LAMW] jPanel OnTouchUp event?
« Reply #7 on: January 05, 2021, 12:29:26 am »
Quote
Ok. but, is the event "down" triggered  when you "touchdown"?

yes because this event is before the drag action, but the up event can be after so if drag or draw before the event is not capture.
i am Reinier, Nenirey and Segator :) https://github.com/Nenirey

Segator

  • Full Member
  • ***
  • Posts: 168
    • https://github.com/Nenirey
Re: [LAMW] jPanel OnTouchUp event?
« Reply #8 on: January 09, 2021, 04:28:12 pm »
am go to create a funcional nettraffic floating bubble demo to demonstrate the issue.
i am Reinier, Nenirey and Segator :) https://github.com/Nenirey

 

TinyPortal © 2005-2018