BUTTON

Definition

BUTTON [id]
{
  [Common flags]
}
						

描述

Creates a clickable button in the description. It does not directly correspond to an item in the container.
To check when it is clicked listen for MSG_DESCRIPTION_COMMAND in NodeData::Message() :

Bool MorphMixerObject::Message( GeListNode * node, Int32 type, void * data) { switch (type) { case MSG_DESCRIPTION_COMMAND : { DescriptionCommand * dc = ( DescriptionCommand *) data; if (dc-> _descId [0].id == MORPHMIXER_RECORD) { ... } break ; }
... }
return true ; }

范例

BUTTON MORPHMIXER_RECORD { }

延伸阅读

MSG_DESCRIPTION_COMMAND
#define MSG_DESCRIPTION_COMMAND
Sent by for example BUTTON description element. The corresponding data is DescriptionCommand.
定义: c4d_baselist.h:375
GeListNode
Represents a C4DAtom that resides in a 4D list.
定义: c4d_baselist.h:1767
DescriptionCommand
Message struct for MSG_DESCRIPTION_COMMAND.
定义: lib_description.h:850
DescriptionBaseMessage::_descId
DescID _descId
Description ID of the parameter that triggered the command.
定义: lib_description.h:843
Int32
maxon::Int32 Int32
定义: ge_sys_math.h:58
Bool
maxon::Bool Bool
定义: ge_sys_math.h:53

Copyright  © 2014-2025 乐数软件    

工业和信息化部: 粤ICP备14079481号-1