|
Hi Experts,
I need to implement a progress bar.
I have the Bar dimensions available. There r some function calls(APIs) available to me to create the Rectangular Bar, Fill in the Colour, clear the Rectangular bar, etc.
I need to implement a function which looks like:
void Progress_bar(int x1. int y1, int x2, int y2,int Download_percentage );
wer (x1,y1) ->co-ordinates of Top left corner of Progress Bar
(x2,y2) ->co-ordinates of Bottom Right corner of Progress Bar
Download_percentage -> information which need to be mapped on the progress Bar.
This wil vary between 0-100.
Can any1 share their idea on implementing this in an Efficient way....
Waiting for responce..
|