Problem in implemanation of progress bar

Login to reply to this topic.
Mon, 2008-06-09 07:53
Joined: 2008-04-11
Forum posts: 26

Hello All,

I am implemanting a progress bar for the audio clip progress using some SVGs .....

for this i am using one svg which will move as song proceed ..........

but problem is that when my song duration is 0.0 the svg is visible but when my song proceed this svg is not any more visisble......

in debug mode my control is going to draw pt of svg but its not drawing.....

i am not getting the problem reason plz help....


correct me if m worng


Mon, 2008-06-09 08:44
NewLC AdministratorSymbian AccreditedForum Nokia Champion
Joined: 2003-01-14
Forum posts: 1918
Re: Problem in implemanation of progress bar

It looks like there is a bug in your application. You have to make the SVG draw itself while the song is playing.

(Honestly, do you really expect an answer with such a question ? How do you think we can help you if you don't give more details or post a bit of code you think is the cause of the problem ?)


Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant

Mon, 2008-06-09 09:49
Joined: 2008-04-11
Forum posts: 26
Re: Problem in implemanation of progress bar

ohh,,,sorry eric......
here is my code...
here

Draw(const TRect& /*aRect*/
{
TInt ProgressPoint; //Dynamic position of image
if(TotalTime>0 && ElapsedTime>0)
{
TInt ProgressFraction=TotalTime/ElapsedTime; //Calculate the time duration played
TInt ProgressReference=200/ProgressFraction;
TInt ProgressPoint=ProgressReference+22;
}
else
{
ProgressPoint=22;
}
gc.BitBltMasked( TPoint(ProgressPoint,53),iProgressInfo->Bitmap(),drawRect,iProgressInfo->Mask(),ETrue );
}
this function is executing every time when m calling the draw using some timer class but my image is not getting displayed


correct me if m worng

Mon, 2008-06-09 10:07
Joined: 2008-04-11
Forum posts: 26
Re: Problem in implemanation of progress bar

thanx eric for reply...............i got my mistake................it was a silly mistake...........which i did..........................ProgressPoint i have defined again in inner scope which was creating the problem.....


correct me if m worng

  • Login to reply to this topic.