Inside your panel, place this control. (tested)
needle(xx,yy,"clock.tga",XXX,YYY,AA,SS,FF,the_time);
where :
xx,yy is the images top-left position within the panel.
clock.tga is the CENTERED, circular image, using alpha channel for transparency.
XXX,YYY is the CENTER of the image, the pivot point that is.
AA is the rotational offset. SHOULD be zero.
SS is the minimum number of the range
FF is the maximum number of the range.
the_time is the variable the rotation is calculated from.
eg
needle(0,0,"clock.tga",32,32,0,0,24,the_time);
Will create a transparent clock at position 0,0 within the panel.
The clock will rotate about its center (assuming a 64x64 image),
based on the hour of the day stored in the_time...