Any ways to implement OnFocusChanged method for RegionHolder or RegionEvaluable class

Any ways to implement OnFocusChanged method for RegionHolder or RegionEvaluable class - Messaggi

#1 Pubblicato: 25/09/2023 13:14:52
muiz

muiz

15 apprezzamenti in 22 post.

Gruppo: User

Hello everyone,

I have a question regarding the custom region. I want to perform some changes when the custom region lost the focus from the user (like when the user click on the main canvas instead of the custom region). But so far that I understand from the SMath core documentation, there is no method that can deal with this event that I can override (like OnMouseDown or OnMouseMove). Is there any alternative to achieve this?

Best Regards,

Faiz
#2 Pubblicato: 25/09/2023 14:32:35
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: Moderator

Hi Faiz,

You can add an event handler to FocusChanged, also you can check the Focused property within the OnPaint method. F.E. both are used here, hope it helps.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 utenti hanno apprezzato questo post
muiz 25/09/2023 14:33:00
  • Nuovi post
  • Nessun nuovo post