I have a problem with TAdvRichEditorFormatToolBar, when I use it in a form, that is used via a dll.
The background is, that I still have a project that is made with Delphi 2007 and that I have new modules, made in Delphi 10.2 and they are used via a dll.
Now I have a form in the dll which has a TrsAdvRichEditor and a connected TAdvRichEditorFormatToolBar on it. Both are created at design time. When I use this form in a small testprogram made with Delphi XE10.2 where I call the form directly everything works ok. When I use the form in a dll the buttons on the TAdvRichEditorFormatToolBar do nothing. For example the bold button shows the down state, when pressed, but it does not set the selected text to bold. The same for nearly every other button on the toolbar. The only thing that works is the color button. I can change the color of the font and the background.
I already dived into the source and found the TCustomAdvToolBar.AddButton method and there the action for the button is created according to the actionclass which is passed to the method. I found out, that it does create the action, but when the button is clicked, mit does not execute the TAdvRichEditorBold.ExecuteTarget method.
Another thing is, that the Fonts selector and the Font size selector are also empty, when the form is shown. They are not empty, when I use it directly, not via a dll.
Is there anything I have to do, to be able to use it in a dll?