MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




MapPoint and window zorder

This is a discussion on MapPoint and window zorder within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, I'm using the mappoint control object in VB6 and in delphi but everytime I set a map by calling ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  3 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 03-10-2008
Junior Member
White Belt
 
Join Date: Mar 2008
Posts: 1
MapPoint and window zorder

Hi, I'm using the mappoint control object in VB6 and in delphi but everytime I set a map by calling NewMap, the other forms in my application goes behind the other windows instead of coming to the front. The mappoint object in both compilers do the same thing. Calling CloseMap makes my windows act normal again.

I've found that this only happens on WinXP if you enable Extended support for advance text services. (Control Panel -> Regional and Language options -> Languages -> Details -> Advanced.

Whenever I watch my list of windows (by zorder) I see a bunch of "Default IME" (one was for my application) and calling NewMap creates another instance of "Default IME" in my application and sends my forms between the two and mixes up the zorder.

Modal windows go behind the form that called it and is causing problems.
WinXP had a workaround by disabling extended support for advance text services but Vista always has this on.

I was just wondering if anybody else ran into this and knew of a fix.
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 05-14-2008
Junior Member
White Belt
 
Join Date: Dec 2003
Posts: 6
Re: MapPoint and window zorder

Hi,

I'm suffering a similar situation with my app. Time to time when I call NewMap is opening in an external window, instead of being embeded on my application. Using VS 2003 I never had this problem, but now with VS2005 it's happening randomly. I don't know how to solve it by now.

I'll keep you informed if I find the solution.

Cheers,

Julio
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 06-26-2008
Junior Member
White Belt
 
Join Date: May 2007
Posts: 3
Re: MapPoint and window zorder

Did you ever find a workaround? I'm having the same problem in Vista.

Quote:
Originally Posted by reinier View Post
Hi, I'm using the mappoint control object in VB6 and in delphi but everytime I set a map by calling NewMap, the other forms in my application goes behind the other windows instead of coming to the front. The mappoint object in both compilers do the same thing. Calling CloseMap makes my windows act normal again.

I've found that this only happens on WinXP if you enable Extended support for advance text services. (Control Panel -> Regional and Language options -> Languages -> Details -> Advanced.

Whenever I watch my list of windows (by zorder) I see a bunch of "Default IME" (one was for my application) and calling NewMap creates another instance of "Default IME" in my application and sends my forms between the two and mixes up the zorder.

Modal windows go behind the form that called it and is causing problems.
WinXP had a workaround by disabling extended support for advance text services but Vista always has this on.

I was just wondering if anybody else ran into this and knew of a fix.
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 06-27-2008
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,055
Re: MapPoint and window zorder

Hi,

I had this once years ago (also in Delphi) and it was because somewhere in the appliction a windows handle was overwritten by another. Difficult to find as this gives never an error (of course).
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 06-27-2008
Junior Member
White Belt
 
Join Date: May 2007
Posts: 3
Re: MapPoint and window zorder

Thanks. I ended up doing this on my ShowModal forms, which were the forms that kept getting stuck behind the window after I launched MapPoint embedded in my app.

1. Create the form in code - not automatically.
MyModalForm:=TMyModalForm.Create(Calling Owner Form);

2. Before the ShowModal statement, do:

PopupMode:=pmExplicit;
PopupParent:=Self;
Showmodal; // Need modal display

3. Make sure the form is set to StayOnTop.
4. Free the form after every use.

It's an ugly workaround, but I had to do this even with BDS 2006.
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


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/mappoint-window-zorder-7272.html

Posted By For Type Date
MapPoint: Blogs, Photos, Videos and more on Technorati This thread Refback 04-10-2008 11:40 PM
MapPoint and window zorder - MapPoint Forums This thread Refback 03-22-2008 07:24 PM
Calling MapPoint From C++ Without the MFC Safety Net - MapPoint Articles - MP2K Magazine This thread Refback 03-12-2008 06:23 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
MAPPOINT doesn't work as Window Service michele MapPoint 2006/2009 Discussion 6 10-17-2005 12:15 PM
Balloon Sizing and ZOrder mmichaels Wish List 1 03-18-2004 03:45 PM
PushPin zOrder Anonymous Wish List 0 06-24-2003 10:59 AM
MapPoint usage with VB6 and Zorder bug jaypro MapPoint 2006/2009 Discussion 0 04-07-2003 01:52 PM
Finding MapPoint Map Window Handle Anonymous MapPoint 2006/2009 Discussion 3 04-04-2003 09:05 AM


All times are GMT -5. The time now is 05:09 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

Ski Package Holidays
Search the latest ski package holidays in just a few clicks. The Holiday Hypermarket ski holiday search will show you what the top travel brands have to offer you.

Cruise Travel Agent
Book your cruise with Travel Counsellors. We are an award winning travel agent and can help plan your perfect cruise.

Canada Flights
Canada flights are great value flights when you visit dealchecker.co.uk first. Full of surprises, Canada is simply the most astonishingly beautiful country in the world.

Holidays to Antigua
The Holiday Place has fantastic deals on holidays to Antigua. Visit our website to view special offers on holidays to the Caribbean.

Holiday
Searching for the perfect holiday? Well check out ULookUBook online to find out all about your destination and also to book a great value holiday.

Price Comparison
Price comparison is the name of the game at Travel.co.uk. Visit our website and see for yourself.

Cheap Holidays in Lanzarote
Now's the time to get up and go visit the Canary Islands! View cheap holidays in Lanzarote only at On The Beach.


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