next up previous contents
Next: A Settings Notify Handler Up: Creating a Custom Window Previous: Customizing trial_cui.c   Contents

Writing the Panel Handlers

Create a file named trial_hnd.c to contain the notify handlers for this window. You will need to include some header files -- the following should be sufficient (look in the GUIDE generated file trial_stubs.c for a complete set for your panel):

#include <xview/xview.h>
#include <xview/panel.h>
#include "trial_ui.h"                /* or #include "trial_cui.h" */

The notify handlers can be identical to the sample ones given below. This is because we use two routines, namely trial_read_window() and trial_data_refresh() which will read the data from the items in the window and, respectively, refresh the items in the window. These two routines are discussed in Sections 3.2.5.4 and 3.2.5.5.





root
1998-11-02