[ By Archive-name
| By Author | By Category | By Newsgroup ]
[ Home | Latest Updates | Archive Stats | Search | Usenet References | Help ]
Single Page
Top Document: comp.windows.x.intrinsics Frequently Asked Questions (FAQ)
Previous Document: 28. How can I add a C++ member function as a widget callback?
Next Document: 30. Can I use XtMoveWidget(), ... to move widgets I created?
[ Home | Latest Updates | Archive Stats | Search | Usenet References | Help ]
-
Search the FAQ Archives
Single Page
Top Document: comp.windows.x.intrinsics Frequently Asked Questions (FAQ)
Previous Document: 28. How can I add a C++ member function as a widget callback?
Next Document: 30. Can I use XtMoveWidget(), ... to move widgets I created?
29.!How can I identify the children of a manager widget?
---------------------------------------------------------------------- Use XtGetValues() on XtNchildren (array of widget IDs) and XtNnumChildren (number of widgets in array). Widget *children = NULL; Cardinal count = 0; Arg args[10]; Cardinal cnt; cnt = 0; XtSetArg (args[cnt], XtNchildren, &children); ++cnt; XtSetArg (args[cnt], XtNnumChildren, &count); ++cnt; XtGetValues (widget, args, cnt); NOTE: This does not get the list of popup children. One must access the private members of Core to do so. NOTE: The children may not be valid if the user is destroying widgets, as the children may be only at phase 1 of the destroy. So if they destroy a child and then get the count before the child is Phase 2'd, then it will show up -- and is probably not what most people want.
Top Document: comp.windows.x.intrinsics Frequently Asked Questions (FAQ)
Previous Document: 28. How can I add a C++ member function as a widget callback?
Next Document: 30. Can I use XtMoveWidget(), ... to move widgets I created?
Single Page
[ By Archive-name | By Author | By Category | By Newsgroup ]
[ Home | Latest Updates | Archive Stats | Search | Usenet References | Help ]
Send corrections/additions to the FAQ Maintainer:
ware@cis.ohio-state.edu
Last Update July 06 2008 @ 00:10 AM