Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: How can I scroll with tap when TPresentedScrollBox uses as Native


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Dec 5, 2015 2:48 AM Last Post By: Carlos Moreno
Carlos Moreno

Posts: 12
Registered: 1/30/05
How can I scroll with tap when TPresentedScrollBox uses as Native  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 4, 2015 9:35 AM
Hello,

I am trying to use TPresentedScrollBox with controltype platform for get smooth scrolling and avoid use TListBox.

If I placed Tedit and Tlabel with controltype = platform I can´t scroll by finger, only if touch TPresentedScrollBox directly.

Any ideas ?

Thank you

Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: How can I scroll with tap when TPresentedScrollBox uses as Native  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 5, 2015 1:44 AM   in response to: Carlos Moreno in response to: Carlos Moreno
Am 04.12.2015 um 18:35 schrieb Carlos Moreno:
Hello,

I am trying to use TPresentedScrollBox with controltype platform for get smooth scrolling and avoid use TListBox.

If I placed Tedit and Tlabel with controltype = platform I can´t scroll by finger, only if touch TPresentedScrollBox directly.

Any ideas ?

Thank you


Hello,

try what happens if you uncheck the HitTest property.
This controls whether the control receives taps/clicks or its parent.

Not sure if it's the right thing for the TEdit, but I'm quite sure it
will help for the TLabel.

Greetings

Markus
Carlos Moreno

Posts: 12
Registered: 1/30/05
Re: How can I scroll with tap when TPresentedScrollBox uses as Native  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 5, 2015 2:48 AM   in response to: Markus Humm in response to: Markus Humm
Hi Markus,

I have various Tlabel and TEdit in a TPresentedScrollBox, all components with controltype = platform

HitTest does not work when ControlType = platform by default hitTest of tlabel is false.

I don´t know if it is a bug or by design.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02