ITransitionMgr Remove problem | developer.brewmp.com ITransitionMgr Remove problem | developer.brewmp.com

Developer

ITransitionMgr Remove problem

Forums:

Hi

I am facing problem in removing the images from the ITransitionMgr_Remove function. The images are not removed (means i can still see the images) which i have inserted in the root contianer and then initialised to Transition2Mover_Init.

 

Regards

Gautam

 

 

ITransitionMgr manages the transitions and _remove should remove the added transition to ITransitionMgr. I am not clear on what do you mean by images are not removed. You can add widgets and not images as target to Transition2Mover_Init(). do you mean image widget? It would be great if you can elaborte the problem and share code snippet.

ITransitionMgr manages the transitions and _remove should remove the added transition to ITransitionMgr. I am not clear on what do you mean by images are not removed. You can add widgets and not images as target to Transition2Mover_Init(). do you mean image widget? It would be great if you can elaborte the problem and share code snippet.

HI adhudase
 
Below is the code snippet
 
ISHELL_CreateInstance ( pMe->a.m_pIShell, AEECLSID_Transition2_Mover, (void **)&piMoverTrans1 );ISHELL_CreateInstance ( pMe->a.m_pIShell, AEECLSID_TransitionMgr, (void **)&piTransMgr );Transition2Mover_Init ( piMoverTrans1, PopupWidget, properties.x, pMe->deviceInfo.d_screen_height, properties.x, ( pMe->deviceInfo.d_screen_height - nPopupMenuHeight ) )ITransition2_SetRuntime ( piMoverTrans1,MOVER1_RUNTIME1 );            ITransitionMgr_Insert ( piTransMgr, piMoverTrans1 );ITransitionMgr_SetKeepTransitions ( piTransMgr, ITransitionMgr_PVAL_KEEP_TRANSITIONS_ON );ITransitionMgr_SetEndAction ( piTransMgr, ITransition2_PVAL_ENDACTION_NONE );IWidget_GetTransitionMgr ( pMe->w.piwRoot, & piRCTransMgr );ITransitionMgr_Insert ( piRCTransMgr, CAST(ITransition2 *, piTransMgr ) );
 
 
Above PopupWidget is the container type where our images are present which is of Image widget.
while removing we are using
IQI *piTrans = NULL;      while (SUCCESS == ITransitionMgr_Get(piRCTransMgr, 0, &piTrans)){         (void)ITransitionMgr_Remove(piRCTransMgrr, piTrans); here its not entering the while loop.
 
We wanted to remove the imagse i.e image widget to be removed but it is not happening.
 
can you please tell me where we are going wrong.
regards
Gautam
 
 
 

HI adhudase
 
Below is the code snippet
 
ISHELL_CreateInstance ( pMe->a.m_pIShell, AEECLSID_Transition2_Mover, (void **)&piMoverTrans1 );ISHELL_CreateInstance ( pMe->a.m_pIShell, AEECLSID_TransitionMgr, (void **)&piTransMgr );Transition2Mover_Init ( piMoverTrans1, PopupWidget, properties.x, pMe->deviceInfo.d_screen_height, properties.x, ( pMe->deviceInfo.d_screen_height - nPopupMenuHeight ) )ITransition2_SetRuntime ( piMoverTrans1,MOVER1_RUNTIME1 );            ITransitionMgr_Insert ( piTransMgr, piMoverTrans1 );ITransitionMgr_SetKeepTransitions ( piTransMgr, ITransitionMgr_PVAL_KEEP_TRANSITIONS_ON );ITransitionMgr_SetEndAction ( piTransMgr, ITransition2_PVAL_ENDACTION_NONE );IWidget_GetTransitionMgr ( pMe->w.piwRoot, & piRCTransMgr );ITransitionMgr_Insert ( piRCTransMgr, CAST(ITransition2 *, piTransMgr ) );
 
 
Above PopupWidget is the container type where our images are present which is of Image widget.
while removing we are using
IQI *piTrans = NULL;      while (SUCCESS == ITransitionMgr_Get(piRCTransMgr, 0, &piTrans)){         (void)ITransitionMgr_Remove(piRCTransMgrr, piTrans); here its not entering the while loop.
 
We wanted to remove the imagse i.e image widget to be removed but it is not happening.
 
can you please tell me where we are going wrong.
regards
Gautam
 
 
 

Can you please check the return value of ITransitionMgr_Get()? FYI...The index of a transition may change from one step to another based on the order they are in the manager queue, thus a transition should never be paired to a specific index. An application that wishes to modify a transition after inserting it within a manager should not rely on this function to retrieve it, instead it should explicitly keep a reference to that transition.

Can you please check the return value of ITransitionMgr_Get()? FYI...The index of a transition may change from one step to another based on the order they are in the manager queue, thus a transition should never be paired to a specific index. An application that wishes to modify a transition after inserting it within a manager should not rely on this function to retrieve it, instead it should explicitly keep a reference to that transition.

hi adhudase
 
I am getting return value as 1 for ITransitionMgr_Get() i,e EFAILED
 
Regards
Gautam

hi adhudase
 
I am getting return value as 1 for ITransitionMgr_Get() i,e EFAILED
 
Regards
Gautam

EFAILED is returned when no transition exists. As I said earlier why can't you keep a reference to transition explicitly.

EFAILED is returned when no transition exists. As I said earlier why can't you keep a reference to transition explicitly.