Jump to content
Developer Wiki and Function Reference Links ×

Changing font sends multiple events for selected plugin objects


Recommended Posts


we have a plugin object and register it for IObjUpdateSupportContext to receive object states. (context->AcceptState(myUniversalName);)
Selecting this plugin object and then changing the font, font-style or font-size sends three events for this plugin object: ObjectState::kObjectChangedReset then ObjectState::kObjectExternalReset and again ObjectState::kObjectChangedReset. We would expect only one event instead of three.
Is there any reason why this action sends three events or are we doing something wrong?

Link to comment

Typically they should follow a logically order of events.


kObjectExternalReset is called when an object reset is caused by another object.

I assume the first reset is yours. For some reason, an additional reset by something else in the background is causing the other events. Some actions can cause multiple events because sometimes we want to do something on a specific moment when an object is changing. It could be that modifying text does that.


I wouldn't worry to much about it unless you end up with unwanted behaviour.



Edited by Hippocode
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...