home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / fj / maillis / xwindow / 17484 < prev    next >
Encoding:
Internet Message Format  |  1992-11-15  |  1.8 KB

  1. Path: sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!scslwide!wsgw!wsservra!daemon
  2. From: jeff@cbis.ece.drexel.edu (Jeff White)
  3. Newsgroups: fj.mail-lists.x-window
  4. Subject: Need help dragging objects on drawing area
  5. Message-ID: <1992Nov16.001940.9423@sm.sony.co.jp>
  6. Date: 16 Nov 92 00:19:40 GMT
  7. Sender: daemon@sm.sony.co.jp (The devil himself)
  8. Distribution: fj
  9. Organization: Drexel University, College of Engineering, Philadelphia, PA
  10. Lines: 37
  11. Approved: michael@sm.sony.co.jp
  12.  
  13. Date: 9 Nov 92 22:04:07 GMT
  14. Message-Id: <1992Nov9.220407.2433@cbis.ece.drexel.edu>
  15. Newsgroups: comp.windows.x
  16. Sender: xpert-request@expo.lcs.mit.edu
  17.  
  18.  
  19. Hello,
  20.  
  21. I am writing an application that draws objects to the screen and connects
  22. lines to these objects depending on the relations between the objects.
  23.  
  24. When the user selects an object, I would like to 'gray' it out, and let
  25. the user 'drag' the object around the screen.
  26. The object won't be changing size, just its location.
  27.  
  28. Question 1: How do you go about dragging an object around the drawing area?
  29.             Can this be done ?
  30.  
  31. I have the rubber-band functions, those can be obtained from most X/Motif books.
  32.  
  33. The object is also draw in an unmanaged Pixmap, so that when the drawing area is
  34. resized or exposed I can copy the info from the Pixmap to the Drawing Area.
  35. I keep track of the objects and their relations in a tree type data structure,
  36. I also keep each objects location, width and height in the trees nodes.
  37.  
  38. Question 2: How can I print text vertically?  I read in a book that libraries
  39.             are in development to help the programmer do this or until Display 
  40.             PostScript comes to X.  Any ideas how I can do this?
  41.  
  42. Any advice, comments, source code would be very helpful.
  43.  
  44. System Configuration: DEC/ULTRIX, X windows X11R4, Motif 1.1.
  45.  
  46. Thanks in advance for your help and time!!!
  47.  
  48.                     Jeff White
  49.                     cbis.ece.drexel.edu
  50.