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