static void KeyEntry(double centreline, char* name, float percentage, int colour) { double namebase; double keyboxbase; double kstart; namebase = centreline - (double) (NORMAL_FONT / 2); keyboxbase = centreline - ((double) KEY_BOX_WIDTH / 2); kstart = graphx0 + graphwidth; outputBox(colour,kstart + borderspace, keyboxbase, KEY_BOX_WIDTH, KEY_BOX_WIDTH); sprintf(buffer,"%2d%%",(int)(percentage*100+0.5)); output->Text(JustifyRight ,kstart + (double)2.6* KEY_BOX_WIDTH + 2 * borderspace, namebase ,KEY_FONT ,buffer); output->Text(JustifyLeft ,kstart + (double)2.9* KEY_BOX_WIDTH + 2 * borderspace, namebase ,KEY_FONT ,name); }
void TitleOutlineBox(void) { outputBox(-1,borderspace,borderheight - titleheight - borderspace ,titlewidth,titleheight); }
void BorderOutlineBox(void) { outputBox(-1,0.0,0.0,borderwidth,borderheight); }