Esempio n. 1
0
void IconList::InnerView::AttachedToWindow( void )
{
	View *pcParent = GetParent();
	SetFgColor( pcParent->GetFgColor() );
	SetEraseColor( pcParent->GetEraseColor() );
	SetBgColor( pcParent->GetBgColor() );

	_Layout();
}
Esempio n. 2
0
File: icon.cpp Progetto: PyroOS/Pyro
void Icon::AttachedToWindow( void )
{
	View *pcParent = GetParent();

	m_sHighlightColor = m_sEraseColor = pcParent->GetEraseColor();
	m_sBgColor = pcParent->GetBgColor();
	m_sFgColor = pcParent->GetFgColor();

	SetEraseColor( m_sEraseColor );
	SetBgColor( m_sBgColor );
	SetFgColor( m_sFgColor );
}
Esempio n. 3
0
//see os::View
void ProgressBar::AttachedToWindow()
{
	View *pcParent = GetParent();

	if( pcParent != NULL )
	{
		SetBgColor( pcParent->GetBgColor() );
	}
	else
	{
		SetBgColor( get_default_color( COL_NORMAL ) );
	}
}