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 4 of 4

MapPoint in OleContainer problem //BCB

This is a discussion on MapPoint in OleContainer problem //BCB within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hello, I've succeded in putting MP Map into OleContainer, but there are 2 problems: 1. when I resize the container ...

  1. #1
    tomek_tomek is offline Junior Member White Belt
    Join Date
    Aug 2005
    Posts
    2

    MapPoint in OleContainer problem //BCB

    Hello,
    I've succeded in putting MP Map into OleContainer, but there are 2 problems:
    1. when I resize the container the Map doesn't change its size. How to change it?
    2. is it possible to add toolbars (e.g. sizing and location)? I know how to make them visible/invisible in application, but in TOleContainer I have only a Map since OleContainers don't allow me to put TApp inside (or maybe I'm wrong, which will be fantastic!)
    please help me with it.
    Tomek

  2. #2
    Mohamed is offline Member Green Belt
    Join Date
    Mar 2005
    Posts
    97
    Hi,

    What's your progamming language?

    1.when I resize the container the Map doesn't change its size. How to change it?
    Uselly the container is a part of your windows, and your can manage to change its coordinates programmatically.
    Some other languages like mine does it automatically. Just look at the properties of your Container and see if there is no options concerning
    anchors.
    If you don't have anchor properties, I've seen somewhere that you have to resize your container as large as possible in the beginning?


    2. is it possible to add toolbars (e.g. sizing and location)? I know how to make them visible/invisible
    You can add Mappoint toolbars, after laoding Mappoint with these commands

    Code:
    MapPointControl1.Toolbars.Item(1).Visible  = True
    MapPointControl1.oolbars.Item(2).Visible   = True
    MapPointControl1.Toolbars.Item(3).Visible  = True
    MapPointControl1.Toolbars.Item(4).Visible  = True
    Welcome in the Mappoint forum. If you visit it sometimes, I am sure you will be a specialist in a couple of weeks.

  3. #3
    tomek_tomek is offline Junior Member White Belt
    Join Date
    Aug 2005
    Posts
    2
    Hello,
    thanks for your reply.

    My language is Borland C++ Builder 6.0

    When it comes to resizing my Cotainer there is no problem, but the problem starts when I'd like my Map inside the Container to resize as well. When I resize the container it cuts the map and disables the possibility of moving around the map (white arrows close to the borders)

    Your code example is unforunatelly well known to me. My problem is that I can either install ActiveX components such as: TMap, TApp and TMappointUtulities or TMappointUtilities and TMappointControl, but I can't use TMappointControl because such interface isn't supported (that's the message I get when I try to put it on the form). I know there were successful attempts to solving this in Delphi, but I still don't know how to do it in BCB.
    Regards
    Tomek

  4. #4
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    I know there were successful attempts to solving this in Delphi, but I still don't know how to do it in BCB.
    Regards
    Tomek
    It should be similar. Delphi and Biuilder come from the same spiritiual father (Borland), and there are only small syntax differences (Pascal / C). I have a Delphi component to drop on a form for Mappoint, should be useable in CBuilder also. It's not free, sorry !

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Borland C++ Builder : Using Mappoint over olecontainer
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 02-14-2005, 05:04 AM
  2. Mappoint in OleContainer problem //Delphi
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 6
    Last Post: 01-08-2005, 02:03 PM
  3. Delphi OleContainer Resize Problem.
    By Sheridan in forum MapPoint Desktop Discussion
    Replies: 5
    Last Post: 12-19-2003, 06:50 AM
  4. Delphi OleContainer problems
    By pafreshney in forum MapPoint Desktop Discussion
    Replies: 6
    Last Post: 09-15-2003, 02:50 PM
  5. ShowModal hides form with MP in olecontainer
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 05-13-2003, 11: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