virtual void draw_message( graphics& gx, UINT width, UINT height, aux::wchars text ) { gx.text_alignment(TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER); gx.font("Arial", 17); gx.no_line(); gx.fill_color(color(0xFF,0,0)); gx.text(width / 2, height / 2, text); }
void draw_caption( HELEMENT he, graphics& gx, UINT width, UINT height, aux::wchars text ) { gx.state_save(); //gx.rotate(3.1415926 / 2, width / 2, height / 3); // for text rotation testing. gx.text_alignment(TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER); gx.font("Times New Roman", 18); gx.no_line(); gx.fill_linear_gradient( width/3,0,(2*width)/3, 0, color(0xDF,0,0), color(0,0,0x7F)); gx.text(width / 2, height / 3, text); //gx.rectangle(0,0,width / 2, height / 3); gx.state_restore(); }