[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]
Single Page
Top Document: comp.windows.x.intrinsics Frequently Asked Questions (FAQ)
Previous Document: 37. Where can I find a hypertext widget or source code?
Next Document: 39.!What is this link problem with _get_wmShellWidgetClass, XtInherit?
-
Search the FAQ Archives
Single Page
Top Document: comp.windows.x.intrinsics Frequently Asked Questions (FAQ)
Previous Document: 37. Where can I find a hypertext widget or source code?
Next Document: 39.!What is this link problem with _get_wmShellWidgetClass, XtInherit?
38. 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) includes a tutorial and source code to a simple widget which is suitable for use. The Free Widget Foundation set contains a Canvas widget.
Top Document: comp.windows.x.intrinsics Frequently Asked Questions (FAQ)
Previous Document: 37. Where can I find a hypertext widget or source code?
Next Document: 39.!What is this link problem with _get_wmShellWidgetClass, XtInherit?
Single Page
[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]
Send corrections/additions to the FAQ Maintainer:
ware@cis.ohio-state.edu
Last Update July 25 2008 @ 00:10 AM