interacting with mappoint toolbars

DeepMaroon
04-29-2009, 03:22 PM
I am using the activeX component in my project and have enabled the "Advanced" ToolBar i.e.

MPCMap.Toolbars.Item("Advanced").Visible = True

Is there a way to capture the end-user inputs and interactions with the toolbar? I'd like to retrieve the text entered into the toolbars search/find location textbox and or the showfinddialog. I'd also like to make the textbox readonly until a certain event is triggered.

Winwaed
04-30-2009, 07:06 AM
The API doesn't let you do this, but you might be able to trap the actual Windows messages. This isn't something I've done myself, but I think Wilfried has some experience with it.

As for disabling: The easiest way is to remove the toolbar - then bring it back when you need it.


Richard

Wilfried
05-02-2009, 02:06 AM
Hi,

I also go for the advice of Richard. Otherwise is write your own toolbar and you have control of all things yourself. Trapping all the forms and windows messages from the control is certaninly not easy and some things could change when version upgrade.

 
Web mp2kmag.com
mapforums.com