#include #include #include #include #include #include /******************************************** * PrettyWindows v1.0 by Thom Robertson * ********************************************/ prettywindow3(win,color) struct Window *win; int color; { /* Here we define our border structures. */ static SHORT vectors1[26]; struct Border line1 = { 0,0, /* XY origin relative to container TopLeft */ 1,0,JAM2, /* front pen, back pen and drawmode */ 13, /* number of XY vectors */ vectors1, /* pointer to XY vectors */ NULL /* next border in list */ }; static SHORT vectors2[18]; struct Border line2 = { 0,0, /* XY origin relative to container TopLeft */ 2,0,JAM2, /* front pen, back pen and drawmode */ 9, /* number of XY vectors */ vectors2, /* pointer to XY vectors */ NULL /* next border in list */ }; static SHORT vectors3[10]; struct Border line3 = { 0,0, /* XY origin relative to container TopLeft */ 3,0,JAM2, /* front pen, back pen and drawmode */ 5, /* number of XY vectors */ vectors3, /* pointer to XY vectors */ NULL /* next border in list */ }; vectors1[0] = 5+22; vectors1[2] = win->Width - 5-22; vectors1[8] = win->Width - 5; vectors1[4] = win->Width - 5-22; vectors1[6] = win->Width - 5; vectors1[10] = win->Width - 5-22; vectors1[12] = win->Width - 5-22; vectors1[14] = 5+22; vectors1[16] = 5+22; vectors1[18] = 5; vectors1[20] = 5; vectors1[22] = 5+22; vectors1[24] = 5+22; vectors1[1] = 4; vectors1[3] = 4; vectors1[5] = 4+10; vectors1[7] = 4+10; vectors1[9] = win->Height - 4-10; vectors1[11] = win->Height - 4-10; vectors1[13] = win->Height - 4; vectors1[19] = win->Height - 4-10; vectors1[17] = win->Height - 4-10; vectors1[15] = win->Height - 4; vectors1[25] = 4; vectors1[23] = 4+10; vectors1[21] = 4+10; vectors2[0] = 13+6; vectors2[6] = win->Width - 13; vectors2[2] = win->Width - 13 -6; vectors2[8] = win->Width - 13 -6; vectors2[4] = win->Width - 13; vectors2[1] = 7; vectors2[3] = 7; vectors2[9] = win->Height - 7; vectors2[11] = win->Height - 7; vectors2[5] = 7+3; vectors2[7] = win->Height - 7-3; vectors2[13] = win->Height - 7-3; vectors2[10] = 13+6; vectors2[16] = 13+6; vectors2[12] = 13; vectors2[14] = 13; vectors2[15] = 7+3; vectors2[17] = 7; vectors3[0] = 20; vectors3[6] = 20; vectors3[8] = 20; vectors3[2] = win->Width - 20; vectors3[4] = win->Width - 20; vectors3[1] = 10; vectors3[3] = 10; vectors3[9] = 10; vectors3[5] = win->Height - 10; vectors3[7] = win->Height - 10; SetRast(win->RPort,color); if (color == 1) line1.FrontPen = 0; if (color == 2) line2.FrontPen = 0; if (color == 3) line3.FrontPen = 0; DrawBorder(win->RPort,&line1,0,0); DrawBorder(win->RPort,&line2,0,0); DrawBorder(win->RPort,&line3,0,0); } /* end of routine */