Any ways to implement OnFocusChanged method for RegionHolder or RegionEvaluable class

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

#1 Posted: 9/25/2023 1:14:52 PM
muiz

muiz

15 likes in 22 posts.

Group: 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 Posted: 9/25/2023 2:32:35 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: 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 users liked this post
muiz 9/25/2023 2:33:00 PM
  • New Posts New Posts
  • No New Posts No New Posts