LVectorDialog::EnableSelectedOnly

#include "ltwrappr.h"

L_BOOL LVectorDialog::EnableSelectedOnly(bSelectedOnly=TRUE)

L_BOOL bSelectedOnly;

/* selection flag */

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

Parameter

Description

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

TRUE

The previous setting was TRUE.

FALSE

The previous setting was FALSE.

Required DLLs and Libraries

LVKRN
LVDLG
LTFIL

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

LVectorDialog::EnableNoDuplicate, Class Members

Topics:

Vector CommonDialogs

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;
}