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 / Basic / README.z / README
Encoding:
Text File  |  1996-09-20  |  2.5 KB  |  92 lines

  1. This directory contains small programs that demonstrate some basic
  2. features of the the ViewKit, displaying windows, handling command line
  3. options, interacting with the window manager, and so on. The examples
  4. are:
  5.  
  6. generic
  7. =======
  8.  
  9. The simplest possible ViewKit application. Just displays an empty
  10. window. 
  11.  
  12. generic2
  13. =========
  14.  
  15. Extends the generic example by adding a menu pane to the window.
  16.  
  17. run
  18. ====
  19.  
  20. Demonstrates how to use VkApp::run to customize handling of the X event loop.
  21.  
  22. pending
  23. ====
  24.  
  25. Demonstrates how to use VkApp::handlePendingEvents to customize handling
  26. of the X event loop.  This is much like "run".
  27.  
  28. hello
  29. ======
  30.  
  31. The basic "hello world" program, viewkit style. This example
  32. demonstrates subclassing from VkSimpleWindow.
  33.  
  34.  
  35. callback
  36. =========
  37.  
  38. Demonstrates how to use Xt-style callbacks with ViewKit and C++.
  39.  
  40.  
  41. cmdline
  42. ========
  43.  
  44. Show how to use the Xt-style command-line argument mechanism to set a
  45. resource from the command line.
  46.  
  47.  
  48. cmdline2
  49. ==========
  50.  
  51. Extends the above example by retrieving the value of a resource and
  52. placing it in a class data member.
  53.  
  54. busy
  55. =====
  56.  
  57. Demonstrates the use of the "busy()" and "notBusy()" functions.
  58.  
  59. stopwatch
  60. ==========
  61.  
  62. A simple "stopwatch" program that demonstrates a more complex widget
  63. tree in a ViewKit window. This example also show some other viewkit
  64. facilties, including the VkPeriodic class, which provides a simple
  65. interface to XtAppAddTimeout, and also uses the XmGrid widget. This
  66. example also uses a viewkit-style C++ member function callback to
  67. interface with the timer.
  68.  
  69. wmquit
  70. ======
  71.  
  72. This demo puts up two windows.  If you ask to close either one with
  73. the window menu, you are asking to close just that window.  The demo
  74. puts up a confirming dialog for that window for you.
  75.  
  76. If you click on the label of either window, then you are asking to close
  77. both widows (i.e. the whole application).  What happens next depends on
  78. the setting of the resource "quitMode" (which defaults to "each").
  79.  
  80. If this resource is "each", behavior is unchanged from the way this behaved
  81. in previous releases.  The windows that are OK to close get closed, and any
  82. that are not OK remain open.
  83.  
  84. If this resource is "all", the all windows get closed if all are OK to
  85. close.  Otherwise no windows get closed.
  86.  
  87. Note that this does not cover the case of a window manager quit, such as
  88. double-clicking on the window manager menu square.  If the application
  89. wanted to handle this, it would need to override
  90. VkSimpleWindow::handleWmDeleteMessage() and/or
  91. VkSimpleWindow::handleWmQuitMessage().
  92.