[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

2642.0. "Widget Question" by FREZEN::PROJECTS () Mon Apr 23 1990 17:49

Is it possible for one to access internal structural values fields of a widget
before it is created? How about if it is created but not realised?

Thanks in advance
T.RTitleUserPersonal
Name
DateLines
2642.1CALL::SWEENEYPatrick Sweeney in New YorkMon Apr 23 1990 23:327
    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.
2642.2More info...LEOVAX::TREGGIARIThu Apr 26 1990 09:0415
>    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