Descriptions: CUSTOMGUI_BASELISTLINK?

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 02/08/2003 at 09:59, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   8.100 
Platform:   Windows  ;   
Language(s) :     C++  ;

---------
Hi,

to add (for example) a color chooser to a description one can use

  
BaseContainer bc = GetCustomDataTypeDefault(DTYPE_COLOR);  
bc.SetLong(DESC_CUSTOMGUI, CUSTOMGUI_COLOR);  

and similar for other data types, even filenames. But what about adding _links_ to a description? My first guess was:

  
BaseContainer bc = GetCustomDataTypeDefault(DTYPE_BASELISTLINK);  
bc.SetLong(DESC_CUSTOMGUI, CUSTOMGUI_BASELISTLINK);  

But while there is a DTYPE_BASELISTLINK there doesn't seem to be a CUSTOMGUI_BASELISTLINK.

Uh-oh ...

Regards,
jl

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 02/08/2003 at 14:31, xxxxxxxx wrote:

Hi again,
the corresponding customgui is CUSTOMGUI_LINKBOX. For parameters (like excluding object types for drag & drop please see the corresponding header file)
So this will (should) work:
BaseContainer test = GetCustomDataTypeDefault(DTYPE_BASELISTLINK);
 test.SetLong(DESC_CUSTOMGUI, CUSTOMGUI_LINKBOX);
 test.SetString(DESC_SHORT_NAME, "Cool Link :o)");
 if (!description->SetParameter(DescLevel(20000,DTYPE_BASELISTLINK,0), test, DescLevel(YOUR_GROUP_ID_NOT_MINE)))
  return FALSE;
Hope that helps
Samir

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 03/08/2003 at 03:26, xxxxxxxx wrote:

Yeah, that did it.

Thanks,
jl