LVectorDialog::EnableSelectedOnly

Summary

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

Syntax

#include "ltwrappr.h"

L_BOOL LVectorDialog::EnableSelectedOnly(bSelectedOnly=TRUE)

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 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Vector C++ Class Library Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.