Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
holgerflick
Posted - Jun 15 2020 : 22:07:45 I am currently evaluating ImageEn inside of Delphi 10.3. I am really amazed at the features and everything works nicely as long as I run the application from an exe file.
As soon as I call the VCL form with the controls inside a DLL, the interaction with the toolbars does not work anymore. I can call any operation and it works. However, when I select the operation like open, save, rotate, etc. from the toolbar TImageEnViewtoolbar or auto toolbar, nothing happens.
How can I get the toolbar functionality to work when the form is inside a DLL? I have no idea how a DLL is different from the from being inside an EXE, but I guess something gets lost when compiling into the VCL.
Thanks!
6 L A T E S T R E P L I E S (Newest First)
xequte
Posted - Mar 29 2021 : 19:32:58 Note: In v9.3.2 you can enable DLL support in code using:
// Support Toolbar usage In DLLs
IEGlobalSettings().EnableDLLMode := IsLibrary;
Posted - Jun 18 2020 : 10:01:18 Thank you. Please send me your test case so I can log a bug in Embarcadero's tracking system.
xequte
Posted - Jun 17 2020 : 21:26:46 Hi
This looks to be due to a VCL bug not supporting custom TActions (that implement ExecuteTarget/UpdateTarget) in DLLs.
I can confirm this by adding standard VCL actions, such as: TFileExit, TBrowseForFolder.
These work in an exe, but fail in a DLL.
I've created a workaround, that forces it to work in DLL's. In 9.1.1 or newer open ie.inc and enable the SupportToolbarInDLLs define. Then recompile your packages or ensure you are building your project from source.