| The internal structure fields of a widget do not exist before it is
created, it's just impossible.
Defaults are not applied to a widget until it is realized, a
XtGetValues on a widget is not guaranteed to return valid values.
A widget consumer therefore should not XtGetValues a unrealized widget.
|
| > Defaults are not applied to a widget until it is realized, a
> XtGetValues on a widget is not guaranteed to return valid values.
>
> A widget consumer therefore should not XtGetValues a unrealized widget.
"Resource" defaults are applied to a widget when it is created. There
is nothing wrong with calling XtGetValues on a widget before it is
realized. However, a widget does not have a window id until it is
realized, and many widgets don't have a very useful "geometry"
(i.e. x, y, width and height) until they are realized. This is
especially true for "composite" widgets since the Intrinsics do
not tell the composite widget that any of its children are managed
until the composite widget is realized.
Leo
|