home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 029.lha / StructureBrowser / sbTextAttr.c < prev    next >
C/C++ Source or Header  |  1987-04-02  |  754b  |  29 lines

  1. /* module written by G. Gagnon, Mar 24, 1987 */
  2.  
  3. #include "sb:sb.h"
  4.  
  5. extern int level;
  6.  
  7.  
  8. void PrTextAttr(string, textattr) char *string; struct TextAttr *textattr;
  9. {
  10. static struct StructData structdata[] = {
  11.      { " ta_Name",      "UBYTE *",                   4, PTRSIZE  },
  12.      { "-ta_YSize",     "UWORD",                     2, INTSIZE  },
  13.      { "-ta_Style",     "UBYTE",                     3, BYTESIZE },
  14.      { "-ta_Flags",     "UBYTE",                     3, BYTESIZE }
  15.   };
  16. int sum, choice = -1;
  17.   level++;
  18.   while (choice) {
  19.     sum = SetOptionText(string, structdata, (APTR)textattr, DATASIZE, 0);
  20.     switch (choice = GetChoice(DATASIZE)) {
  21.       case 1:
  22.         PrString("ta_Name",textattr->ta_Name);
  23.         break;
  24.     }
  25.   }
  26.   level--;
  27. }
  28.  
  29.