On 09/01/2015 at 08:25, xxxxxxxx wrote:
Hello,
PrefsDialogObject is based on NodeData. So to find ouf if a button was pressed you have to implement NodeData::Message and check for the MSG_DESCRIPTION_COMMAND message. The data is a DescriptionCommand object which contains the ID of the pressed button.
virtual Bool Message(GeListNode* node, Int32 type, void* data)
{
if(type == MSG_DESCRIPTION_COMMAND)
{
DescriptionCommand* dc = (DescriptionCommand* ) data;
if(dc)
{
const Int ID = dc->id[0].id;
if(ID == MY_BUTTON)
{
GePrint("button pressed");
}
}
}
return SUPER::Message(node,type,data);
}
We are currently working on the R16 documentaiton so missing parts will be added.
Best wishes,
Sebastian