razdan@phx.mcd.mot.com (Anshuman Razdan) (01/30/91)
Folks,
This may have been answered before, but what is the best
widget I can use as a child of viewport widget to draw some
lines. I am using the R4 athena widget set. There is no such
thing as a drawing widget (like workspace widget that exist(ed)
in old HP widget set and wasn't it in Athena too!) or is there? I
just hate to type all the code to create a simple widget so as to
be able to draw lines in it. It does not have to be fancy,
basically a window wrapped in widget code. Any
source/suggestions/pointers would be welcome, particularly 'cause
my assignment is due next week. (I do not want to use the PC and
the instructor has given freedom of of using/developing our own
so ....)
Thanks a bunch in advance.
--
Anshuman Razdan
************************************************************
* razdan@toy Test and Methodology Group *
* *
* razdan@phx.mcd.mot.com Diablo Plant, Tempe Az *
************************************************************klee@wsl.dec.com (Ken Lee) (01/30/91)
In article <RAZDAN.91Jan29111931@behemoth.phx.mcd.mot.com>, razdan@phx.mcd.mot.com (Anshuman Razdan) writes: |> I just hate to type all the code to create a simple widget so as to |> be able to draw lines in it. Look at the sample in the last chapter of the Athena widgets manual. Aside from the class structure definition and initialization (which you can mostly cut and paste from any similiar widget), there is very little extra code you have to write. The book *X Window System Toolkit* by Asente & Swick has a very good tutorial if you need more info. -- Ken Lee DEC Western Software Laboratory, Palo Alto, Calif. Internet: klee@wsl.dec.com uucp: uunet!decwrl!klee