- scr.fillRectangle(gc_lighted,
- int(x + 1), baseline - Ascent(font) + 1,
- Width(font) - 2,
- Ascent(font) + Descent(font) - 2);
-
- scr.drawRectangle(gc_lighted,
- int(x), baseline - Ascent(font),
- Width(font) - 1,
- Ascent(font) + Descent(font) - 1);
- scr.drawString(font, contents, baseline, int(x + 2));
+ pi.pain.fillRectangle(x + 1,
+ baseline - dim_.asc + 1, dim_.wid - 2,
+ dim_.asc + dim_.des - 2,
+ backgroundColor());
+ pi.pain.rectangle(x + 1, baseline - dim_.asc + 1,
+ dim_.wid - 2, dim_.asc + dim_.des - 2,
+ LColor::foreground);
+ docstring dcon(contents.begin(), contents.end());
+ pi.pain.text(x + 2, baseline, dcon, font);