Common Desktop Environment: Internationalization Programmer's Guide

List Resources

Several widgets allow applications to set or read lists of items in the widget. Table 2-3 shows which widgets allow this and the resources they use to set or read these lists. Because the list items may need to be localized, do not hardcode these lists. Rather, they should be set as resources in app-defaults files, allowing them to be localized. The type for each list is XmStringList.

Table 2-3 Resources Used for Reading Lists

Widget Class 

Resource Name 

XmList

*items:

XmList

*selectedItems:

XmSelectionBox

*listItems: