#include #include "wnd.h" void main() { WND *w[16]; WND *w2; char tmp[30]; int i, x = 0, y = 0; int cols[] = {31, 78, 112, 79, 45, 31, 78, 112, 79, 45, 31, 78, 112, 79, 45}; for (i = 0; i < 15; i++) { w[i] = wdef(x, y, 15, 7, TRUE); wcol(w[i], ALL, cols[i]); wborder(w[i], i); sprintf(tmp, "Ikkuna %d", i+1); wtitle(w[i], tmp); wopen(w[i]); x += 16; if (!((i+1) % 5)) { x = 0; y += 8; } delay(100); } w2 = wdef(5, 6, 30, 7, TRUE); wcol(w2, ALL, 48); wopen(w2); wprintf(w2, "T„m„ on ikkuna w2\n"); wprintf(w2, "T„m„ on toinen rivi\n"); delay(2000); for (i = 0; i < 15; i++) { wprintf(w[i], "T„m„ on"); delay(100); } wprintf(w2, "T„m„ on kolmas rivi\n"); for (i = 0; i < 15; i++) { wprintf(w[i], " testi"); delay(100); } delay(1000); wclose(w2); delay(1000); for (i = 14; i >= 0; i--) { wclose(w[i]); delay(100); } }