Skip to main content
Associate
March 27, 2025
Solved

radioButton & toggleButton work in centre of screen; not at sides

  • March 27, 2025
  • 3 replies
  • 2525 views

Hello,

I use tft screen with touch panel. All buttons react on the touch correct beside radioButton and toggleButton. I used "small version" of toggleButton and medium of radioButton. Screen 240x320. When both of that buttons are on the centrer of the screen it correct reacts to touch. When that buttons are on the left or on the right of screen they not react on the touch. I am sure that touch screen library works correct. Reading of touching coordinates works very well and the measurement is accurate. It looks more like the error lies more with TouchGFX.

Best answer by unsigned_char_array

@Jarwu wrote:

 If you had documented everything better I would probably have solved the problem myself.


I don't work for ST. I'm just a user of TouchGFX. So I haven't written any of their documentation.

Can you share your project? I don't know the coordinates of the buttons.

3 replies

Lead II
March 27, 2025

Can you print the touch coordinates on the screen and create a video of this effect?

"Kudo posts if you have the same problem and kudo replies if the solution works.Click ""Accept as Solution"" if a reply solved your problem. If no solution was posted please answer with your own."
JarwuAuthor
Associate
March 27, 2025

printscr1 - not works

printscr2 - not works

printscr3 - WORKS

 

When works it react to touch more on the right side.

The algorithm verifying the touch and release field coordinates for these buttons requires further refinement.

Lead II
March 27, 2025

This doesn't look like a photo of the screen, but a screenshot from the simulator.
It doesn't work in the simulator either?

"Kudo posts if you have the same problem and kudo replies if the solution works.Click ""Accept as Solution"" if a reply solved your problem. If no solution was posted please answer with your own."
GaetanGodart
Technical Moderator
March 27, 2025

Hello @Jarwu ,

 

Can you share your full project (even if the issue happens on hardware only)?

What hardware do you use? Is it custom or is it a TBS from TouchGFX Designer?

How did you test the touch coordinates? You say they work very well, how did you make sure of that?

Is there anything else that I should know about your project to be able to help you best?

 

Regards,

JarwuAuthor
Associate
March 27, 2025

Hello,

 

It is custom on BlackPill. I am sure of correct reading of coordinates which are set in STM32TouchController::sampleTouch(int32_t& x, int32_t& y)

That coordinates are visible on the screen. It is also set by wildcard in textArea. In attached pictures you have view of right,top and left bottom.

Please try understand my point of view. I tested all possibilities which was on my side before I have sent this post today.

What I don't know is how the TouchGFX algorithm defines the touch field for a given component and then checks it. From my side, it looks like there's a bug somewhere.

Lead II
March 27, 2025

I don't see a finger on the screen. How is it registering touch if no finger is on the screen?

"Kudo posts if you have the same problem and kudo replies if the solution works.Click ""Accept as Solution"" if a reply solved your problem. If no solution was posted please answer with your own."
JarwuAuthor
Associate
March 31, 2025

I didn't know you didn't represent ST. The ST representative also joined the discussion.

I solved the problem myself and it was on the side of the touch screen library, not touch gfx.

I appreciate your sincere willingness to help and I thank you very much for that. Best regards.

Andrew Neil
Super User
March 31, 2025

@Jarwu wrote:

I didn't know you didn't represent ST. The ST representative also joined the discussion.


All ST employees are identified by having "ST Employee" under their name:

AndrewNeil_0-1743416427259.png

 

Anyone that does not have "ST Employee" is not an ST employee.

https://community.st.com/t5/community-guidelines/st-community-welcome-guide/ta-p/575223#:~:text=Their%20online%20profiles%20feature%20the%20word%20%E2%80%9CST%20employee%E2%80%9D%20next%20to%20their%20names

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.