Hi,
I use all your actions, but when I click on button who open a new form all action are disable
How can I fixe it and keep it enable ?
Thanks
Disable action when open new TForm
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
I suggest the following
1) Use a single RVAControlPanel in your application. You can place it on a datamodule created before any forms.
In 13.4, RVAControlPanel properties simply changes values of global variables. So having several control panels may cause unexpected results.
2) Do not use RVAControlPanel.DefaultControl. Otherwise, all actions on all forms will work with the specified editor.
Instead, assign Control property of actions:
1) Use a single RVAControlPanel in your application. You can place it on a datamodule created before any forms.
In 13.4, RVAControlPanel properties simply changes values of global variables. So having several control panels may cause unexpected results.
2) Do not use RVAControlPanel.DefaultControl. Otherwise, all actions on all forms will work with the specified editor.
Instead, assign Control property of actions:
Code: Select all
for I := 0 to ActionManager1.ActionCount-1 do
if ActionManager1.Actions[I] is TrvAction then
TrvAction(ActionManager1.Actions[I]).Control := MyRichViewEdit;