static CInterfaceGroup *buildLineWithCommand(CInterfaceGroup *commandGroup, CViewText *text) { nlassert(commandGroup); nlassert(text); CInterfaceGroup *group = new CInterfaceGroup(CViewBase::TCtorParam()); static int groupId = 0; group->setId(NLMISC::toString("%d", groupId++)); static volatile bool sizeref = 1; static volatile sint32 w = 0; group->setSizeRef(sizeref); group->setW(w); group->setResizeFromChildH(true); // group->addGroup(commandGroup); commandGroup->setParent(group); text->setParent(group); text->setParentPos(commandGroup); text->setPosRef(Hotspot_TL); text->setParentPosRef(Hotspot_TR); group->addView(text); return group; }