trichview.com

trichview.support




Re: Correct way to do trvActions in code only


Return to index


Author

Message

Sergey Tkachenko

Posted: 08/24/2004 10:51:38


Menus are non necessary. You can create actions and call their

Execute/ExecuteTarget.

But I never tried to use actions without TActionList.

Why you do not want to use it? It's a nonvisual component, it's only a

collection of actions.

But if actions work without it, you can use them in this way.


You create actions, execute it and destroy immediately.

This will not work with all actions.

* some actions do not finish their work after calling Execute - it only

initializes some operations (all actions showing non-modal dialogs, like

colorpicker, find-replace actions)

* some actions maintain internal data (Save-action keeps track of opened

documents in different editors)

* some actions store previous user choices (insert-table stores dimensions,

file-related actions store filter index)



> Sergey Tkachenko wrote:

> > Sorry, I do not understand.

> > Do you want to apply paragraph properties using TrvActionParagraph

without

> > displaying its dialog?

> >

> No, sorry if I was unclear.

> I dont want to use a TActionList and I dont want any menus (TMenu).

> I just want to use the TrvActions functions by writing code.

> It seems to work but is it the right way to do ??





Powered by ABC Amber Outlook Express Converter