home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / sgi / graphics / 24 < prev    next >
Encoding:
Text File  |  1992-12-15  |  5.3 KB  |  126 lines

  1. Newsgroups: comp.sys.sgi.graphics
  2. Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uwm.edu!ux1.cso.uiuc.edu!cs.uiuc.edu!vela!sglanger
  3. From: sglanger@vela.acs.oakland.edu (LANGER STEVEN C)
  4. Subject: motif child windows
  5. Message-ID: <1992Dec16.001739.673@vela.acs.oakland.edu>
  6. Organization: Oakland University, Rochester MI.
  7. Distribution: usa
  8. Date: Wed, 16 Dec 1992 00:17:39 GMT
  9. Lines: 115
  10.  
  11. Several days ago I posted a question on this group regarding an application
  12. I am writing. I realized from the varied responses thet people were kind
  13. enough to send that I did a poor job of stating the problem so here is
  14. a more verbose and hopefully clearer statement of it. 
  15.  
  16.   I am just beginning to write a large app (50-100K lines of code
  17. eventually) that will run on our hospitals SGI machines. Said 
  18. program consists of a foreground process to collect user input 
  19. and  various info displays. This process is also responsible for launching
  20. and monitoring processes that control several other machines.
  21. Ultimately, the system will control simultaneous radiation treatment, heat
  22. treatment and incorporate CAT or MRI images. We have already implemented 
  23. parts of this software under MS-Windows, but as you can imagine, such
  24. machines just don't have the power to pull off the whole job. A schematic
  25. might look like this;
  26.  
  27.               USER
  28.                |
  29.                 Main Process & Display Code
  30.                  ^         ^             ^
  31.          |       |             |    
  32.             -------         |            |
  33.        |        XRay        CAT
  34. Heating Device &    Machine        or MRI Scanner
  35. Thermometry Device      Driver        Driver
  36. Drivers  |         |        |
  37.      |         |        |
  38.      |         |        Hardware
  39.     Hardware    Hardware
  40.  
  41.   Commands are issued by the user and sent to the appropriate device
  42. driver process, then sent on to the various machines. Data must also
  43. come back from these drivers for display. I have launched these other
  44. processes from the main, but have yet to get 2-way communication via
  45. the pipes.
  46.  
  47.  Now to the Motif part. I want the app mainWindow to act as nothing more
  48. than a backdrop to contain a menu and clip the miriad displays which this system
  49. will eventually produce. The child windows MUST be dragable and resizable
  50. within the mainWindow, but not leave it. Something like this;
  51.  
  52. | -- /  App Main Window                               /Small / Big   |
  53. | Heat Commands | XRay | Scanner | Display | Help              |
  54. |------------------------------------------------------------------------|
  55. |                 | Temp Bar Graph     |             |
  56. |                 | Temp History Graph |             |
  57. |                 | Heating Parameters |             |
  58. |                 | XRay Parameters    |             |
  59. |                 | MRI Image     --->  | Posterior     |
  60. |                 | CAT Image          | Anterior     |
  61. |                 ---------------------- Bla         |
  62. |                            Bla         |
  63. |                                     |
  64. |    | -- /TempBar   /Small/Big|                     |
  65. |    |-------------------------|                     |
  66. |    |        #      |                     |
  67. |    |  #               #      |                     |
  68. |    |  #   #    #   #      |        | -- /TempHistogram  /Sma|
  69. |      |------------------------xx        |------------------------|
  70. |                resize        |             |
  71. |                        |   .-.   .       .     |
  72. |                        | ./   \./ \._ ../     |
  73. |        | -- /Brain-Ant  /Small/Big|    |             |
  74. |        |--------------------------|    |------------------------|
  75. |        |               |                 |
  76. |        |  Pixmap from MRI         |                 |
  77. |        |               |                 |
  78. |        |-------------------------xx                 |
  79. ------------------------------------------------------------------------xx
  80.  
  81.  The physicians require that the pixmaps display the entire image, not
  82. a viewport of an image (that knocks out ScrolledWindows) so that they
  83. get a global perspective. For fine detail, they want to be able to
  84. resize the window big and have it rescale itself to reveal more detail.
  85. So that's the problem. I need dragable resizable windows within the 
  86. main window. I cannot compel the physicians to accept a grid of
  87. equally sized windows so that knocks out RowColumn and PanedWindows.
  88.  
  89. Questions:
  90.  
  91. 1. Is there any known Xm or Xt Widget that will accomplish this?
  92.  
  93. 2. If not, what is the quickest method (from a coding point of view)
  94.    to make a dragable, sizeable window that can be assigned a DrawingArea?
  95.    
  96.    a. Xlib primitives
  97.    b. Xt intrinsics
  98.    c. a custom Widget
  99.  
  100. 3. If the answer to 2 is c, what would be the best Widget to start
  101.    modifying?
  102.  
  103. 4. If the answer to 2 is a or b, could you supply a code snippet or
  104. reference?
  105.  
  106. Tomorrow marks my one week anniversary of coding in X so I'm probably
  107. missing something obvious. If so I apoligise for boring everyone. But
  108. I've figured out how to make child windows drag, resize and clip in their 
  109. parents on Macs, Amigas and even (ach) MS-Windows and I'm totally at a loss
  110. on X. Any and all responses are welcome and if there is sufficient interest
  111. in this problem, I'll post any and all solution(s) to the group.
  112.  
  113. --sincerely, steve
  114.  
  115. -- 
  116. Steve Langer                     sglanger@argo.acs.oakland.edu (VMS)
  117. Oakland University               sglanger@vela.acs.oakland.edu (Ultrix)
  118. ---------------------------------------------------------------------------
  119. Standard disclaimers apply. In addition, the author makes no guarantees,
  120. concerning the grammatical accuracy of his writing. Therefore, any ^B's, ^C's, 
  121. midword character additions/deletions and other non-sense which occurs (after 
  122. the work leaves the author's decade old text editor via his decade old Amiga, 
  123. struggles through a local 1200 baud Merit server to be further mauled via the 
  124. remote VAX mail servers) is someone elses problem - namely yours.
  125. ---------------------------------------------------------------------------
  126.