Community of VE/MapPoint Users and Developers
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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| 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 |
| |||
| 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?
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| 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 |
![]() |
| Tags |
| delphi, empty, mappoint, olecontainer, remove, toolbar |
| ||||
| 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 | |
| |
| ||||
| 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 |