MKI_ColorSetByIndex (Elements) New in Version 2019.0

www.CAD6.com

C++ Syntax

bool

MKI_ColorSetByIndex(

 __int32 f_nIndex,

 MKI_CONST_COLORDEF_REF f_rData );

 

Replaces the current drawing color definition with the new definition pointed to by Data.

 

Parameters

Index

[__int32] Zero-based index of the color definition that shall be set. Valid range: 0 <= Value < MKI_CUSTOMCOLOR_MAX.

Data

[MKI_CONST_COLORDEF_REF] Address of a buffer containing the new color definition. The name of the color must not begin with a '*' character!

 

Return Value

Returns true if successful, false if not.

 

Comment

In order to delete a color definition, replace it with a color definition where Data->ColorName is set to "".

 

CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH