TIEGlobalSettings.EnableDLLMode
Declaration
property EnableDLLMode: Boolean;
Description
Enable to allow ImageEn toolbars to be used in DLLs.
Due to a bug in the VCL buttons with custom TActions, Toolbars do not work in DLLs.
Note: You should set
EnableDLLMode before any toolbars are created. If this is not possible you will need to re-initialize the toolbar buttons, e.g. ImageEnViewToolbar1.InitializeButtons;
Default: False
procedure TMainForm.FormCreate(Sender: TObject);
begin
// Support Toolbar usage In DLLs
IEGlobalSettings().EnableDLLMode := IsLibrary;
// Reinitialize our buttons
ImageEnViewToolbar1.InitializeButtons;
end;