Ejemplo n.º 1
0
BCheckBox* BContainer::AddCheckBox(char* comboTxt,unsigned char offset, UINT id)
{

	BCheckBox* bCheck;

	bCheck = new BCheckBox();
	if(bCheck == NULL) return NULL;
	if(id == 0)
	{
		id = ++this->lastId;
	}
	
	if(!bCheck->Create(comboTxt,offset,this,id)){delete bCheck; return NULL;}
	
		
	if(!AddElement(bCheck)){delete bCheck; return NULL;}
	bCheck->elementType =  GML::Utils::AttributeList::BOOLEAN;

	return bCheck;
}