Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!pa.dec.com!wsl.dec.com!klee From: klee@wsl.dec.com (Ken Lee) Newsgroups: comp.windows.x.motif Subject: Re: making our own widget class under XmPrimitive -- but no 3D?? Message-ID: <1991Feb26.092658@wsl.dec.com> Date: 26 Feb 91 17:26:58 GMT References: <91Feb25.235707est.8813@orasis.vis.toronto.edu> Sender: news@pa.dec.com (News) Reply-To: klee@wsl.dec.com Distribution: na Organization: DEC Western Software Laboratory Lines: 16 In article <91Feb25.235707est.8813@orasis.vis.toronto.edu>, tjhorton@vis.toronto.edu ("Timothy J. Horton") writes: |> Has anyone successfully created a widget from the XmPrimitive class? We have, |> everything compiles, but no combination of resource settings will make the 3D |> shadow effects be drawn (even if I draw NOTHING in the window). You didn't post any sample code, so I'm just guessing. How are you attempting to draw the 3D shadow? Remember that XmPrimitive has no drawing procedure, so you must draw everything that is displayed in your widget's window. XmPrimitive does, however, provide GC resources that make the 3D shadow easy. -- Ken Lee DEC Western Software Laboratory, Palo Alto, Calif. Internet: klee@wsl.dec.com uucp: uunet!decwrl!klee