Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* using non-default visual with drawing area
@ 1999-07-12  4:00 Christopher Gee
  1999-07-12  4:00 ` kenton
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Gee @ 1999-07-12  4:00 UTC (permalink / raw)


Hi -

I'm using a DEC Alpha System with Unix 4.0D, Motif 1.2, X11R6.  I know
that the graphics card I have supports an overlay layer.  What I'm
having trouble with is finding examples / documentation about how to use
a different visual for an xmDrawingArea (in other words, I need help
getting out of the gate).

In my application, I want to have two drawing areas (one on top of the
other), with the uppermost one in the overlay layer so it's transparent
and capturing all the events.  That leaves complex drawing to the lower
layer.  The lower drawing area will have the default visual and
colormap, while the upper drawing area should have a different visual
(for the overlay layer).

Can I have two drawing area widgets, with the same parent, have the
different visuals?  If they aren't attached to the same parent, it'll be
harder to have them aligned over each other.


Any suggestions / advice would be appreciated.

Thanks.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: using non-default visual with drawing area
  1999-07-12  4:00 using non-default visual with drawing area Christopher Gee
@ 1999-07-12  4:00 ` kenton
  1999-07-13  4:00   ` Christopher Gee
  0 siblings, 1 reply; 4+ messages in thread
From: kenton @ 1999-07-12  4:00 UTC (permalink / raw)


In article <378A489F.ACE363C6@nospamboeing.com>,
Christopher Gee  <Christopher.Gee@nospamboeing.com> wrote:
>Can I have two drawing area widgets, with the same parent, have the
>different visuals?  If they aren't attached to the same parent, it'll be
>harder to have them aligned over each other.

Subject 170 in the Motif FAQ.  My web site has a copy of the FAQ.
-- 
Ken Lee, http://www.rahul.net/kenton/



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: using non-default visual with drawing area
  1999-07-12  4:00 ` kenton
@ 1999-07-13  4:00   ` Christopher Gee
  1999-07-13  4:00     ` kenton
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Gee @ 1999-07-13  4:00 UTC (permalink / raw)


kenton@nojunk.rahul.net- wrote:

> In article <378A489F.ACE363C6@nospamboeing.com>,
> Christopher Gee  <Christopher.Gee@nospamboeing.com> wrote:
> >Can I have two drawing area widgets, with the same parent, have the
> >different visuals?  If they aren't attached to the same parent, it'll be
> >harder to have them aligned over each other.
>
> Subject 170 in the Motif FAQ.  My web site has a copy of the FAQ.
> --
> Ken Lee, http://www.rahul.net/kenton/

I snooped around the OSF/Motif implementation I have and didn't find an
alternate drawing area widgets.

In your FAQ, Ken, you mention that it is easy to subclass the drawing area.
That's where I'm a little lost.  Where and how can I get access to the
source code for the Drawing Area widget?

Thanks.






^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: using non-default visual with drawing area
  1999-07-13  4:00   ` Christopher Gee
@ 1999-07-13  4:00     ` kenton
  0 siblings, 0 replies; 4+ messages in thread
From: kenton @ 1999-07-13  4:00 UTC (permalink / raw)


In article <378B65D8.9E1E630C@nospam.com>,
Christopher Gee  <Christopher.Gee@nospam.com> wrote:
>In your FAQ, Ken, you mention that it is easy to subclass the drawing area.
>That's where I'm a little lost.  Where and how can I get access to the
>source code for the Drawing Area widget?

You shouln't need the source code if you're just going to subclass to replace
the realize method.  Read the Asente & Swick book; it should have all the
info you need to write the subclass.
-- 
Ken Lee, http://www.rahul.net/kenton/



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-07-13  4:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-07-12  4:00 using non-default visual with drawing area Christopher Gee
1999-07-12  4:00 ` kenton
1999-07-13  4:00   ` Christopher Gee
1999-07-13  4:00     ` kenton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox