home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / lisp / elk-2_0.lha / elk-2.0 / lib / xm / selectn-box.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-22  |  877 b   |  26 lines

  1. #include "../xt/xt.h"
  2. #include <Xm/Xm.h>
  3. #include <Xm/SelectioB.h>
  4.  
  5. static SYMDESCR Type_Syms[] = {
  6.    { "dialog-prompt",       XmDIALOG_PROMPT },
  7.    { "dialog-selection",    XmDIALOG_SELECTION },
  8.    { "dialog-work-area",    XmDIALOG_WORK_AREA },
  9.    { 0, 0}
  10. };
  11.  
  12. static XtArgVal C_Selection_Box_DialogType (x) Object x; {
  13.    return (XtArgVal)Symbols_To_Bits (x, 0, Type_Syms);
  14. }
  15.  
  16. init_selectionbox () {
  17.     XtResourceList r = 0;
  18.     Define_Class ("selection-box", xmSelectionBoxWidgetClass, r, 0);
  19.     Define_Callback ("selection-box", "helpCallback", 1);
  20.     Define_Callback ("selection-box", "okCallback", 1);
  21.     Define_Callback ("selection-box", "noMatchCallback", 1);
  22.     Define_Callback ("selection-box", "cancelCallback", 1);
  23.     Define_Callback ("selection-box", "applyCallback", 1);
  24.     Define_Converter_To_C ("selection-box-dialogType", C_Selection_Box_DialogType);
  25. }
  26.