LVectorWindow::EnableFileName

Summary

Enables or disables use of the internal filename.

Syntax

#include "ltwrappr.h"

L_BOOL LVectorWindow::EnableFileName(bEnableFileName)

Parameters

L_BOOL bEnableFileName

Flag that indicates whether to enable the file name. Possible values are:

Value Meaning
TRUE Enable the file name.
FALSE Disable the file name.

Returns

The previous setting.

Comments

Call this function to enable or disable use of the internal filename. Enabling use of the internal filename will cause automatic transferring of the file name when using the LVectorDialog and the LVectorFile classes for loading and saving files.

The internal filename is used in two ways:

  1. If use of the internal filename is enabled when using LVectorDialog and the LVectorFile classes, then setting or changing the file name in these classes will cause the changed filename to be transferred to the LVectorWindow object automatically.

  2. If use of the internal filename is not enabled then no automatic transferring of filename will be done the caller is responsible for maintaining the filename for the image.

Required DLLs and Libraries

See Also

Functions

Topics

Example

L_INT LVectorWindow__EnableFileNameExample(LVectorWindow *pVectorWindow) 
{ 
   L_INT nRet; 
   pVectorWindow->SetFileName(MAKE_IMAGE_PATH(TEXT("random.dxf"))); 
   if (!pVectorWindow->IsFileNameEnabled()) 
   { 
      pVectorWindow->EnableFileName(TRUE); 
   } 
 
   nRet = pVectorWindow->Load(); 
   if(nRet != SUCCESS) 
      return nRet; 
   return SUCCESS; 
} 
Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 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.