home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 340_01 / ufc035.c < prev    next >
C/C++ Source or Header  |  1991-01-09  |  701b  |  34 lines

  1. /* Lattice C
  2.   example for dynamic attribute modification
  3. */
  4. #include "_ufc03.h"
  5. #include "testfmt.h"
  6. main()
  7. {
  8. #include "testfmt.i"
  9. /* normal output */
  10. memcpy(FMT,"testfmt ",8);
  11. FKZ = 2;
  12. SM = 0;
  13. _UNIF(&FKZ, FMT, testfmt.fld0, &RET, &SM, Daten);
  14.  
  15. /* change attribute of field fld1 */
  16. FKZ = 20;
  17. SM = 1;
  18. RET = 15;
  19. _UNIF(&FKZ, FMT, testfmt.fld0, &RET, &SM, Daten);
  20. FKZ = 3;
  21. _UNIF(&FKZ, FMT, testfmt.fld0, &RET, &SM, Daten);
  22.  
  23. /* change textattribut and frame attribut */
  24. FKZ = 21;
  25. RET = 15;
  26. _UNIF(&FKZ, FMT, testfmt.fld0, &RET, &SM, Daten);
  27. FKZ = 22;
  28. RET = 15;
  29. _UNIF(&FKZ, FMT, testfmt.fld0, &RET, &SM, Daten);
  30. FKZ = 2;
  31. _UNIF(&FKZ, FMT, testfmt.fld0, &RET, &SM, Daten);
  32.  
  33. }
  34.