Article # 338, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
Using ATTR_GEN_TEXT_CHAR_ATTR in a text object.
Q. I have a problem setting ATTR_GEN_TEXT_CHAR_ATTR. Here is a sample of what I am doing: ATTR_GEN_TEXT_CHAR_ATTR = { {{{2, 0}}, CA_NULL_ELEMENT}, VTDF_BERKELEY, {0, VTDS_12}, 0, {C_BLACK, CF_INDEX, 0, 0}, 0, FWI_MEDIUM, FW_NORMAL, 0, SDM_100, {0}, {C_WHITE, CF_INDEX, 0, 0}, SDM_0, {0}, {0,0,0,0,0,0,0}}; A. ATTR_GEN_TEXT_CHAR_ATTR should have a chunk handle, so do this: /* Define a chunk to hold the data */ @chunk VisTextCharAttr myTextCharAttr = { {{{2, 0}}, CA_NULL_ELEMENT}, VTDF_BERKELEY, {0, VTDS_12}, 0, {C_BLACK, CF_INDEX, 0, 0}, 0, FWI_MEDIUM, FW_NORMAL, 0, SDM_100, {0}, {C_WHITE, CF_INDEX, 0, 0}, SDM_0, {0}, {0,0,0,0,0,0,0}}; /* in your object, use that chunk */ ATTR_GEN_CHAR_ATTR = @myTextCharAttr;