Any ways to implement OnFocusChanged method for RegionHolder or RegionEvaluable class

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

#1 Publicado: 25/9/2023 13:14:52
muiz

muiz

15 me gusta en 22 mensajes.

Grupo: 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 Publicado: 25/9/2023 14:32:35
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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
A 1 usuarios les gustó este mensaje
muiz 25/9/2023 14:33:00
  • Nuevos mensajes
  • Sin mensajes nuevos