MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




MapPoint in OleContainer problem //BCB

This is a discussion on MapPoint in OleContainer problem //BCB within the MapPoint 2006/2009 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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-15-2005
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 08-16-2005
Member
Green Belt
 
Join Date: Mar 2005
Posts: 96
Hi,

What's your progamming language?

Quote:
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?


Quote:
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.
__________________
Mohamed
www.AtlasCouscous.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 08-16-2005
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 08-16-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
Hi,

Quote:
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 !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
mappoint, olecontainer, or or bcb, problem


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Borland C++ Builder : Using Mappoint over olecontainer Anonymous MapPoint 2006/2009 Discussion 2 02-14-2005 05:04 AM
Mappoint in OleContainer problem //Delphi Anonymous MapPoint 2006/2009 Discussion 6 01-08-2005 02:03 PM
Delphi OleContainer Resize Problem. Sheridan MapPoint 2006/2009 Discussion 5 12-19-2003 06:50 AM
Delphi OleContainer problems pafreshney MapPoint 2006/2009 Discussion 6 09-15-2003 02:50 PM
ShowModal hides form with MP in olecontainer Anonymous MapPoint 2006/2009 Discussion 0 05-13-2003 11:50 AM


All times are GMT -5. The time now is 01:22 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


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