+
+ fr.x = w->rect.x - FRMOFFS;
+ fr.y = w->rect.y - TBAROFFS - FRMOFFS;
+ fr.width = w->rect.width + FRMOFFS * 2;
+ fr.height = w->rect.height + TBAROFFS + FRMOFFS * 2;
+
+ wt_gfx_frame(&fr, FRM_OUT | FRM_NOFILL, frmcol); /* outer bevel */
+
+ /* draw main frame */
+ wt_gfx_color(frmcol);
+
+ fr.x += FRMBEVEL;
+ fr.y += FRMBEVEL;
+ fr.width -= FRMBEVEL * 2;
+ fr.height -= FRMBEVEL * 2;
+
+ tmprect = fr;
+ tmprect.width = FRMTHICK;
+ wt_gfx_fillrect(&tmprect); /* left bar */
+ tmprect.x += fr.width - FRMTHICK;
+ wt_gfx_fillrect(&tmprect); /* right bar */
+
+ tmprect = fr;
+ tmprect.height = FRMTHICK;
+ tmprect.x += FRMTHICK;
+ tmprect.width -= FRMTHICK * 2;
+ wt_gfx_fillrect(&tmprect); /* top bar */
+ tmprect.y += fr.height - FRMTHICK;
+ wt_gfx_fillrect(&tmprect); /* bottom bar */
+
+ /* inner bevel */
+ fr.x += FRMTHICK;
+ fr.y += FRMTHICK;
+ fr.width -= FRMTHICK * 2;
+ fr.height -= FRMTHICK * 2;
+ wt_gfx_frame(&fr, FRM_IN | FRM_NOFILL, frmcol);
+
+ /* titlebar */
+ fr.x = w->rect.x;
+ fr.width = w->rect.width;
+ fr.y += FRMBEVEL;
+ fr.height = TBARTHICK + FRMBEVEL * 2;
+ wt_gfx_frame(&fr, FRM_OUT, frmcol);