Article # 509, added by Geoworks, historical record
| first | previous | index | next | last |

Changing the font in a GenDynamicList object.



Q. Is it possible to change the font to display items in GenDynamicListClass
   the same way as it is done with MSG_VIS_TEXT_SET_FONT_ID? Can the font
   size be changed for GenDynamicListClass?

A. The way to do this is to specify the list entry monikers as GStrings
   rather than as normal text strings. In the GStrings, include the
   GR_SET_FONT command. GStrings are described in the graphics chapters
   of the SDK documentation.

   One caveat:  All the items are constrained to the same height,
   calculated via HINT_FIXED_SIZE on the list.