Community of MapPoint and Virtual Earth Users and Developers
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 ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| 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.. |
| |||
| 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.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| 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. |
| |||
| 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.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| 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 |
| |||
| Re: Mappoint and borland c++ Quote:
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 |
![]() |
| Tags |
| borland, mappoint |
| ||||
| 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 | |
| |
| ||||
| 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 |
Sharm El Sheikh Holiday
Enjoy the hot sun and fantastic beaches on your Sharm El Sheikh holiday! Check out the UlookUbook online offers...