Exemple #1
0
void wxLEDPanel::SetAnimation(const wxAnimation ani)
{
    if(!ani.IsOk() || ani.GetFrameCount()==0) return;

    m_ani = ani;
    m_text.Empty();
    m_aniFrameNr = 0;

    m_content_mo.Init(ani.GetFrame(0));

    // Find the place for the bitmap
	ResetPos();

	// Set in field
	m_field.Clear();
	m_field.SetDatesAt(m_pos,m_content_mo);

	// start timer
	m_scrollTimer.Stop();
	m_scrollspeed = m_ani.GetDelay(0);
	m_scrollTimer.Start(m_scrollspeed,true);
}