Platform: Lazarus 2.0.10 FPC 3.2.0, Windows Server 2016
Problem 1: I can see in my Package -> Install/Uninstall on the Left hand side, "Installed" list (labeled "Install" at the top), I can see LazActiveX 0.1 is listed. However, there is no ActiveX tab in my IDE, and there is no ActiveX component on any other tab (that I can see). Is there something I need to do to make the ActiveX tab visible in my IDE? Without this ActiveX tab and ActiveXContainer visual component, I have to create ActiveXContainer1 object in source code.
Problem 2: I'm working with an existing project, in the platform described above (with no ActiveX tab) that uses ActiveX. I can open the project, compile it, and it runs correctly. In the source code there is an ActiveX component being created. It's for QuickPDF; The source is:
uses ... activexcontainer, DebenuPDFLibrary64AX1013_10_13_TLB, ...
private
qpdfDCL: TAxcPDFLibrary;
FormCreate...
GV.QwkPdf.axl := qpdfDCL;
with GV.QwkPdf.axl.OleServer do
begin
... do stuff ... all works ...
end;
QuickPDF all works correctly. Now I have to incorporate an ActiveX component for Internet Explorer. I'm following the instructions here:
https://wiki.freepascal.org/LazActiveXand the example I am trying to follow is:
"Example: Internet Explorer in a form with event support."
I need to import ieframe.dll according to the instructions. I use Tools/ Import type Library, (then I don't know which tab to use, Visual Controls, or ActiveX References, so I chose ActiveX References).
This creates a unit file called SHDocVw_1_1_TLB.pas. However, my project already contains a unit by the same name, probably due to the QuickPDF ActiveX component being used elsewhere in the project. Now, when I try to save the project, I get a dialog that pops up, asking me if I want to force renaming. I'm reluctant to say "yes" because I have no idea if that is going to wreck my project and stop QuickPDF from working.
Questions Summary:
How can I get my ActiveX tab to appear in my Lazarus IDE?
What is the proper way to import ieframe.dll and not have to force the renaming of the existing file: SHDocVw_1_1_TLB.pas
I need to import ieframe.dll because I need the IEBrowser.ComServer.Navigate2 method in the TEvsWebBrowser type, and does not exist in the TAxcWebBrowser type.
Thanks in advance for any help you can provide.