LVectorDialog::EnableSelectedOnly

#include "ltwrappr.h"

L_BOOL LVectorDialog::EnableSelectedOnly(bSelectedOnly=TRUE)

Sets a flag that indicates whether to process only selected objects or all objects.

Parameters

L_BOOL bSelectedOnly

Flag that indicates whether to process only selected objects or all objects. Possible values are:

Value Meaning
TRUE Process only selected objects.
FALSE Process all objects.

Returns

Value Meaning
TRUE The previous setting was TRUE.
FALSE The previous setting was FALSE.

Required DLLs and Libraries

See Also

Functions

Topics

Example

This example selects object under pPoint, displays the rotate dialog, and only rotates selected objects.

L_INT LVectorDialog__EnableSelectedOnlyExample(LVectorBase *pVector, LPPOINT pPoint) 
{ 
   L_INT          nRet; 
   LVectorObject  VectorObject; 
 
   nRet = pVector->HitTest (pPoint, &VectorObject); 
   if (nRet == SUCCESS) 
   { 
      nRet = VectorObject.SelectObject (); 
      if(nRet != SUCCESS) 
         return nRet; 
 
      LVectorDialog VectorDlg(pVector); 
 
      VectorDlg.EnablePreview (); 
 
      VectorDlg.EnableAutoProcess (); 
 
      VectorDlg.EnableSelectedOnly (); 
 
      nRet = VectorDlg.DoModalVectorRotate(); 
      if(nRet != SUCCESS) 
         return nRet; 
   } 
   else 
      return nRet; 
 
   return SUCCESS; 
} 

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Vector C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.