home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / windows / intervie / 3205 < prev    next >
Encoding:
Text File  |  1992-11-17  |  2.2 KB  |  66 lines

  1. Newsgroups: comp.windows.interviews
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!saimiri.primate.wisc.edu!sdd.hp.com!ux1.cso.uiuc.edu!bert.eecs.uic.edu!bert.eecs.uic.edu!ssshah
  3. From: ssshah@bert.eecs.uic.edu.noname (Sanjeev Shah,chang,10/08/91,10/08/91,02/10/93)
  4. Subject: UNidraw components/structured Graphics question
  5. Message-ID: <1992Nov16.234858.20915@bert.eecs.uic.edu>
  6. Keywords: UNidraw, components, structured Graphics 
  7. Sender: usenet@bert.eecs.uic.edu (The Managing Editor)
  8. Reply-To: ssshah@bert.eecs.uic.edu.noname
  9. Organization: Sun Microsystems, Inc.
  10. Date: Mon, 16 Nov 1992 23:48:58 GMT
  11. Lines: 53
  12.  
  13.  
  14.  
  15. Hi,
  16.  
  17. I have a  couple of questions pertaining to Unidraw Components/Structured
  18. Graphics.
  19.  
  20. 1. Suppose I need a geometric shape in my application, say a rectangle.
  21. I will first create a prototypical component viz. a  RectComp .
  22. I would pass to this a SF_Rect structured graphic compnent and then create
  23. a GraphicCompTool . The code would be something like....
  24.  
  25.     SF_Rect* rect = new SF_Rect(0,0,size,size,stdgraphic);
  26.  
  27.      .
  28.      .
  29.      RectComp* rectComp = new RectComp(rect);
  30.  
  31.      new GraphicCompTool(new ControlInfo(rectComp,KY_LBL,KY_CODE),        rectComp);
  32.  
  33.     etc.....
  34.  
  35.  
  36.  
  37.  In the clone the user can vary the dimensions of the resulting
  38.  rectangle.The clone's geometry depends on where the user clicks 
  39. with  the RectTool engaged.
  40.  
  41.  
  42. My application requires a geometric figure of constant dimension.
  43. viz. I should be able to create I my application rectangles which have
  44. fixed geometries that of the prototype.
  45. How do I accomplish fixed size geometric figures in my application.
  46.  
  47.  
  48. 2. Suppose I need lines which end with the arrow symbol, is there a structured
  49.    graphic corresponding to the arrow symbol . How can I provide this kind of
  50.    lines. 
  51.  
  52. I request help from anyone who has dealt with such problems in the past.
  53.  
  54. Thank you in advance.
  55.  
  56.  
  57. ********************************************************************************
  58.  
  59. Sanjeev Shah                                     Email: ssshah@bert.eecs.uic.edu
  60.                                      Phone : (312) 413-7568
  61. Concurrent Software Systems Lab.
  62. Dept. of EECS                                     Phone(Home) (312) 226-4102
  63. University of Illinois at Chicago
  64. *******************************************************************************
  65.  
  66.