by Randal » Mon Jun 12, 2006 4:14 pm
Antonio,
Toolbars is a collection object. I don't know how OleGetProperty is suppose to work but I can do the following with the same results.
// This line turns on the Legend and works properly
oActiveX:SetProp("PaneState", 1) // Turn on legend for route planer
// This line returns nil
MsgInfo( OleGetProperty( oActiveX:hActiveX, "PaneState" ) )
// This line returns 1, which is correct.
MsgInfo( oActiveX:GetProp("PaneState") )
So, I don't know why using GetProp works and OleGetProperty does not.
Additionally, when I set the PaneState property the route planner legend is visible but does not respond to any mouse clicks. According to the Microsoft docs the legend and toolbars should respond to mouse clicks, i.e. there are no events to process through the event handler for the legend and toolbars.
Just like the Excel ActiveX displays a toolbar with default functionality, the MapPoint toolbars should behave the same way.
I purchased the FWH Apr 2006 upgrade so I could get the ActiveX functionality for this project. If I need to purchase a more recent upgrade or pay extra to get this working just let me know. This is a major project that a I must get working and I'm losing customers by not having this functionality.
Regards,
Randal Ferguson[/list][/quote]