alt-088
09-01-2004, 10:02 AM
Hi Everyone -
I have an add-in working into mappoint 2k4.
I would like to add a toolbar into the mappoint application.
Is this possible??
Code links??
(c#)
thanks
tony
vidyakulkarni
09-01-2004, 02:53 PM
here is the code: for drawing toolbar, u can draw all 4 tool bars like this.
object bar = "Drawing";
this.axMappointControl1.Toolbars.get_Item(ref barObj).Visible = true;
Winwaed
09-01-2004, 04:00 PM
That only controls the pre-existing MapPoint toolbars.
I think alt-088 was wanting to add his own custom toolbar? I don't think this is possible. The object api docs from Microsoft don't appear to allow custom toolbars unless there's an 'undocumented' feature that I'm not aware of.
alt-088
09-14-2004, 11:19 AM
Well -
I've given up on trying to add a new toolbar to the mappoint application
and have switched to a new application wrapped around the mappoint
ocx file....
I can drop the control onto the form with no problem -
but how do i get the default toolbars to be displayed?
thanks
tony
Anonymous
11-14-2004, 06:38 AM
AxMappointControl1.Toolbars.Item(1).Visible = True
AxMappointControl1.Toolbars.Item(2).Visible = True
AxMappointControl1.Toolbars.Item(3).Visible = True
AxMappointControl1.Toolbars.Item(4).Visible = True