Archive 17/01/2023.

UI button mouse problem

Kanfor

Hi, urhofans.

This is my code

It works fine, but if I don’t move the cursor mouse and I press the function PressHelpDown is call again. Why?
Is there a solution for this problem?

Thank you!

1vanK

after click on button, it still focused, so bunnon pressed again when you press space. it is tipycal behavior for UI (try same in Windows)
you can use SetFocusMode(FM_NOTFOCUSABLE)

Kanfor

Many thanks again! :wink: