On 30/06/2015 at 07:44, xxxxxxxx wrote:
Hi Mohamed,
no really good news for you.
There are actually two kinds of "quick tabs".
One is a CustomGUI for the LONG (Int32) datatype. You can see an example of this in the Character object (those yellow/orange tabs). It does not allow multiple selection. This one can be created dynamically in GetDDescription(), unfortunately the define is missing in the SDK. Just use a define of your own, like in the following code:
#define ID_QUICKTABSRADIO_GADGET 200000281
// in GetDDescription() :
const DescID * const singleid = description->GetSingleDescID();
const Int32 id = 0x10000; // YOUR DESCRIPTION ID
const DescID cid = DescLevel(id, DTYPE_LONG, 0);
if (!singleid || cid.IsPartOf(*singleid, nullptr))
{
BaseContainer bc = GetCustomDataTypeDefault(DTYPE_LONG);
bc.SetInt32(DESC_CUSTOMGUI, ID_QUICKTABSRADIO_GADGET);
bc.SetString(DESC_NAME, "Quicktab");
bc.SetInt32(DESC_SCALEH, 1);
// quicktab elements
BaseContainer items;
items.SetString(0, String("Tab 0"));
items.SetString(1, String("Tab 1"));
items.SetString(2, String("Tab 2"));
bc.SetContainer(DESC_CYCLE, items);
description->SetParameter(cid, bc, DescLevel(ID_GROUP_DYAMIC));
}
And then there's the "real" quicktabs, which allow multiple selection, just as the ones on top of the Attribute Manager. Unfortunately this can't be created in a description, neither statically in the .res file, nor dynamically in GetDDescription(). It can only be used in dialogs. Sorry.