TRichViewEdit, Actions and ExpressBars
Posted: Thu Nov 08, 2007 7:32 am
Sergey,
I am replacing the standard toolbars in the RichView Actions demo with ExpressBars from DevExpress.
I assigned actions to all of the toolbar buttons and they are working. However, the buttons do not reflect the editor state. For example, when the Bold button is clicked, it does not stay depressed, and I cannot remove bold. All controls are enabled, even when some do not apply.
Also, I have this compiled as an ActiveX "application" and I used the code from a 2004 posting about DLL's to make sure my actions execute correctly. To make things more complex, my "editor" (toolbars and TRichViewEdit) is in a frame so I can place it in multiple forms.
Actions are still a mystery to me and I do not understand how they allow interaction between the controls and the editor so that the current state is reflected.
What am I missing?
I am replacing the standard toolbars in the RichView Actions demo with ExpressBars from DevExpress.
I assigned actions to all of the toolbar buttons and they are working. However, the buttons do not reflect the editor state. For example, when the Bold button is clicked, it does not stay depressed, and I cannot remove bold. All controls are enabled, even when some do not apply.
Also, I have this compiled as an ActiveX "application" and I used the code from a 2004 posting about DLL's to make sure my actions execute correctly. To make things more complex, my "editor" (toolbars and TRichViewEdit) is in a frame so I can place it in multiple forms.
Actions are still a mystery to me and I do not understand how they allow interaction between the controls and the editor so that the current state is reflected.
What am I missing?