trichview.com

trichview.support




Re: OnCaretMove & enable / disable buttons for tables


Return to index


Author

Message

Sergey Tkachenko

Posted: 02/12/2005 20:37:37


Currently, OnCaretMove is the best place to do it.

Yes, sometimes OnCaretMove is generated several times on one caret movement,

but it's not a problem here.


As for actions, they update their state (Enabled and Checked properties)

periodicaly when the application is idle.

You can create your own actions: add TAction in the ActionManager, and

assign this code to its OnUpdate event. You do not need to use

RichViewActions for this.

It's simple, but less efficient than using OnCaretMove. But you can see that

though the ActionTest demo has many actions, they do not cause performance

problems.





Powered by ABC Amber Outlook Express Converter