THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/05/2012 at 19:51, xxxxxxxx wrote:
Ah - my apologies Scott,
I see what you mean now. See if the following is of more help:
enum
{
ID_TAB_TREE = 50000,
ID_TAB_TREEVIEW,
ID_OF_TREE_HERE,
};
// and then the Description function:
Bool EXPERIMENTS::GetDDescription(GeListNode *node, Description *description, DESCFLAGS_DESC & flags)
{
Bool Data_Bank;
const DescID *id_Tree = description->GetSingleDescID(); // THE "TREE" TAB
Data_Bank = FALSE;
DescID cid_Tree = DescLevel(ID_TAB_TREE, DTYPE_GROUP, 0);
if (!id_Tree || cid_Tree.IsPartOf(*id_Tree,NULL))
{
BaseContainer group = GetCustomDataTypeDefault(DTYPE_GROUP);
group.SetBool(DESC_HIDE, Data_Bank);
group.SetString(DESC_NAME, "Tree Tab");
group.SetString(DESC_SHORT_NAME, "Tree Tab");
if (!description->SetParameter(cid_Tree, group, DescLevel(0))) return TRUE;
}
cid_Tree = DescLevel(ID_TAB_TREEVIEW, DTYPE_GROUP, 0);
if (!id_Tree || cid_Tree.IsPartOf(*id_Tree,NULL))
{
BaseContainer subgroup = GetCustomDataTypeDefault(DTYPE_GROUP);
subgroup.SetLong(DESC_COLUMNS, 1);
subgroup.SetBool(DESC_HIDE, Data_Bank);
subgroup.SetString(DESC_NAME, "");
subgroup.SetString(DESC_SHORT_NAME, "");
if (!description->SetParameter(cid_Tree, subgroup, DescLevel(ID_TAB_TREE))) return TRUE;
}
cid_Tree = DescLevel(ID_OF_TREE_HERE, CUSTOMGUI_TREEVIEW, 0);
if (!id_Tree || cid_Tree.IsPartOf(*id_Tree,NULL))
{
BaseContainer locked = GetCustomDataTypeDefault(CUSTOMGUI_TREEVIEW);
locked.SetLong(DESC_CUSTOMGUI, CUSTOMGUI_TREEVIEW);
locked.SetBool(DESC_HIDE, Data_Bank);
locked.SetLong(TREEVIEW_BORDER, BORDER_BLACK);
locked.SetBool(TREEVIEW_OUTSIDE_DROP, TRUE);
locked.SetBool(TREEVIEW_HAS_HEADER, TRUE);
locked.SetLong(DESC_ANIMATE, DESC_ANIMATE_OFF);
locked.SetString(DESC_NAME, "Treeview");
locked.SetString(DESC_SHORT_NAME, "Treeview");
if (!description->SetParameter(cid_Tree, locked, DescLevel(ID_TAB_TREEVIEW))) return TRUE;
}
flags |= DESCFLAGS_DESC_LOADED;
return TRUE;
}
Is that more of what you were after?
WP.