Beispiel #1
0
void InternalWindow::onCreate(const InternalWindow * Id)
{
	Inherited::onCreate(Id);

    if(Id != NULL)
    {
        if(Id->getTitlebar() != NULL)
        {
            FieldContainerUnrecPtr FCCopy(Id->getTitlebar()->shallowCopy());
            setTitlebar(dynamic_pointer_cast<Titlebar>(FCCopy));
        }
        if(Id->getBorder() != NULL)
        {
            FieldContainerUnrecPtr FCCopy(Id->getBorder()->shallowCopy());
            setBorder(dynamic_pointer_cast<Border>(FCCopy));
        }
        if(Id->getDisabledBorder() != NULL)
        {
            FieldContainerUnrecPtr FCCopy(Id->getDisabledBorder()->shallowCopy());
            setDisabledBorder(dynamic_pointer_cast<Border>(FCCopy));
        }
        if(Id->getFocusedBorder() != NULL)
        {
            FieldContainerUnrecPtr FCCopy(Id->getFocusedBorder()->shallowCopy());
            setFocusedBorder(dynamic_pointer_cast<Border>(FCCopy));
        }
        if(Id->getRolloverBorder() != NULL)
        {
            FieldContainerUnrecPtr FCCopy(Id->getRolloverBorder()->shallowCopy());
            setRolloverBorder(dynamic_pointer_cast<Border>(FCCopy));
        }
    }
}
void Component::setBorders(Border* const TheBorder)
{
    setBorder        (TheBorder);
    setDisabledBorder(TheBorder);
    setFocusedBorder (TheBorder);
    setRolloverBorder(TheBorder);
}