MKI_ATTRIBUTE_DATA (Basic Classes) Changed in Version 2021.0 |
www.CAD6.com |
C++ Syntaxclass MKI_ATTRIBUTE_DATA { public:
HWND m_hWnd;
MKI_LIBRARYNAME m_szLibraryName; MKI_BLOCKNAME m_szBlockName;
__int32 m_nDialogMode, m_nCount, m_nActive; bool m_fIndexIsLocked;
MKI_ATTRIBUTE_ENTRY m_acList[MKI_ATTRIBS_PER_OBJECT];
void Init( void );
__int32 GetIndex( const LPCWSTR f_pszName ) const;
__int32 Add( __int16 f_nBlockType, const LPCWSTR f_pszName, const LPCWSTR f_pszValue, bool f_fReplace );
bool Remove( __int32 f_nIndex ); };
This structure contains a list of attributes (sorted by name and type) and, if required, information on which one attribute to present for editing.
While this list can technically contain a mix of different attribute types, you should be careful when mixing different attribute types within one list since (in the application) attributes are identified by their name only, and those names are only unique within each type.
Element DescriptionWnd [HWND] Handle of the parent window for any dialog to be displayed. LibraryName Changed in Version 2019.1 [MKI_LIBRARYNAME] Library name of the block or instance containing the attributes, can be displayed for information purposes. In case of other entity types, this text is empty. BlockName Changed in Version 2019.1 [MKI_BLOCKNAME] Block name of the block or instance containing the attributes, can be displayed for information purposes. In case of other entity types, this text is empty. DialogMode New in Version 2021.0 [__int32] This value determines the type of attributes that can be edited (see MKI_ATTRIBMODE_*). Count [__int32] Number of attributes defined in List. Active [__int32] Index of the currently active attribute (the one to be edited). IndexIsLocked [bool] If true, only the one attribute indicated by Index may be edited. If false, the attribute editing mechanism may offer the user to edit, rename and/or delete attributes. If you allow this, make sure there are no duplicate attribute names and that the list remains sorted correctly. List [MKI_ATTRIBUTE_ENTRY] Sorted list of attributes.
|
CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH