home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / c / cwikwidg.zip / cwikwidget / Hdial / HDial.README < prev    next >
Text File  |  1992-03-29  |  2KB  |  58 lines

  1.                                 Hdial Widget
  2. -----------------------------------------------------------------------------
  3.  
  4. Based roughly on the one by Doug Young, this dial widget is a half circle
  5. and has an arrowhead, selections, label, etc.  This was my first attempt at a 
  6. widget, so it probably ain't great.
  7.  
  8.  Resources:               Type:                Defaults:
  9.  
  10. XtNforeground          : pixel    : XtNDefaultForeground
  11. XtNlabelForeground     : pixel    : XtNDefaultForeground
  12. XtNminimum             : int      : 0
  13. XtNmaximum             : int      : 65535
  14. XtNvalue               : int      : 0
  15. XtNfont                : XFontStruct   : XtNDefaultFont
  16. XtNmargin              : int      : 5
  17. XtNimcrementCallback   : callback : NULL
  18. XtNdecrementCallbacki  : callback : NULL
  19. XtNvalueChangeCallback : callback : NULL
  20.  
  21. Actions:
  22.  
  23. increment()    : can have a numeric value as a paramater 
  24. decrement()    : can have a numeric value as a paramater
  25. set()         
  26. drag()
  27.  
  28. Default Translations:
  29.  
  30. <key>+: increment(1)
  31. Shift<key>+: increment(100)
  32. <key>-: decrement(1)
  33. Shift<key>-: decrement(100)
  34. <Btn1Down>: set()
  35. <Btn1Motion>: set() drag()
  36.  
  37. Callback Struct:
  38.  
  39. typedef struct _HdialCallbackStruct
  40. {
  41.   int reason;
  42.   XEvent *event;
  43.   int value;
  44. } HdialCallbackStruct, *HdialCallbackPtr;
  45.  
  46. where reason can be:
  47. HDIAL_INCREMENT
  48. HDIAL_DECREMENT
  49. HDIAL_SET
  50.  
  51. /* Note ** Drag calls the set action */
  52.  
  53. Suggestions always welcome, improvements even better.
  54. Job offers highly encouraged.
  55.  
  56. John L. Cwikla
  57. cwikla@uimrl7.mrl.uiuc.edu
  58.