Receiving the current editor from TAction.OnUpdate
Posted: Sat Dec 15, 2012 6:53 am
I need to get current editor either TRichViewEdit or TSRichViewEdit from TrvAction.OnUpdate event handler. As I understood http://www.trichview.com/help-actions/t ... ontrol.htm I should check in the next sequence:
1. TRVAControlPanel.DefaultControl
2. TrvAction.Control
3. focused control
4. first found editor component
What does mean ‘first found editor component’? Is this the first controls either TRichViewEdit or TSRichViewEdit which found by recursive iteration of all control of the form?
Is this algorithm correct? Does the implementation of this algorithm already exist, which I could use instead of writing my own?
1. TRVAControlPanel.DefaultControl
2. TrvAction.Control
3. focused control
4. first found editor component
What does mean ‘first found editor component’? Is this the first controls either TRichViewEdit or TSRichViewEdit which found by recursive iteration of all control of the form?
Is this algorithm correct? Does the implementation of this algorithm already exist, which I could use instead of writing my own?