Page 1 of 1

How to usethe component SRVToolbar?

Posted: Mon Jul 23, 2012 12:49 pm
by lexuv
How to use the component SRVToolbar? Where to write in an action from RichViewActions for a SRVToolbutton in it (I've defined the actions in ActionManager). Just in code when processing? If so what object model is used to do that? For example:

ActionToolbar1.ExecuteAction();

and what has to be in parenthesis?

SRVToolbar

Posted: Mon Jul 23, 2012 1:26 pm
by lexuv
I meant SRVToolbutton buttons. They don't have an action property to use.

Posted: Mon Jul 23, 2012 1:27 pm
by lexuv
Sorry: SRVToolBar buttons :-)

Posted: Mon Jul 23, 2012 6:34 pm
by Sergey Tkachenko
This is a very simple toolbar, it does not support actions.
When a button is clicked, toolbar.OnClickButton event occurs, where you can execute your code.
This toolbar is not too useful as a separate component. But it can be embedded in scrollbar areas of TSRichViewEdit, configured using TSRichViewEdit.MenuHorizontal and MenuVertical properties.