PropertyChanged event -- does it do anything?

SyntaxEditor for Windows Forms Forum

Posted 20 years ago by Jeff Key
I need to know when certain properties like CanPaste, CanUndo, etc. change to reflect the state in my toolbar buttons and menus. I've tried subscribing to Document and UndoRedo PropertyChanged events and it looks like they are never fired. Should these be firing? If not, what can I do to be notified when they change?


Comments (2)

Posted 20 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Jeff,

CanPaste is re-examined on every call to it because the clipboard and/or selection could have changed. It is a semi-expensive call since it has to look at the clipboard and if it is a custom object it calls our CustomDataObject method to allow you to determine whether it can be pasted or not. I'm not sure the best place for you to look this up since we do not set any internal values, it is returned dynamically. You could refresh it in the SelectionChanged event.

The CanUndo you should update in the TextChanged event.

Actipro Software Support

Posted 20 years ago by Jeff Key
Thanks for the info.
The latest build of this product (v24.1.0) was released 4 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.