Problem in implemanation of progress bar
| Mon, 2008-06-09 07:53 | |
|
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 |
|






Forum posts: 1918
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
Forum posts: 26
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
Forum posts: 26
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