Multiple forms with richviewactions

General TRichView support forum. Please post your questions here
Post Reply
remixtech
Posts: 49
Joined: Mon Jun 18, 2007 3:53 pm

Multiple forms with richviewactions

Post by remixtech »

Hello,

I have a problem with my multiple forms application...
I have three forms open and when i click on bold on one application ? All application button bold are pressed ...

Is it possible to press only the button of the activate form ?

THanks a lot
bye
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Assign RichViewEdit to Control property of all richviewactions on the same form.
remixtech
Posts: 49
Joined: Mon Jun 18, 2007 3:53 pm

Post by remixtech »

I have only one richviewaction on the principal form ..
The problem is visual, when i click on the bold button on one form, all other "bold" buttons are pressed on the other forms...

Thanks for your answer

PS : Ihave probably dont understand your answer could you repeat ?
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

If you have only one copy of some action linked to several buttons, all these buttons will reflect changes in this action. I.e. all these buttons will be checked and disabled simultaneously.
remixtech
Posts: 49
Joined: Mon Jun 18, 2007 3:53 pm

Post by remixtech »

There is no solution possible ? I could allocate only action on the activated form?
Thanks
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Yes, you need to create copies of actions on each form.
Or you can reconsider your application's GUI. The most of modern applications use only one copy of toolbar for multiple forms (using tabs or MDI)
remixtech
Posts: 49
Joined: Mon Jun 18, 2007 3:53 pm

Post by remixtech »

thanks
zanozi
Posts: 3
Joined: Mon Mar 03, 2014 8:53 pm

Post by zanozi »

I have the same problem,

Code: Select all

Yes, you need to create copies of actions on each form. 
Can you write an example for Bold action ?
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I can explain how to implement multiple forms with actions, if you have problems implementing it, I can make an example.

1. Each form must have TRichViewEdit, TActionList containing actions, toolbar linked with these actions.
2. Assign this RichViewEdit to Control property of all actions on this form.
3. The following components may be common for all these forms: TImageList containing images for tool buttons; TRVAControlPanel; they can be placed on a datamodule that must be created before editing forms.
Post Reply