We are using MI from VB and VC++ (integrated mapping). We have created ToolBars in VC++ to implement most of the Mapinfo standard ButtonPads. We are now facing the following problem: how can we synchronise the state of our buttons (greyed , checkec/uncheched) with the state of Mapinfo buttons ? To illustrate our problems, one of the most difficult scenario we are facing is the following: the user must draw/modify objects in a layer he selects an object (with the 'Select' tool) , then push the 'Reshape' button. Mapinfo sets the 'Add node' button as selectable (it was greyed out before). The user then pushes the 'Add node' button to add extra node to the object. If he (by mistake) clicks outside the object with this 'Add node' tool, Mapinfo de-selects the edited object, set the tool as 'Select', then unchecked the 'Add node' and 'Reshape' buttons, and set them as not selectable. How VC++ can know that this happened ?? We have not found a way to query all the Mapinfo buttons to get their state, as it is possible for menus items. We would very much appreciate any idea on the subject Fr�d�ric DENTRAYGUES ---------------------------------------------------------------------- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
