Any ways to implement OnFocusChanged method for RegionHolder or RegionEvaluable class

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

#1 已发布: 2023/9/25 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 已发布: 2023/9/25 14:32:35
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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 2023/9/25 14:33:00
  • 有新帖
  • 无新帖