[ Usenet FAQs | Web FAQs | Documents | RFC Index ]
    Search the FAQ Archives

Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Single Page

Top Document: comp.windows.x Frequently Asked Questions (FAQ) 4/7
Previous Document: 83) Where can I find a hypertext widget in source code?
Next Document: 85) What is the current state of the world in X terminals?


84) What widget is appropriate to use as a drawing canvas?



Some widget sets have a widget particularly for this purpose -- a WorkSpace
or DrawingArea which doesn't display anything but lets your Xt application
know when it has been re-exposed, resized, and when it has received user key
and mouse input.

The best thing to do for other widget sets -- including the Athena set 
-- is to create or obtain such a widget; this is preferable to drawing into a 
core widget and grabbing events with XtAddEventHandler(), which loses a number 
of benefits of Xt and encapsulation of the functionality .  

The publicly-available programs xball and xpic include other versions.  The
Display widget in the XG library (libXG-2.0.tar.Z on ftp.x.org) provides a
generic way of drawing graphics in a widget.

The Athena Widget manual (mit/doc/Xaw/Template in the R5 distribution,
xc/doc/specs/Xaw/Template in the R6 distribution) includes a tutorial and
source code to a simple widget which is suitable for use.

The Free Widget Foundation set contains a Canvas widget.

An Xt Canvas widget by Jean-Michel Leon (leon@sophia.inria.fr) is intended to
provide graphical display and direct manipulation services for Motif and Xaw
clients. Available from avahi.inria.fr:/pub/widgets/canvas-widget-1.7.tar.gz,
ftp.x.org:/contrib/widgets/motif/canvas-widget-1.7.tar.gz.

The Knvas widget is intended to supply graphical display and direct
manipulation services for Xaw or Xm applications. Source is on
avahi.inria.fr:/pub/widgets/canvas-widget-1.7.tar.gz and
ftp.x.org:/contrib/widgets/motif/canvas-widget-1.7.tar.gz.  Info:
http://zenon.inria.fr:8003/~leon/widgets/canvas.html .



Top Document: comp.windows.x Frequently Asked Questions (FAQ) 4/7
Previous Document: 83) Where can I find a hypertext widget in source code?
Next Document: 85) What is the current state of the world in X terminals?

Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Single Page


[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
faq%craft@uunet.uu.net (X FAQ maintenance address)

Last Update October 22 2009 @ 05:36 AM

Some parts © 2009 Advameg, Inc.