MapInfo Pro

Expand all | Collapse all

MapInfo x64 Integrated With Delphi

  • 1.  MapInfo x64 Integrated With Delphi

    Posted 03-14-2019 05:33
    Edited by Alexander Novikov 03-14-2019 06:15
    Hello, everybody.
    I have an application in delphi that uses Mapinfo x32 that works perfectly. Try to move on MapInfox64 start the MapInfo object.Application.x64 remap the hwnd form and try to open the set 'Set Next Document Parent hwnd Style 1' -> 'Run Application MyWorkSpace.Wor ' and in summary the app hangs and collapses the link between Delphi and Mapinfo. If open tables on one the works well. Please tell me how to cause the working set to the integrated map With Delphi.  I found no examples in MapBasic.


    ------------------------------
    Alexander Novikov
    Knowledge Community Shared Account
    ------------------------------


  • 2.  RE: MapInfo x64 Integrated With Delphi

    Employee
    Posted 03-14-2019 09:39
    Hi Alexander,

    The Set Next Document Parent HWND MapBasic statement is no longer supported for re-parenting in MapInfo Pro 64-bit.

    It has to be done differently.

    Please take a look into the sample: SAMPLES\RIBBONINTERFACE\DotNet\UnattachedWindow Sample

    For new integrated mapping approach look into the following samples:
    SAMPLES\DOTNET\IntegratedMappingWinForms
    SAMPLES\DOTNET\IntegratedMappingWpf

    Regards,
    Andrei

    ------------------------------
    Andrei Veselov
    PITNEY BOWES SOFTWARE, INC
    Troy NY
    ------------------------------



  • 3.  RE: MapInfo x64 Integrated With Delphi

    Posted 03-14-2019 13:56
    Well, I Run SAMPLE UnattachedWindow.mb in MapInfo its work. But in delphi i have problem
    "The mode is not set or is not set correctly. Unhandled exception (ArgumentNullException): value cannot be undefined" in line 46 mapinfoApplication = SYSTEMINFO. In Delphi Calling command "OleMapInfo. do ('Run Application ".\Samples\RIBBONINTERFACE\DotNet\UnattachedWindow\bin\Debug\UnattachedWindow.mbx" ") . OleMapInfo: Variant var. Please tell me how to get this object.

    ------------------------------
    Alexander Novikov
    Knowledge Community Shared Account
    ------------------------------



  • 4.  RE: MapInfo x64 Integrated With Delphi

    Employee
    Posted 03-19-2019 07:15

    Hello Alexander,

    UnattachedWindow.mbx is an MapInfo Pro addin sample for re-parenting a document window into an addin control. This sample will not run in an integrated mapping application using Do, method.

    For trying out this sample, you would have to run it in MapInfo Pro 64 bit version.

    Thanks

    Anshul



    ------------------------------
    Anshul Goel
    Knowledge Community Shared Account
    Shelton CT
    ------------------------------



  • 5.  RE: MapInfo x64 Integrated With Delphi

    Posted 01-15-2020 08:44

    Hello

    Did you manage to run MapInfo x64 in Delphi (x32)?
    Could you share some code?

    Thanks
    Roman



    ------------------------------
    Roman Kaderli
    Senior Software Engineer
    SwissQual AG
    Zuchwil
    ------------------------------



  • 6.  RE: MapInfo x64 Integrated With Delphi

    Employee
    Posted 01-23-2020 09:30
    Hi Alexander,

    We are looking into making 'set next document parent' work again for the Map Window.
    I assume it is the map window you are reparenting? Are you using any other windows?
    Do you use the modal layer control dialog?
    Lastly, would you be interested in trying out a private build with this enabled?

    -Bob

    ------------------------------
    Bob Fortin
    Software Architect and Distinguished Engineer
    MapInfo Pro Development Team
    ------------------------------



  • 7.  RE: MapInfo x64 Integrated With Delphi

    Posted 02-05-2020 04:04
    Hi Bob
    I use mainly the map window. However the layer control is also used when right clicking on the reparented map window and selecting "Layer Control...".
    A build with enabled "set next document" feature would be great!

    Br
    Roman

    ------------------------------
    Roman Kaderli
    Senior Software Engineer
    SwissQual AG
    Zuchwil
    ------------------------------



  • 8.  RE: MapInfo x64 Integrated With Delphi

    Employee
    Posted 03-03-2020 16:47
    We have been able to get this feature working and it will be included in 2019.1. If you would like to try it out earlier, contact @Andrei Veselov to get a private build.​

    ------------------------------
    Bob Fortin
    Software Architect and Distinguished Engineer
    MapInfo Pro Development Team
    ------------------------------