How to implement "fade out transition" | developer.brewmp.com How to implement "fade out transition" | developer.brewmp.com

Developer

How to implement "fade out transition"

As in the calculator example.
We have seen the fade out transition effect, could any one tell the
implement of it?could any one give the principle of it ?

I mean in an application without widget and forms , how can I implement my own
fade out transition effect.

I only have experience with ITransition but I guess you can try by playing around with the current bitmap and overlaying with a mask every split of second.

I only have experience with ITransition but I guess you can try by playing around with the current bitmap and overlaying with a mask every split of second.

but could give the normal time each split last.and the count of split.
Also is the mask u mentioned a bitmap(with only one color)?
I doubt the effeciency ...
could u give me the detail Itransition implementation?

but could give the normal time each split last.and the count of split.
Also is the mask u mentioned a bitmap(with only one color)?
I doubt the effeciency ...
could u give me the detail Itransition implementation?

Yep, you can mask with either dark or light color depends on what kind of fading effect you prefer. Again, I have not done this but this sounds like something I would do without BUIW. I'm pretty sure BUIW is doing the same thing.
You should look at the ITransition API as part of BUIW.
(1) create a AEECLSID_FADER
(2) do a FADERDESC_Init()
(3) then ITRANSITION_StartFader()
don't forget to release the FADER. Hope this helps. Enjoy :)
anh

Yep, you can mask with either dark or light color depends on what kind of fading effect you prefer. Again, I have not done this but this sounds like something I would do without BUIW. I'm pretty sure BUIW is doing the same thing.
You should look at the ITransition API as part of BUIW.
(1) create a AEECLSID_FADER
(2) do a FADERDESC_Init()
(3) then ITRANSITION_StartFader()
don't forget to release the FADER. Hope this helps. Enjoy :)
anh

sorry, perhaps I haven't expressed my thought clearly :) ,
actually I want to know is that how I make "fade out transition"not by ITransition but by myself.
How can I make it by my own methods,only use common Brew SDK

sorry, perhaps I haven't expressed my thought clearly :) ,
actually I want to know is that how I make "fade out transition"not by ITransition but by myself.
How can I make it by my own methods,only use common Brew SDK

without thinking too much about it, I guess you can read IBitmap, IDisplay, IGraphics, and timer related API.

without thinking too much about it, I guess you can read IBitmap, IDisplay, IGraphics, and timer related API.

Hi, I am new to brew widgets which i am doing on BMP sdk
I am trying to give a fading effect to the a text widget.
I have created FaderDesc , TransitionDesc , ITransition, IWidget for transition and fader.
ITransition *tranObj;
IWidget *iTransition;
FaderDesc *fader;
TransitionDesc TransDesc;
then i have done create
if(ISHELL_CreateInstance(pMe->Applet.m_pIShell,AEECLSID_FADER_1,&pMe->iTransition)!=SUCCESS)
return FALSE;
i have also created
pMe->TransDesc.piWidget = pMe->iTransition;
pMe->fader->base = pMe->TransDesc;
pMe->fader->start = 50;
pMe->fader->end = 150;
FADERDESC_Init(pMe->fader,pMe->txtColor,100,200);
ITRANSITION_QueryInterface(pMe->tranObj, AEEIID_TRANSITION, &pMe->fader);
ITRANSITION_StartFader(pMe->tranObj, pMe->fader, 4000, NULL, &pMe);
On compiling it gives 0 errors and 0 warning[B]
On launch it gives a widows error Unhandeled exception has occured in you application.
Can anyone help me where i am wrong.

Hi, I am new to brew widgets which i am doing on BMP sdk
I am trying to give a fading effect to the a text widget.
I have created FaderDesc , TransitionDesc , ITransition, IWidget for transition and fader.
ITransition *tranObj;
IWidget *iTransition;
FaderDesc *fader;
TransitionDesc TransDesc;
then i have done create
if(ISHELL_CreateInstance(pMe->Applet.m_pIShell,AEECLSID_FADER_1,&pMe->iTransition)!=SUCCESS)
return FALSE;
i have also created
pMe->TransDesc.piWidget = pMe->iTransition;
pMe->fader->base = pMe->TransDesc;
pMe->fader->start = 50;
pMe->fader->end = 150;
FADERDESC_Init(pMe->fader,pMe->txtColor,100,200);
ITRANSITION_QueryInterface(pMe->tranObj, AEEIID_TRANSITION, &pMe->fader);
ITRANSITION_StartFader(pMe->tranObj, pMe->fader, 4000, NULL, &pMe);
On compiling it gives 0 errors and 0 warning[B]
On launch it gives a widows error Unhandeled exception has occured in you application.
Can anyone help me where i am wrong.