Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 2 of 2

MP in Delphi TOleContainer

This is a discussion on MP in Delphi TOleContainer within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, I use MP2006 in D2006 via TOleContainer. The mainform hosts 2 TPanels, on of them is the parent of ...

  1. #1
    Gerhard Faber is offline Junior Member Yellow Belt
    Join Date
    Jan 2006
    Posts
    13

    MP in Delphi TOleContainer

    Hi,

    I use MP2006 in D2006 via TOleContainer. The mainform hosts 2 TPanels, on of them is the parent of the OleContainer, the other hosts a TMemo.
    The application work fine until I click into the TMemo. Then MP-menus and toolbars disappear and every window (TForm.ShowModal, ShowMessage) is shown behind the mainform.

    // MP class
    constructor TMapPoint.Create(AOwner: TComponent;ParentControl:TWinControl);
    var vGuid: TGuid;
    begin
    OleContainer1:=TOleContainer.create(aowner);
    OleContainer1.Width:=ParentControl.Width;
    OleContainer1.Height:=ParentControl.height;
    OleContainer1.Parent:=ParentControl;
    OleContainer1.CreateObject('MapPoint.Map.EU.11',Fa lse);
    OleContainer1.DoVerb(1);
    OleContainer1.OleObjectInterface.GetUserClassID(vG uid);
    OleContainer1.Align := alClient;
    FMap:= IDispatch(OleContainer1.OleObject) as map;
    end;

    // Form
    procedure Tfo_MPTest.FormShow(Sender: TObject);
    begin
    mp := TMapPoint.Create(self, panel1);
    end;

    regards
    Gerhard

  2. #2
    digitstudios is offline Junior Member White Belt
    Join Date
    Nov 2006
    Posts
    5

    Re: MP in Delphi TOleContainer

    I have the same problem.
    I Using Delphi 6 on XP machine, but the problem appears on Vista, Win2003 server or some version of XP Pro.

    Please help!!!!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Using MP2004 with Delphi
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 13
    Last Post: 03-02-2005, 08:50 AM
  2. Web service with delphi
    By Anonymous in forum Bing Maps and MapPoint Web Service
    Replies: 1
    Last Post: 11-10-2004, 09:43 AM
  3. Delphi
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 12-18-2003, 12:11 PM
  4. Mappoint With Delphi 5
    By stuarth in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-08-2003, 11:21 AM
  5. How to use MouseEvents with Delphi in an TOleContainer ?
    By rbarthels in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 01-14-2003, 02:50 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96