home *** CD-ROM | disk | FTP | other *** search
- #include "teglsys.h"
-
- unsigned redrawit(imagestkptr ifs, msclickptr ms)
- {
-
- winframeptr wf;
- wf = findwinframe(ifs);
- twselect(wf);
- settextstyle(TRIPLEX_FONT, HORIZ_DIR, 1);
- setfillstyle(HATCH_FILL, BLUE);
- setcolor(BLUE);
- outtextxy(200,90,"XY");
- setteglfont(f8x8bold);
- outtextxy(100,90,"TEGL FONT");
- settextstyle(SMALL_FONT, HORIZ_DIR, 4);
- outtextxy(50,50,"Simple font");
- line(200,90,240,90);
- return 0;
- }
-
- void main(void)
- {
- winframeptr wf;
-
- tweasystart();
- twinit(&wf, 10, 320, 450, 500);
- twsetheader(wf,"Text test");
- twsetredraw(wf,redrawit);
- twdrawwindowframe(wf);
-
- teglsupervisor();
- }
-
-
-