[ Usenet FAQs | Web FAQs | Documents | RFC Index ]
Single Page
Top Document: comp.windows.x.intrinsics Frequently Asked Questions (FAQ)
Previous Document: 5. Which visual should an application use?
Next Document: 7. Which visual, depth and colormap do Shells inherit?
-
Search the FAQ Archives
Single Page
Top Document: comp.windows.x.intrinsics Frequently Asked Questions (FAQ)
Previous Document: 5. Which visual should an application use?
Next Document: 7. Which visual, depth and colormap do Shells inherit?
6. Why do only Shell widgets have a Visual?
---------------------------------------------------------------------- This is strictly by convention. It makes it possible for an arbitrary widget to know that the visual it uses can be found by looking for the shell widget that is its ancestor and obtaining the visual of that shell. A widget can have its own visual resource. If it does, it must have its own realize method to use the visual when it calls XCreateWindow(). You should also make this a resource that can be obtained with XtGetValues() so other widgets can find it. A reasonable value is probably XtNvisual.
Top Document: comp.windows.x.intrinsics Frequently Asked Questions (FAQ)
Previous Document: 5. Which visual should an application use?
Next Document: 7. Which visual, depth and colormap do Shells inherit?
Single Page
[ Usenet FAQs | Web FAQs | Documents | RFC Index ]
Send corrections/additions to the FAQ Maintainer:
ware@cis.ohio-state.edu
Last Update October 23 2009 @ 09:20 AM