tomek_tomek
08-15-2005, 06:07 PM
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
Mohamed
08-16-2005, 04:39 AM
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
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.
tomek_tomek
08-16-2005, 04:51 AM
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
Wilfried
08-16-2005, 02:54 PM
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 !