Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
anilsisodiya
Posts: 193
Registered: ‎04-27-2009
My Device: Not Specified

Touch Event Field

How can we know on which field touch event generated.

Developer
rcmaniac25
Posts: 1,805
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.997 Dev OS, Z30 (STA100-5)-10.3.1.997 Dev OS, Passport (SQW100-1)-10.3.0.1418, PlayBook (16GB)-2.1.0.1917

Re: Touch Event Field

What do you mean? From an general application do you want to know which field gets the touch event or from a field do you want to know if it was touched? Or is it something different?

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Developer
anilsisodiya
Posts: 193
Registered: ‎04-27-2009
My Device: Not Specified

Re: Touch Event Field


rcmaniac25 wrote:

What do you mean? From an general application do you want to know which field gets the touch event or from a field do you want to know if it was touched? Or is it something different?


 

I want to know "whether a particular field touched or not so that i can do specific action for that field "

Developer
rcmaniac25
Posts: 1,805
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.997 Dev OS, Z30 (STA100-5)-10.3.1.997 Dev OS, Passport (SQW100-1)-10.3.0.1418, PlayBook (16GB)-2.1.0.1917

Re: Touch Event Field

[ Edited ]

You override the touchEvent function in the fields you want to use.

 

You can then either change something in that field only or call some "global" function to tell it which field was touched and then do whatever global action you want.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.