home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.interviews
- 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
- From: ssshah@bert.eecs.uic.edu.noname (Sanjeev Shah,chang,10/08/91,10/08/91,02/10/93)
- Subject: UNidraw components/structured Graphics question
- Message-ID: <1992Nov16.234858.20915@bert.eecs.uic.edu>
- Keywords: UNidraw, components, structured Graphics
- Sender: usenet@bert.eecs.uic.edu (The Managing Editor)
- Reply-To: ssshah@bert.eecs.uic.edu.noname
- Organization: Sun Microsystems, Inc.
- Date: Mon, 16 Nov 1992 23:48:58 GMT
- Lines: 53
-
-
-
- Hi,
-
- I have a couple of questions pertaining to Unidraw Components/Structured
- Graphics.
-
- 1. Suppose I need a geometric shape in my application, say a rectangle.
- I will first create a prototypical component viz. a RectComp .
- I would pass to this a SF_Rect structured graphic compnent and then create
- a GraphicCompTool . The code would be something like....
-
- SF_Rect* rect = new SF_Rect(0,0,size,size,stdgraphic);
-
- .
- .
- RectComp* rectComp = new RectComp(rect);
-
- new GraphicCompTool(new ControlInfo(rectComp,KY_LBL,KY_CODE), rectComp);
-
- etc.....
-
-
-
- In the clone the user can vary the dimensions of the resulting
- rectangle.The clone's geometry depends on where the user clicks
- with the RectTool engaged.
-
-
- My application requires a geometric figure of constant dimension.
- viz. I should be able to create I my application rectangles which have
- fixed geometries that of the prototype.
- How do I accomplish fixed size geometric figures in my application.
-
-
- 2. Suppose I need lines which end with the arrow symbol, is there a structured
- graphic corresponding to the arrow symbol . How can I provide this kind of
- lines.
-
- I request help from anyone who has dealt with such problems in the past.
-
- Thank you in advance.
-
-
- ********************************************************************************
-
- Sanjeev Shah Email: ssshah@bert.eecs.uic.edu
- Phone : (312) 413-7568
- Concurrent Software Systems Lab.
- Dept. of EECS Phone(Home) (312) 226-4102
- University of Illinois at Chicago
- *******************************************************************************
-
-