Any ways to implement OnFocusChanged method for RegionHolder or RegionEvaluable class

Any ways to implement OnFocusChanged method for RegionHolder or RegionEvaluable class - Сообщения

#1 Опубликовано: 25.09.2023 13:14:52
muiz

muiz

15 сообщений из 22 понравились пользователям.

Группа: 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 Опубликовано: 25.09.2023 14:32:35
Davide Carpi

Davide Carpi

1416 сообщений из 2873 понравились пользователям.

Группа: 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 пользователям понравился этот пост
muiz 25.09.2023 14:33:00
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений