home *** CD-ROM | disk | FTP | other *** search
- /* module written by G. Gagnon, Mar 24, 1987 */
-
- #include "sb:sb.h"
-
- extern int level;
-
-
- void PrTextAttr(string, textattr) char *string; struct TextAttr *textattr;
- {
- static struct StructData structdata[] = {
- { " ta_Name", "UBYTE *", 4, PTRSIZE },
- { "-ta_YSize", "UWORD", 2, INTSIZE },
- { "-ta_Style", "UBYTE", 3, BYTESIZE },
- { "-ta_Flags", "UBYTE", 3, BYTESIZE }
- };
- int sum, choice = -1;
- level++;
- while (choice) {
- sum = SetOptionText(string, structdata, (APTR)textattr, DATASIZE, 0);
- switch (choice = GetChoice(DATASIZE)) {
- case 1:
- PrString("ta_Name",textattr->ta_Name);
- break;
- }
- }
- level--;
- }
-
-