Hi There,
In my case, I usually lock the connector. Of course, it may be unlocked
later if to alternate the connection.
The follows are the snip of code in case it has some use for you.
Good luck!
Mike
//====================================================================
//
//====================================================================
void CSomeClass:
oLockConnector( CVisioShape& visShape, bool bLock )
{
CVisioCell visCellLock;
VBstr bstrLock = _T("1");
if ( !bLock )
{
bstrLock = _T("0");
}
VBstr vbszLockBeg = _T("LockBegin");
VBstr vbszLockEnd = _T("LockEnd");
visShape.Cells( vbszLockBeg, visCellLock );
visCellLock.putFormula( bstrLock );
visShape.Cells( vbszLockEnd, visCellLock );
visCellLock.putFormula( bstrLock );
}
Ashok said:
Hi daniel
I guess the same thing, but i want to protect the Begin point and End
point of the Connector. So that user is allowed to select the connector but
not allowed to change the course of connection.
Could you please have a look of handling to protect the Begin and End
Point of the connector. It will be a great help.