XmNhelpLabelString resource. Then you just need to modify the callback function so that it handles the
XmCR_HELP reason and returns a new value for the Cancel button.
However, this solution does not work if you want to provide help in addition to these choices. The default
MessageDialog only provides three buttons in the action area, although in Motif 1.2 you can add additional action
area buttons to the dialog. For more information on how to handle this situation, see Chapter 7, Custom Dialogs.
6.8 Summary
Dialogs are used extensively in all window−oriented applications and their uses are quite diverse. As a result, it is
impossible to provide numerous examples of the use of any one particular style of dialog. This chapter introduced the
implementation of Motif dialogs by using the predefined MessageDialogs as examples. We described how to create
the dialogs, how to set various dialog resources, how to handle dialog callback routines, and how to implement modal
dialogs. Although our examples used MessageDialogs, much of the discussion is applicable to other types of Motif
dialogs.
The next chapter deals with the predefined Motif selection dialogs. These dialogs allow you to provide the user with a
group of choices from which to make a selection. Chapter 7, Custom Dialogs, discusses how you can break away
from the predefined Motif dialogs and build dialogs on your own. Chapter 21, Advanced Dialog Programming, gets
into advanced topics in Xt and Motif programming, using various types of MessageDialogs ...