This runs the Geocoder JavaScript and communicates with the plugin via the C: drive file system (which is not allowed by HTML).
I want to embed the Geocoder (.hta) window within the plugin IUP GUI window.
I hope to do this using http://www.tecgraf.puc-rio.br/iup/ > Controls > Additional > IupOleControl and LuaCOM.
The example code for embedding a web page .html script in a GUI works fine:
Code: Select all
require 'iuplua'
require 'iupluaole'
require 'luacom'
local control=iup.olecontrol{'Shell.Explorer.1'} -- create WebBrowser using ProgID
control:CreateLuaCOM() -- connect it to LuaCOM
control.designmode='NO' -- Set production mode
local dlg=iup.dialog{ title='HTML in GUI', size='HALFxHALF', iup.vbox{control} }
dlg:show()
control.com:Navigate('C:\Users\Mike\Documents\example.html')
if (iup.MainLoopLevel()==0) then iup.MainLoop() end
Just changing the example.html file type to example.hta does not work (file content is unimportant as long as it is valid HTML).
I suspect the 'Shell.Explorer.1' ProgID also needs changing, but to what?
I have tried a few likely ProgID extracted from the Registry, but no luck.
The only thing I know is the program file is C:WindowsSystem32mshta.exe
This is not an area I am familiar with.
Have any experts out there got any ideas?
P.S.
I have used the above code to display the Help & Advice window in Map Life Facts and this revealed another limitation.
The dlg:show() command can be replaced by dlg:showxy() but not dlg:popup()!!!
Any idea why?
ID:5660