Available in LEADTOOLS Vector Imaging toolkits. |
#include "ltwrappr.h"
L_BOOL LVectorWindow::SetSelectedOnly(bSelectedOnly)
L_BOOL bSelectedOnly; |
/* flag that indicates which objects to process */ |
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.
Parameter |
Description |
|
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
LVKRN 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: |
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; }