home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.3 Development Libraries / SGI IRIX 6.3 Development Libraries.iso / dist / dist6.3 / ViewKit_dev.idb / usr / share / src / ViewKit / QuickHelp / Demo.z / Demo
Encoding:
Text File  |  1996-09-20  |  4.7 KB  |  121 lines

  1. *useSchemes: all
  2. *scheme: base
  3.  
  4. !! Enable to be sure we are picking up these resources.  Can also help
  5. !! show which widgets are which, so you can understand things like h elp
  6. !! call backs.
  7.                  Demo*formW.background: yellow
  8. !!          Demo*XmPushButton.background: red
  9.                Demo*XmLabel.background: red
  10. !!     Demo*VkQuickHelpMsgLine.background: light yellow
  11. !!       Demo*VkQuickHelpPopup.background: green
  12.  
  13. !! The next two resources are for mainly debugging.  They may also be
  14. !! helpful to application developers and users trying to figure out how to set
  15. !! resources.
  16. !!
  17. !!    showWidgetInfo    Displays widget name and class instead of the widget's
  18. !!            help message.  This is helpful if you are having
  19. !!            trouble setting a widget's resources, such as for
  20. !!            a program you did not write.
  21. !!
  22. !!                      *showWidgetInfo: true
  23. !!
  24. !!    dumpTree    Prints names and class of the entire widget tree
  25. !!            when the program starts.
  26. !!
  27. !!                             *dumpTree: true
  28.  
  29. !! The next resources are the basic ones:
  30. !!    ShowHelp    Enables/disables the Quick Help system.  If this is
  31. !!            not explicitly set to "true", no Quick Help will be
  32. !!            shown.
  33. !!
  34. !!    showPopupHelp    Controls popup help explicitly
  35. !!
  36. !!    showMsgLineHelp    Controls message line help explicitly
  37. !!
  38. !!      smallWidget    number of pixels before different balloon placement
  39. !!            is used.
  40.  
  41.                         *ShowHelp: true
  42. !!                     *showPopupHelp: false
  43. !!                   *showMsgLineHelp: false
  44.                          *smallWidget: 75
  45.  
  46. !!    msgLineHelpText    Help text for the message line (at bottom of the demo)
  47. !!
  48. !!    popupHelpText    Help text for the popup balloon
  49.                  *msgLineHelpText: (No specific message line help given)
  50.                    *popupHelpText: (No specific popup window help available)
  51.  
  52.  
  53. !! The next resources set timing parameters for popup help.
  54.  
  55. !!    Time before help appears after the cursor first enters a widget
  56. !!    (when not browsing -- see below)
  57.                     *helpTextWaitTime: 800
  58.  
  59. !!    How long to display a help balloon.  If this is zero, the balloon
  60. !!    is not taken down based on time.  It will only be taken down when
  61. !!    something else happens, such as leaving the widget.
  62.                       *helpTextTimeUp: 3000
  63.  
  64. !!   Browsing Mode - user is quickly scanning help for widgets and does not
  65. !!   want wait the full "helpTextWaitTime."
  66.  
  67. !!    To trigger browsing mode, the pointer must exit widget that is
  68. !!    displaying a help balloon & enter another in less than this time. 
  69.             *helpTextBrowseCancelTime: 500
  70.  
  71. !!    Time before help appears after cursor enters a widget in Browsing
  72. !!    Mode.  This is expected to be materially less than "helpTextWaitTime."
  73.               *helpTextBrowseWaitTime: 100
  74.  
  75. !!    Don't popup help in browsing mode if cursor is moving faster than
  76. !!    (approximately) this number of pixels in "helpTextBrowseWaitTime".
  77.               *helpTextBrowseVelocity: 10
  78. !!
  79. !!   NOTE: Browsing Mode special cases:
  80. !!    *) If you do not want to ever browse, just set
  81. !!       "helpTextBrowseWaitTime" >= "helpTextWaitTime"
  82. !!    *) If you want to always get the short browse timings, just set
  83. !!       "helpTextWaitTime" <= "helpTextBrowseWaitTime".
  84.  
  85. !! Do you want quick help for insensitive (greyed-out) widgets
  86.                  *helpTextInsensitive: TRUE
  87.  
  88.  
  89. !! Help text for the demo that fetches help by resource name
  90.                          *msgTest: This is the message line resource test
  91.                           popTest: This is the popup help resource test
  92.  
  93. !! The following turn off Quick Help for the stuff you normally think of as
  94. !! background:
  95.            *formW.msgLineHelpText:
  96.              *formW.popupHelpText:
  97.     *XmMainWindow.msgLineHelpText:
  98.       *XmMainWindow.popupHelpText:
  99.  
  100. !! The following set explicit quick help for some widgets, so you
  101. !! can see the interaction between default and specific text.
  102.  
  103.     *XmPushButton.msgLineHelpText: Message line help for a pushbutton
  104.       *XmPushButton.popupHelpText: Popup help for a pushbutton
  105.  
  106.          *button1.msgLineHelpText: Message line help for pushbutton #1
  107.            *button1.popupHelpText: Popup help for pushbutton #1
  108.          *button3.msgLineHelpText: Message line help for pushbutton #3
  109.            *button3.popupHelpText: Popup help for pushbutton #3
  110.          *button5.msgLineHelpText: Message line help for pushbutton #5
  111.            *button5.popupHelpText: Popup help for pushbutton #5
  112.  
  113.          *XmLabel.msgLineHelpText: Message line help for a label
  114.            *XmLabel.popupHelpText: Popup help for a label
  115.           *label1.msgLineHelpText: Message line help for label #1
  116.             *label1.popupHelpText: Popup help for label #1
  117.           *label3.msgLineHelpText: Message line help for label #3
  118.             *label3.popupHelpText: Popup help for label #3
  119.           *label5.msgLineHelpText: Message line help for label #5
  120.             *label5.popupHelpText: Popup help for label #5
  121.