Rob H
April 17th, 2005, 08:20 AM
I'm trying to use a progress bar to implement a star rating.
I have two images - each of which has 5 small stars equally spaced (grey and blue). The stars are each 14 pixels wide with the centre on the 7 pixel boundary. The whole image is 70 pixels wide.
The Progress bar is defined as follows :-
1,test,0,9
Which should split it into 7 pixel areas. As I increment the value of test the blue stars replace the grey ones. It appears to work fine for values of 1 and 2, but after that the scaling seems to be off a bit.
I've attached the zipped CCF to this message.
I have two images - each of which has 5 small stars equally spaced (grey and blue). The stars are each 14 pixels wide with the centre on the 7 pixel boundary. The whole image is 70 pixels wide.
The Progress bar is defined as follows :-
1,test,0,9
Which should split it into 7 pixel areas. As I increment the value of test the blue stars replace the grey ones. It appears to work fine for values of 1 and 2, but after that the scaling seems to be off a bit.
I've attached the zipped CCF to this message.