LVectorWindow::SetSelectedOnly

#include "ltwrappr.h"

L_BOOL LVectorWindow::SetSelectedOnly(bSelectedOnly)

Sets the selected-only state of the LVectorWindow object. This determines if selected objects or all objects are affected when auto scaling or rotating using the rotate tool. This function is available in the LEADTOOLS Vector Imaging Pro Toolkit.

Parameters

L_BOOL bSelectedOnly

Flag that indicates which objects to process. Possible values are:

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

Returns

The previous setting.

Comments

If the SelectedOnly state is set to TRUE (LVectorWindow::GetSelectedOnly, [LVectorWindow:SetSelectedOnly), then only selected objects will be scaled or rotated. If the SelectedOnly state is set to FALSE, then ALL objects are scaled or rotated.

Note: When setting SetSelectedOnly(TRUE), the scale of the entire vector is reset to (1,1,1).

Required DLLs and Libraries

See Also

Functions

Example

Assumes pVectorWindow points to a valid LVectorWindow object
This example toggles the Selected Only state of the LVectorWindow object

L_INT LVectorWindow__SetSelectedOnlyExample(HWND hWndParent, LVectorWindow *pVectorWindow) 
{ 
   pVectorWindow->SetSelectedOnly( !pVectorWindow->GetSelectedOnly()); 
 
   if (pVectorWindow->GetSelectedOnly()) 
      SetWindowText(hWndParent, TEXT("Selected-Only Enabled")); 
   else 
      SetWindowText(hWndParent, TEXT("Selected-Only Disabled")); 
 
   return SUCCESS; 
} 

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

LEADTOOLS Vector C++ Class Library Help