Hi all
i am working on an application and need to implement a bitmap change when footer item is pressed.
actually i am playing a file and want to change the bitmap from play to pause.
functionally it is working fine,,,but the bitmap of footeritem is not getting changed
hope i am clear
in On_Initialising() i am setting bitmap of footerItem like this:
Bitmap* pBitmapNormal = pAppResource->GetBitmapN(L"Pause.jpg");
footerItemPlayPause.SetBackgroundBitmap(FOOTER_ITEM_STATUS_NORMAL,pBitmapNormal);
isplaying = false; //isplaying is the flag i am checking in on_actionperformed()
in On_ActionPerformed() under this case i am changing it like this but it is not working.
if(!isplaying)
{
AppResource *pAppResource = Application::GetInstance()->GetAppResource();
Bitmap* pBitmapPressed = pAppResource->GetBitmapN(L"Play.jpg");
footerItemPlayPause.SetBackgroundBitmap(FOOTER_ITEM_STATUS_NORMAL,pBitmapPressed);
StartAudio(ID_NEW_FOOTER_ITEM_PLAY_PAUSE);
isplaying = true;
}
else
{
AppResource *pAppResource = Application::GetInstance()->GetAppResource();
Bitmap* pBitmapPressed = pAppResource->GetBitmapN(L"Pause.jpg");
footerItemPlayPause.SetBackgroundBitmap(FOOTER_ITEM_STATUS_NORMAL,pBitmapPressed);
Draw();
Stop(ID_NEW_FOOTER_ITEM_PLAY_PAUSE);
isplaying = false;
}
the functionality is working fine,,,from play to pause,,,,,,but bitmap image is not getting changed...
Please help....!!!!