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