Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

comp.windows.x Frequently Asked Questions (FAQ) 4/7
Section - 84) What widget is appropriate to use as a drawing canvas?

( Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Cities ]


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?
See reader questions & answers on this topic! - Help others by sharing your knowledge

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 ftp://avahi.inria.fr/pub/widgets/,
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
ftp://avahi.inria.fr/pub/widgets/ and
ftp.x.org:/contrib/widgets/motif/canvas-widget-1.7.tar.gz.  Info:
http://zenon.inria.fr:8003/~leon/widgets/canvas.html .

User Contributions:

Comment about this article, ask questions, or add new information about this topic:

CAPTCHA




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 March 27 2014 @ 02:12 PM