MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




How to Remove Empty Toolbar?

This is a discussion on How to Remove Empty Toolbar? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, Could anyone tell me how to hide the whole toolbar of MapPoint control? I use the follow code to ...


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 (2) Thread Tools Display Modes
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 10-08-2008
Junior Member
White Belt
 
Join Date: Oct 2008
Posts: 3
Post How to Remove Empty Toolbar?

Hi,

Could anyone tell me how to hide the whole toolbar of MapPoint control? I use the follow code to show the map and hide toolbars. Thanks.

OleContainer1.DoVerb(1);
OleContainer1.OleObjectInterface.GetUserClassID(vG uid);
mpMap := IDispatch(OleContainer1.OleObject) as _Map;
mpMap.Application.PaneState := geoPaneNone;

for I := 1 to mpMap.Application.Toolbars.Count do
begin
Iv := I;
mpMap.Application.Toolbars.Item[Iv].Visible := False;
end;

Chris



Last edited by chrislma; 10-08-2008 at 09:36 PM. Reason: Can't upload the screenshot
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 10-09-2008
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Re: How to Remove Empty Toolbar?

Hi

This should work. Does not single one hide? Can you cehck in debugger the value of Toolbars.Count?
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 10-09-2008
Junior Member
White Belt
 
Join Date: Oct 2008
Posts: 3
Re: How to Remove Empty Toolbar?

Thanks, the count value is 4, which is right.

Do you know how to upload a screenshot here?

Chris
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 10-09-2008
Junior Member
White Belt
 
Join Date: Oct 2008
Posts: 3
Re: How to Remove Empty Toolbar?

Hi Wilfried,

It's a little weird that it can hide the empty toolbars after I change Align to alCustom. could you explain why?

In the past we use mappoint COM to display map as background, but found that the dialog boxes or popup forms could hide behind the main form and freeze the application on some computers, we couldn't find out what caused the probelm.

So I'm trying to use OleContainer, but I haven't found method to prevent menu merge with our own menu. We don't hope to show mappoint menu on our application. Do you have any idea?

Thanks,
Chris
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
delphi, empty, mappoint, olecontainer, remove, toolbar


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/how-remove-empty-toolbar-8807.html

Posted By For Type Date
Working With Excel and MapPoint - MP2K Magazine This thread Refback 10-12-2008 02:15 AM
Merging Multiple Routes - MapPoint Articles - MP2K Magazine This thread Refback 10-10-2008 10:03 AM

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
Toolbar event? joerg3011 MapPoint 2006/2009 Discussion 2 07-24-2008 03:38 AM
QueryShape recordset returning empty tfmiltz MapPoint 2006/2009 Discussion 7 01-31-2008 07:38 AM
Why is PushPin.Note empty? myaso MapPoint 2006/2009 Discussion 0 10-25-2006 08:26 AM
Creating a new toolbar alt-088 MapPoint 2006/2009 Discussion 4 11-14-2004 07:38 AM
the map is empty after Show/Hide form with MapPoint control Anonymous MapPoint 2006/2009 Discussion 1 03-25-2004 04:24 PM


All times are GMT -5. The time now is 03:36 AM.


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