MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Mappoint and borland c++

This is a discussion on Mappoint and borland c++ within the Development forums, part of the MapPoint 2006/2009 Discussion category; Hello all, im new in this comunity, and all of you help me a lot with your posts. Im develop ...


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

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



Click here to register

Reply

 

LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 08-05-2008
Junior Member
White Belt
 
Join Date: Aug 2008
Posts: 4
Question Mappoint and borland c++

Hello all, im new in this comunity, and all of you help me a lot with your posts.

Im develop an application in Borland c++, and i have some problems with it.

1º When i have a main form with a map into an olecontainer, and i make a new form for load another map in another window, the active form(main or the new) is ever behind the other, and i cant execute form->FormStyle=fsStayOnTop with a mappoint loaded(form get froze).
Make new form work fine if i dont execute ole->DoVerb(1), but this is a must for mappoint.



2º How i can control the map with the scroll mouse??, at the begining the map can be zoom with the scroll but when i clock in a button of the form i lost the control and i need manage the zoom manually, with altitude. But when i click again in the map i lost the control if the trackbar and i need click on it for zoom with scroll.
(i try clock event in ole, for focus again in trackbar but not work)


PS: Sorry for my english, and thank all for your help

Last edited by simbi25; 08-05-2008 at 07:04 AM..
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-06-2008
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
Re: Mappoint and borland c++

Hi,

I'm not sure what is wrong with you have the form in behind, but you can eventually bring it to front after it is created, or when it is clicked or so. I mean programmatically.
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-06-2008
Junior Member
White Belt
 
Join Date: Aug 2008
Posts: 4
Re: Mappoint and borland c++

Thx for your response a lot:

I try all, for example:

void __fastcall TformularioMapa::FormActivate(TObject *Sender)
{

this->BringToFront();
mainForm->SendToBack();
}

dont work, when i click in the secundary form, it go front and inmediatly the main go front of all again :S.

Maybe if i control the mappoint event i could fix all, zoom map and window problem, but i was looking for mappoints events control in c++ and i dont find any code, all in delphy or VB.
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-06-2008
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
Re: Mappoint and borland c++

Hi,

I think you use CBuilder. Possible the OnActivate is too soon. I should suggest to post a message to a custom message handler where you activate the form. or bring the mainForm->SendToBack();; in a custom message handler. You can experiment a little

If you find code in Delphi you can easy translate it to C++. There is only little syntax differences if you study it carefully. You can post here and I can help eventually if some things look strange to you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 08-28-2008
Junior Member
White Belt
 
Join Date: Aug 2008
Posts: 4
Re: Mappoint and borland c++

I cant not solve the window problem :S, at this moment im focus in another way. When i have a bit of time i will make a small aplication for show all the problem.

Another question, anybody solve the zoom problem??
When i click in my application buttons i lost the control of the map and i can zoom with scroll mouse... SetFocus on olecontainer not work :S
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 09-05-2008
Junior Member
White Belt
 
Join Date: Aug 2008
Posts: 4
Re: Mappoint and borland c++

Quote:
Originally Posted by simbi25 View Post
I cant not solve the window problem :S, at this moment im focus in another way. When i have a bit of time i will make a small aplication for show all the problem.

Another question, anybody solve the zoom problem??
When i click in my application buttons i lost the control of the map and i can zoom with scroll mouse... SetFocus on olecontainer not work :S
Sorry for doble reply, but i cant edit the last post :P.

Finally i solve the zoom control with windows message queue...
I put in the form a trackbar that control the zoom, and with a mouse up event in mappoint i use this:

SendMessage(controlZoom->Handle, WM_ACTIVATE,WA_CLICKACTIVE,0);


controlZoom is the trackbar.

I will try solve the form problem with the same trick, i will edit this soon
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
borland, mappoint


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/mappoint-borland-c-8174.html

Posted By For Type Date
The Magazine for MapPoint - MP2K Magazine This thread Refback 08-05-2008 12:00 PM

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 04:04 AM
Borland C++ Builder and Pushpins Anonymous MapPoint 2006/2009 Discussion 0 04-05-2004 04:15 AM
Borland C++ Builder Pushpins Problem Anonymous MapPoint 2006/2009 Discussion 0 03-30-2004 06:48 AM


All times are GMT -5. The time now is 12:05 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Sharm El Sheikh Holiday
Enjoy the hot sun and fantastic beaches on your Sharm El Sheikh holiday! Check out the UlookUbook online offers...



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